AWS SDK for C++  1.9.67
AWS SDK for C++
ProductCode.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Xml
18 {
19  class XmlNode;
20 } // namespace Xml
21 } // namespace Utils
22 namespace EC2
23 {
24 namespace Model
25 {
26 
33  {
34  public:
38 
39  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40  void OutputToStream(Aws::OStream& oStream, const char* location) const;
41 
42 
46  inline const Aws::String& GetProductCodeId() const{ return m_productCodeId; }
47 
51  inline bool ProductCodeIdHasBeenSet() const { return m_productCodeIdHasBeenSet; }
52 
56  inline void SetProductCodeId(const Aws::String& value) { m_productCodeIdHasBeenSet = true; m_productCodeId = value; }
57 
61  inline void SetProductCodeId(Aws::String&& value) { m_productCodeIdHasBeenSet = true; m_productCodeId = std::move(value); }
62 
66  inline void SetProductCodeId(const char* value) { m_productCodeIdHasBeenSet = true; m_productCodeId.assign(value); }
67 
71  inline ProductCode& WithProductCodeId(const Aws::String& value) { SetProductCodeId(value); return *this;}
72 
76  inline ProductCode& WithProductCodeId(Aws::String&& value) { SetProductCodeId(std::move(value)); return *this;}
77 
81  inline ProductCode& WithProductCodeId(const char* value) { SetProductCodeId(value); return *this;}
82 
83 
87  inline const ProductCodeValues& GetProductCodeType() const{ return m_productCodeType; }
88 
92  inline bool ProductCodeTypeHasBeenSet() const { return m_productCodeTypeHasBeenSet; }
93 
97  inline void SetProductCodeType(const ProductCodeValues& value) { m_productCodeTypeHasBeenSet = true; m_productCodeType = value; }
98 
102  inline void SetProductCodeType(ProductCodeValues&& value) { m_productCodeTypeHasBeenSet = true; m_productCodeType = std::move(value); }
103 
107  inline ProductCode& WithProductCodeType(const ProductCodeValues& value) { SetProductCodeType(value); return *this;}
108 
112  inline ProductCode& WithProductCodeType(ProductCodeValues&& value) { SetProductCodeType(std::move(value)); return *this;}
113 
114  private:
115 
116  Aws::String m_productCodeId;
117  bool m_productCodeIdHasBeenSet;
118 
119  ProductCodeValues m_productCodeType;
120  bool m_productCodeTypeHasBeenSet;
121  };
122 
123 } // namespace Model
124 } // namespace EC2
125 } // namespace Aws
Aws::EC2::Model::ProductCode::ProductCodeIdHasBeenSet
bool ProductCodeIdHasBeenSet() const
Definition: ProductCode.h:51
Aws::EC2::Model::ProductCode::SetProductCodeId
void SetProductCodeId(const Aws::String &value)
Definition: ProductCode.h:56
Aws::EC2::Model::ProductCode::SetProductCodeId
void SetProductCodeId(const char *value)
Definition: ProductCode.h:66
Aws::EC2::Model::ProductCode::SetProductCodeType
void SetProductCodeType(const ProductCodeValues &value)
Definition: ProductCode.h:97
Aws::EC2::Model::ProductCode::ProductCode
ProductCode()
Aws::EC2::Model::ProductCode::SetProductCodeId
void SetProductCodeId(Aws::String &&value)
Definition: ProductCode.h:61
Aws::EC2::Model::ProductCode
Definition: ProductCode.h:33
Aws::EC2::Model::ProductCode::WithProductCodeId
ProductCode & WithProductCodeId(const char *value)
Definition: ProductCode.h:81
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::ProductCode::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::ProductCode::GetProductCodeType
const ProductCodeValues & GetProductCodeType() const
Definition: ProductCode.h:87
Aws::EC2::Model::ProductCode::WithProductCodeId
ProductCode & WithProductCodeId(const Aws::String &value)
Definition: ProductCode.h:71
Aws::EC2::Model::ProductCode::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWSStreamFwd.h
Aws::EC2::Model::ProductCode::GetProductCodeId
const Aws::String & GetProductCodeId() const
Definition: ProductCode.h:46
Aws::EC2::Model::ProductCode::operator=
ProductCode & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::ProductCode::WithProductCodeType
ProductCode & WithProductCodeType(ProductCodeValues &&value)
Definition: ProductCode.h:112
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::ProductCodeValues
ProductCodeValues
Definition: ProductCodeValues.h:17
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::ProductCode::ProductCodeTypeHasBeenSet
bool ProductCodeTypeHasBeenSet() const
Definition: ProductCode.h:92
ProductCodeValues.h
AWSString.h
Aws::EC2::Model::ProductCode::ProductCode
ProductCode(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::ProductCode::WithProductCodeType
ProductCode & WithProductCodeType(const ProductCodeValues &value)
Definition: ProductCode.h:107
index
int index
Definition: cJSON.h:181
EC2_EXPORTS.h
Aws::EC2::Model::ProductCode::WithProductCodeId
ProductCode & WithProductCodeId(Aws::String &&value)
Definition: ProductCode.h:76
Aws::EC2::Model::ProductCode::SetProductCodeType
void SetProductCodeType(ProductCodeValues &&value)
Definition: ProductCode.h:102