1 /**
2  * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3  * SPDX-License-Identifier: Apache-2.0.
4  */
5 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
8 #include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9 #include <aws/core/utils/memory/stl/AWSString.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Xml
17 {
18   class XmlNode;
19 } // namespace Xml
20 } // namespace Utils
21 namespace EC2
22 {
23 namespace Model
24 {
25 
26   /**
27    * <p>Describes an elastic GPU.</p><p><h3>See Also:</h3>   <a
28    * href="http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ElasticGpuSpecificationResponse">AWS
29    * API Reference</a></p>
30    */
31   class AWS_EC2_API ElasticGpuSpecificationResponse
32   {
33   public:
34     ElasticGpuSpecificationResponse();
35     ElasticGpuSpecificationResponse(const Aws::Utils::Xml::XmlNode& xmlNode);
36     ElasticGpuSpecificationResponse& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
37 
38     void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
39     void OutputToStream(Aws::OStream& oStream, const char* location) const;
40 
41 
42     /**
43      * <p>The elastic GPU type.</p>
44      */
GetType()45     inline const Aws::String& GetType() const{ return m_type; }
46 
47     /**
48      * <p>The elastic GPU type.</p>
49      */
TypeHasBeenSet()50     inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
51 
52     /**
53      * <p>The elastic GPU type.</p>
54      */
SetType(const Aws::String & value)55     inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
56 
57     /**
58      * <p>The elastic GPU type.</p>
59      */
SetType(Aws::String && value)60     inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
61 
62     /**
63      * <p>The elastic GPU type.</p>
64      */
SetType(const char * value)65     inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
66 
67     /**
68      * <p>The elastic GPU type.</p>
69      */
WithType(const Aws::String & value)70     inline ElasticGpuSpecificationResponse& WithType(const Aws::String& value) { SetType(value); return *this;}
71 
72     /**
73      * <p>The elastic GPU type.</p>
74      */
WithType(Aws::String && value)75     inline ElasticGpuSpecificationResponse& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
76 
77     /**
78      * <p>The elastic GPU type.</p>
79      */
WithType(const char * value)80     inline ElasticGpuSpecificationResponse& WithType(const char* value) { SetType(value); return *this;}
81 
82   private:
83 
84     Aws::String m_type;
85     bool m_typeHasBeenSet;
86   };
87 
88 } // namespace Model
89 } // namespace EC2
90 } // namespace Aws
91