AWS SDK for C++  1.9.73
AWS SDK for C++
ModifyAddressAttributeRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
8 #include <aws/ec2/EC2Request.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace EC2
15 {
16 namespace Model
17 {
18 
22  {
23  public:
25 
26  // Service request name is the Operation name which will send this request out,
27  // each operation should has unique request name, so that we can get operation's name from this request.
28  // Note: this is not true for response, multiple operations may have the same response name,
29  // so we can not get operation's name from response.
30  inline virtual const char* GetServiceRequestName() const override { return "ModifyAddressAttribute"; }
31 
32  Aws::String SerializePayload() const override;
33 
34  protected:
35  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
36 
37  public:
38 
42  inline const Aws::String& GetAllocationId() const{ return m_allocationId; }
43 
47  inline bool AllocationIdHasBeenSet() const { return m_allocationIdHasBeenSet; }
48 
52  inline void SetAllocationId(const Aws::String& value) { m_allocationIdHasBeenSet = true; m_allocationId = value; }
53 
57  inline void SetAllocationId(Aws::String&& value) { m_allocationIdHasBeenSet = true; m_allocationId = std::move(value); }
58 
62  inline void SetAllocationId(const char* value) { m_allocationIdHasBeenSet = true; m_allocationId.assign(value); }
63 
67  inline ModifyAddressAttributeRequest& WithAllocationId(const Aws::String& value) { SetAllocationId(value); return *this;}
68 
72  inline ModifyAddressAttributeRequest& WithAllocationId(Aws::String&& value) { SetAllocationId(std::move(value)); return *this;}
73 
77  inline ModifyAddressAttributeRequest& WithAllocationId(const char* value) { SetAllocationId(value); return *this;}
78 
79 
83  inline const Aws::String& GetDomainName() const{ return m_domainName; }
84 
88  inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; }
89 
93  inline void SetDomainName(const Aws::String& value) { m_domainNameHasBeenSet = true; m_domainName = value; }
94 
98  inline void SetDomainName(Aws::String&& value) { m_domainNameHasBeenSet = true; m_domainName = std::move(value); }
99 
103  inline void SetDomainName(const char* value) { m_domainNameHasBeenSet = true; m_domainName.assign(value); }
104 
108  inline ModifyAddressAttributeRequest& WithDomainName(const Aws::String& value) { SetDomainName(value); return *this;}
109 
113  inline ModifyAddressAttributeRequest& WithDomainName(Aws::String&& value) { SetDomainName(std::move(value)); return *this;}
114 
118  inline ModifyAddressAttributeRequest& WithDomainName(const char* value) { SetDomainName(value); return *this;}
119 
120 
127  inline bool GetDryRun() const{ return m_dryRun; }
128 
135  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
136 
143  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
144 
151  inline ModifyAddressAttributeRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
152 
153  private:
154 
155  Aws::String m_allocationId;
156  bool m_allocationIdHasBeenSet;
157 
158  Aws::String m_domainName;
159  bool m_domainNameHasBeenSet;
160 
161  bool m_dryRun;
162  bool m_dryRunHasBeenSet;
163  };
164 
165 } // namespace Model
166 } // namespace EC2
167 } // namespace Aws
Aws::EC2::Model::ModifyAddressAttributeRequest::SetDryRun
void SetDryRun(bool value)
Definition: ModifyAddressAttributeRequest.h:143
Aws::EC2::Model::ModifyAddressAttributeRequest::WithDomainName
ModifyAddressAttributeRequest & WithDomainName(const Aws::String &value)
Definition: ModifyAddressAttributeRequest.h:108
Aws::EC2::Model::ModifyAddressAttributeRequest::SetAllocationId
void SetAllocationId(const Aws::String &value)
Definition: ModifyAddressAttributeRequest.h:52
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::ModifyAddressAttributeRequest::SetDomainName
void SetDomainName(const char *value)
Definition: ModifyAddressAttributeRequest.h:103
Aws::EC2::Model::ModifyAddressAttributeRequest::GetDryRun
bool GetDryRun() const
Definition: ModifyAddressAttributeRequest.h:127
Aws::EC2::Model::ModifyAddressAttributeRequest::DomainNameHasBeenSet
bool DomainNameHasBeenSet() const
Definition: ModifyAddressAttributeRequest.h:88
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::ModifyAddressAttributeRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ModifyAddressAttributeRequest.h:30
Aws::EC2::Model::ModifyAddressAttributeRequest::SetDomainName
void SetDomainName(Aws::String &&value)
Definition: ModifyAddressAttributeRequest.h:98
Aws::EC2::Model::ModifyAddressAttributeRequest::GetAllocationId
const Aws::String & GetAllocationId() const
Definition: ModifyAddressAttributeRequest.h:42
Aws::EC2::Model::ModifyAddressAttributeRequest::WithDomainName
ModifyAddressAttributeRequest & WithDomainName(Aws::String &&value)
Definition: ModifyAddressAttributeRequest.h:113
EC2Request.h
Aws::EC2::Model::ModifyAddressAttributeRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::ModifyAddressAttributeRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
AWSString.h
Aws::EC2::Model::ModifyAddressAttributeRequest::WithAllocationId
ModifyAddressAttributeRequest & WithAllocationId(Aws::String &&value)
Definition: ModifyAddressAttributeRequest.h:72
Aws::EC2::Model::ModifyAddressAttributeRequest::SetAllocationId
void SetAllocationId(const char *value)
Definition: ModifyAddressAttributeRequest.h:62
Aws::EC2::Model::ModifyAddressAttributeRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: ModifyAddressAttributeRequest.h:135
Aws::EC2::Model::ModifyAddressAttributeRequest::WithAllocationId
ModifyAddressAttributeRequest & WithAllocationId(const char *value)
Definition: ModifyAddressAttributeRequest.h:77
Aws::EC2::Model::ModifyAddressAttributeRequest::WithDryRun
ModifyAddressAttributeRequest & WithDryRun(bool value)
Definition: ModifyAddressAttributeRequest.h:151
Aws::EC2::Model::ModifyAddressAttributeRequest::ModifyAddressAttributeRequest
ModifyAddressAttributeRequest()
Aws::EC2::Model::ModifyAddressAttributeRequest::WithAllocationId
ModifyAddressAttributeRequest & WithAllocationId(const Aws::String &value)
Definition: ModifyAddressAttributeRequest.h:67
Aws::EC2::Model::ModifyAddressAttributeRequest::AllocationIdHasBeenSet
bool AllocationIdHasBeenSet() const
Definition: ModifyAddressAttributeRequest.h:47
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::ModifyAddressAttributeRequest::WithDomainName
ModifyAddressAttributeRequest & WithDomainName(const char *value)
Definition: ModifyAddressAttributeRequest.h:118
Aws::EC2::EC2Request
Definition: EC2Request.h:17
Aws::EC2::Model::ModifyAddressAttributeRequest::SetDomainName
void SetDomainName(const Aws::String &value)
Definition: ModifyAddressAttributeRequest.h:93
Aws::EC2::Model::ModifyAddressAttributeRequest
Definition: ModifyAddressAttributeRequest.h:22
Aws::EC2::Model::ModifyAddressAttributeRequest::GetDomainName
const Aws::String & GetDomainName() const
Definition: ModifyAddressAttributeRequest.h:83
EC2_EXPORTS.h
Aws::EC2::Model::ModifyAddressAttributeRequest::SetAllocationId
void SetAllocationId(Aws::String &&value)
Definition: ModifyAddressAttributeRequest.h:57