AWS SDK for C++  1.9.108
AWS SDK for C++
CoipAddressUsage.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.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 
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& GetAllocationId() const{ return m_allocationId; }
47 
51  inline bool AllocationIdHasBeenSet() const { return m_allocationIdHasBeenSet; }
52 
56  inline void SetAllocationId(const Aws::String& value) { m_allocationIdHasBeenSet = true; m_allocationId = value; }
57 
61  inline void SetAllocationId(Aws::String&& value) { m_allocationIdHasBeenSet = true; m_allocationId = std::move(value); }
62 
66  inline void SetAllocationId(const char* value) { m_allocationIdHasBeenSet = true; m_allocationId.assign(value); }
67 
71  inline CoipAddressUsage& WithAllocationId(const Aws::String& value) { SetAllocationId(value); return *this;}
72 
76  inline CoipAddressUsage& WithAllocationId(Aws::String&& value) { SetAllocationId(std::move(value)); return *this;}
77 
81  inline CoipAddressUsage& WithAllocationId(const char* value) { SetAllocationId(value); return *this;}
82 
83 
87  inline const Aws::String& GetAwsAccountId() const{ return m_awsAccountId; }
88 
92  inline bool AwsAccountIdHasBeenSet() const { return m_awsAccountIdHasBeenSet; }
93 
97  inline void SetAwsAccountId(const Aws::String& value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId = value; }
98 
102  inline void SetAwsAccountId(Aws::String&& value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId = std::move(value); }
103 
107  inline void SetAwsAccountId(const char* value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId.assign(value); }
108 
112  inline CoipAddressUsage& WithAwsAccountId(const Aws::String& value) { SetAwsAccountId(value); return *this;}
113 
117  inline CoipAddressUsage& WithAwsAccountId(Aws::String&& value) { SetAwsAccountId(std::move(value)); return *this;}
118 
122  inline CoipAddressUsage& WithAwsAccountId(const char* value) { SetAwsAccountId(value); return *this;}
123 
124 
128  inline const Aws::String& GetAwsService() const{ return m_awsService; }
129 
133  inline bool AwsServiceHasBeenSet() const { return m_awsServiceHasBeenSet; }
134 
138  inline void SetAwsService(const Aws::String& value) { m_awsServiceHasBeenSet = true; m_awsService = value; }
139 
143  inline void SetAwsService(Aws::String&& value) { m_awsServiceHasBeenSet = true; m_awsService = std::move(value); }
144 
148  inline void SetAwsService(const char* value) { m_awsServiceHasBeenSet = true; m_awsService.assign(value); }
149 
153  inline CoipAddressUsage& WithAwsService(const Aws::String& value) { SetAwsService(value); return *this;}
154 
158  inline CoipAddressUsage& WithAwsService(Aws::String&& value) { SetAwsService(std::move(value)); return *this;}
159 
163  inline CoipAddressUsage& WithAwsService(const char* value) { SetAwsService(value); return *this;}
164 
165 
169  inline const Aws::String& GetCoIp() const{ return m_coIp; }
170 
174  inline bool CoIpHasBeenSet() const { return m_coIpHasBeenSet; }
175 
179  inline void SetCoIp(const Aws::String& value) { m_coIpHasBeenSet = true; m_coIp = value; }
180 
184  inline void SetCoIp(Aws::String&& value) { m_coIpHasBeenSet = true; m_coIp = std::move(value); }
185 
189  inline void SetCoIp(const char* value) { m_coIpHasBeenSet = true; m_coIp.assign(value); }
190 
194  inline CoipAddressUsage& WithCoIp(const Aws::String& value) { SetCoIp(value); return *this;}
195 
199  inline CoipAddressUsage& WithCoIp(Aws::String&& value) { SetCoIp(std::move(value)); return *this;}
200 
204  inline CoipAddressUsage& WithCoIp(const char* value) { SetCoIp(value); return *this;}
205 
206  private:
207 
208  Aws::String m_allocationId;
209  bool m_allocationIdHasBeenSet;
210 
211  Aws::String m_awsAccountId;
212  bool m_awsAccountIdHasBeenSet;
213 
214  Aws::String m_awsService;
215  bool m_awsServiceHasBeenSet;
216 
217  Aws::String m_coIp;
218  bool m_coIpHasBeenSet;
219  };
220 
221 } // namespace Model
222 } // namespace EC2
223 } // namespace Aws
Aws::EC2::Model::CoipAddressUsage::WithCoIp
CoipAddressUsage & WithCoIp(const char *value)
Definition: CoipAddressUsage.h:204
Aws::EC2::Model::CoipAddressUsage::WithAllocationId
CoipAddressUsage & WithAllocationId(const char *value)
Definition: CoipAddressUsage.h:81
Aws::EC2::Model::CoipAddressUsage::SetAllocationId
void SetAllocationId(Aws::String &&value)
Definition: CoipAddressUsage.h:61
Aws::EC2::Model::CoipAddressUsage::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::CoipAddressUsage::CoipAddressUsage
CoipAddressUsage(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::CoipAddressUsage::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::CoipAddressUsage::WithCoIp
CoipAddressUsage & WithCoIp(Aws::String &&value)
Definition: CoipAddressUsage.h:199
Aws::EC2::Model::CoipAddressUsage::WithAllocationId
CoipAddressUsage & WithAllocationId(Aws::String &&value)
Definition: CoipAddressUsage.h:76
Aws::EC2::Model::CoipAddressUsage::WithAwsService
CoipAddressUsage & WithAwsService(Aws::String &&value)
Definition: CoipAddressUsage.h:158
Aws::EC2::Model::CoipAddressUsage::SetAllocationId
void SetAllocationId(const Aws::String &value)
Definition: CoipAddressUsage.h:56
Aws::EC2::Model::CoipAddressUsage::WithAwsService
CoipAddressUsage & WithAwsService(const char *value)
Definition: CoipAddressUsage.h:163
Aws::EC2::Model::CoipAddressUsage::SetAwsService
void SetAwsService(Aws::String &&value)
Definition: CoipAddressUsage.h:143
Aws::EC2::Model::CoipAddressUsage::GetCoIp
const Aws::String & GetCoIp() const
Definition: CoipAddressUsage.h:169
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::CoipAddressUsage::GetAllocationId
const Aws::String & GetAllocationId() const
Definition: CoipAddressUsage.h:46
Aws::EC2::Model::CoipAddressUsage::WithCoIp
CoipAddressUsage & WithCoIp(const Aws::String &value)
Definition: CoipAddressUsage.h:194
AWSStreamFwd.h
Aws::EC2::Model::CoipAddressUsage::WithAwsAccountId
CoipAddressUsage & WithAwsAccountId(Aws::String &&value)
Definition: CoipAddressUsage.h:117
Aws::EC2::Model::CoipAddressUsage::WithAwsAccountId
CoipAddressUsage & WithAwsAccountId(const char *value)
Definition: CoipAddressUsage.h:122
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::CoipAddressUsage::SetAwsService
void SetAwsService(const Aws::String &value)
Definition: CoipAddressUsage.h:138
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::CoipAddressUsage::SetCoIp
void SetCoIp(const char *value)
Definition: CoipAddressUsage.h:189
Aws::EC2::Model::CoipAddressUsage::AwsAccountIdHasBeenSet
bool AwsAccountIdHasBeenSet() const
Definition: CoipAddressUsage.h:92
Aws::EC2::Model::CoipAddressUsage::operator=
CoipAddressUsage & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::CoipAddressUsage
Definition: CoipAddressUsage.h:33
Aws::EC2::Model::CoipAddressUsage::SetAwsAccountId
void SetAwsAccountId(const Aws::String &value)
Definition: CoipAddressUsage.h:97
Aws::EC2::Model::CoipAddressUsage::SetCoIp
void SetCoIp(const Aws::String &value)
Definition: CoipAddressUsage.h:179
AWSString.h
Aws::EC2::Model::CoipAddressUsage::SetAwsAccountId
void SetAwsAccountId(const char *value)
Definition: CoipAddressUsage.h:107
Aws::EC2::Model::CoipAddressUsage::CoIpHasBeenSet
bool CoIpHasBeenSet() const
Definition: CoipAddressUsage.h:174
Aws::EC2::Model::CoipAddressUsage::CoipAddressUsage
CoipAddressUsage()
Aws::EC2::Model::CoipAddressUsage::AwsServiceHasBeenSet
bool AwsServiceHasBeenSet() const
Definition: CoipAddressUsage.h:133
Aws::EC2::Model::CoipAddressUsage::GetAwsAccountId
const Aws::String & GetAwsAccountId() const
Definition: CoipAddressUsage.h:87
Aws::EC2::Model::CoipAddressUsage::GetAwsService
const Aws::String & GetAwsService() const
Definition: CoipAddressUsage.h:128
Aws::EC2::Model::CoipAddressUsage::WithAllocationId
CoipAddressUsage & WithAllocationId(const Aws::String &value)
Definition: CoipAddressUsage.h:71
Aws::EC2::Model::CoipAddressUsage::WithAwsService
CoipAddressUsage & WithAwsService(const Aws::String &value)
Definition: CoipAddressUsage.h:153
Aws::EC2::Model::CoipAddressUsage::AllocationIdHasBeenSet
bool AllocationIdHasBeenSet() const
Definition: CoipAddressUsage.h:51
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::CoipAddressUsage::SetAwsAccountId
void SetAwsAccountId(Aws::String &&value)
Definition: CoipAddressUsage.h:102
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::CoipAddressUsage::SetCoIp
void SetCoIp(Aws::String &&value)
Definition: CoipAddressUsage.h:184
Aws::EC2::Model::CoipAddressUsage::WithAwsAccountId
CoipAddressUsage & WithAwsAccountId(const Aws::String &value)
Definition: CoipAddressUsage.h:112
Aws::EC2::Model::CoipAddressUsage::SetAwsService
void SetAwsService(const char *value)
Definition: CoipAddressUsage.h:148
EC2_EXPORTS.h
Aws::EC2::Model::CoipAddressUsage::SetAllocationId
void SetAllocationId(const char *value)
Definition: CoipAddressUsage.h:66