AWS SDK for C++  1.9.71
AWS SDK for C++
DisassociateAddressRequest.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 "DisassociateAddress"; }
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& GetAssociationId() const{ return m_associationId; }
43 
47  inline bool AssociationIdHasBeenSet() const { return m_associationIdHasBeenSet; }
48 
52  inline void SetAssociationId(const Aws::String& value) { m_associationIdHasBeenSet = true; m_associationId = value; }
53 
57  inline void SetAssociationId(Aws::String&& value) { m_associationIdHasBeenSet = true; m_associationId = std::move(value); }
58 
62  inline void SetAssociationId(const char* value) { m_associationIdHasBeenSet = true; m_associationId.assign(value); }
63 
67  inline DisassociateAddressRequest& WithAssociationId(const Aws::String& value) { SetAssociationId(value); return *this;}
68 
72  inline DisassociateAddressRequest& WithAssociationId(Aws::String&& value) { SetAssociationId(std::move(value)); return *this;}
73 
77  inline DisassociateAddressRequest& WithAssociationId(const char* value) { SetAssociationId(value); return *this;}
78 
79 
83  inline const Aws::String& GetPublicIp() const{ return m_publicIp; }
84 
88  inline bool PublicIpHasBeenSet() const { return m_publicIpHasBeenSet; }
89 
93  inline void SetPublicIp(const Aws::String& value) { m_publicIpHasBeenSet = true; m_publicIp = value; }
94 
98  inline void SetPublicIp(Aws::String&& value) { m_publicIpHasBeenSet = true; m_publicIp = std::move(value); }
99 
103  inline void SetPublicIp(const char* value) { m_publicIpHasBeenSet = true; m_publicIp.assign(value); }
104 
108  inline DisassociateAddressRequest& WithPublicIp(const Aws::String& value) { SetPublicIp(value); return *this;}
109 
113  inline DisassociateAddressRequest& WithPublicIp(Aws::String&& value) { SetPublicIp(std::move(value)); return *this;}
114 
118  inline DisassociateAddressRequest& WithPublicIp(const char* value) { SetPublicIp(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 DisassociateAddressRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
152 
153  private:
154 
155  Aws::String m_associationId;
156  bool m_associationIdHasBeenSet;
157 
158  Aws::String m_publicIp;
159  bool m_publicIpHasBeenSet;
160 
161  bool m_dryRun;
162  bool m_dryRunHasBeenSet;
163  };
164 
165 } // namespace Model
166 } // namespace EC2
167 } // namespace Aws
Aws::EC2::Model::DisassociateAddressRequest::WithAssociationId
DisassociateAddressRequest & WithAssociationId(Aws::String &&value)
Definition: DisassociateAddressRequest.h:72
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::DisassociateAddressRequest::SetPublicIp
void SetPublicIp(const char *value)
Definition: DisassociateAddressRequest.h:103
Aws::EC2::Model::DisassociateAddressRequest::SetAssociationId
void SetAssociationId(const Aws::String &value)
Definition: DisassociateAddressRequest.h:52
Aws::EC2::Model::DisassociateAddressRequest::WithPublicIp
DisassociateAddressRequest & WithPublicIp(Aws::String &&value)
Definition: DisassociateAddressRequest.h:113
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::DisassociateAddressRequest::WithPublicIp
DisassociateAddressRequest & WithPublicIp(const char *value)
Definition: DisassociateAddressRequest.h:118
Aws::EC2::Model::DisassociateAddressRequest::AssociationIdHasBeenSet
bool AssociationIdHasBeenSet() const
Definition: DisassociateAddressRequest.h:47
Aws::EC2::Model::DisassociateAddressRequest::SetPublicIp
void SetPublicIp(Aws::String &&value)
Definition: DisassociateAddressRequest.h:98
Aws::EC2::Model::DisassociateAddressRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::DisassociateAddressRequest::DisassociateAddressRequest
DisassociateAddressRequest()
Aws::EC2::Model::DisassociateAddressRequest::PublicIpHasBeenSet
bool PublicIpHasBeenSet() const
Definition: DisassociateAddressRequest.h:88
Aws::EC2::Model::DisassociateAddressRequest
Definition: DisassociateAddressRequest.h:22
Aws::EC2::Model::DisassociateAddressRequest::SetAssociationId
void SetAssociationId(const char *value)
Definition: DisassociateAddressRequest.h:62
Aws::EC2::Model::DisassociateAddressRequest::GetPublicIp
const Aws::String & GetPublicIp() const
Definition: DisassociateAddressRequest.h:83
EC2Request.h
Aws::EC2::Model::DisassociateAddressRequest::SetDryRun
void SetDryRun(bool value)
Definition: DisassociateAddressRequest.h:143
Aws::EC2::Model::DisassociateAddressRequest::GetDryRun
bool GetDryRun() const
Definition: DisassociateAddressRequest.h:127
AWSString.h
Aws::EC2::Model::DisassociateAddressRequest::WithAssociationId
DisassociateAddressRequest & WithAssociationId(const char *value)
Definition: DisassociateAddressRequest.h:77
Aws::EC2::Model::DisassociateAddressRequest::SetPublicIp
void SetPublicIp(const Aws::String &value)
Definition: DisassociateAddressRequest.h:93
Aws::EC2::Model::DisassociateAddressRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DisassociateAddressRequest.h:30
Aws::EC2::Model::DisassociateAddressRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::DisassociateAddressRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: DisassociateAddressRequest.h:135
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::DisassociateAddressRequest::WithPublicIp
DisassociateAddressRequest & WithPublicIp(const Aws::String &value)
Definition: DisassociateAddressRequest.h:108
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::EC2Request
Definition: EC2Request.h:17
EC2_EXPORTS.h
Aws::EC2::Model::DisassociateAddressRequest::WithDryRun
DisassociateAddressRequest & WithDryRun(bool value)
Definition: DisassociateAddressRequest.h:151
Aws::EC2::Model::DisassociateAddressRequest::SetAssociationId
void SetAssociationId(Aws::String &&value)
Definition: DisassociateAddressRequest.h:57
Aws::EC2::Model::DisassociateAddressRequest::GetAssociationId
const Aws::String & GetAssociationId() const
Definition: DisassociateAddressRequest.h:42
Aws::EC2::Model::DisassociateAddressRequest::WithAssociationId
DisassociateAddressRequest & WithAssociationId(const Aws::String &value)
Definition: DisassociateAddressRequest.h:67