AWS SDK for C++  1.9.66
AWS SDK for C++
ResetAddressAttributeRequest.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>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace EC2
16 {
17 namespace Model
18 {
19 
23  {
24  public:
26 
27  // Service request name is the Operation name which will send this request out,
28  // each operation should has unique request name, so that we can get operation's name from this request.
29  // Note: this is not true for response, multiple operations may have the same response name,
30  // so we can not get operation's name from response.
31  inline virtual const char* GetServiceRequestName() const override { return "ResetAddressAttribute"; }
32 
33  Aws::String SerializePayload() const override;
34 
35  protected:
36  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
37 
38  public:
39 
43  inline const Aws::String& GetAllocationId() const{ return m_allocationId; }
44 
48  inline bool AllocationIdHasBeenSet() const { return m_allocationIdHasBeenSet; }
49 
53  inline void SetAllocationId(const Aws::String& value) { m_allocationIdHasBeenSet = true; m_allocationId = value; }
54 
58  inline void SetAllocationId(Aws::String&& value) { m_allocationIdHasBeenSet = true; m_allocationId = std::move(value); }
59 
63  inline void SetAllocationId(const char* value) { m_allocationIdHasBeenSet = true; m_allocationId.assign(value); }
64 
68  inline ResetAddressAttributeRequest& WithAllocationId(const Aws::String& value) { SetAllocationId(value); return *this;}
69 
73  inline ResetAddressAttributeRequest& WithAllocationId(Aws::String&& value) { SetAllocationId(std::move(value)); return *this;}
74 
78  inline ResetAddressAttributeRequest& WithAllocationId(const char* value) { SetAllocationId(value); return *this;}
79 
80 
84  inline const AddressAttributeName& GetAttribute() const{ return m_attribute; }
85 
89  inline bool AttributeHasBeenSet() const { return m_attributeHasBeenSet; }
90 
94  inline void SetAttribute(const AddressAttributeName& value) { m_attributeHasBeenSet = true; m_attribute = value; }
95 
99  inline void SetAttribute(AddressAttributeName&& value) { m_attributeHasBeenSet = true; m_attribute = std::move(value); }
100 
104  inline ResetAddressAttributeRequest& WithAttribute(const AddressAttributeName& value) { SetAttribute(value); return *this;}
105 
109  inline ResetAddressAttributeRequest& WithAttribute(AddressAttributeName&& value) { SetAttribute(std::move(value)); return *this;}
110 
111 
118  inline bool GetDryRun() const{ return m_dryRun; }
119 
126  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
127 
134  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
135 
142  inline ResetAddressAttributeRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
143 
144  private:
145 
146  Aws::String m_allocationId;
147  bool m_allocationIdHasBeenSet;
148 
149  AddressAttributeName m_attribute;
150  bool m_attributeHasBeenSet;
151 
152  bool m_dryRun;
153  bool m_dryRunHasBeenSet;
154  };
155 
156 } // namespace Model
157 } // namespace EC2
158 } // namespace Aws
Aws::EC2::Model::ResetAddressAttributeRequest::WithAttribute
ResetAddressAttributeRequest & WithAttribute(AddressAttributeName &&value)
Definition: ResetAddressAttributeRequest.h:109
Aws::EC2::Model::ResetAddressAttributeRequest::SetAllocationId
void SetAllocationId(Aws::String &&value)
Definition: ResetAddressAttributeRequest.h:58
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::ResetAddressAttributeRequest::GetDryRun
bool GetDryRun() const
Definition: ResetAddressAttributeRequest.h:118
Aws::EC2::Model::ResetAddressAttributeRequest::GetAttribute
const AddressAttributeName & GetAttribute() const
Definition: ResetAddressAttributeRequest.h:84
Aws::EC2::Model::ResetAddressAttributeRequest::AttributeHasBeenSet
bool AttributeHasBeenSet() const
Definition: ResetAddressAttributeRequest.h:89
Aws::EC2::Model::ResetAddressAttributeRequest::AllocationIdHasBeenSet
bool AllocationIdHasBeenSet() const
Definition: ResetAddressAttributeRequest.h:48
Aws::EC2::Model::ResetAddressAttributeRequest::SetAllocationId
void SetAllocationId(const Aws::String &value)
Definition: ResetAddressAttributeRequest.h:53
Aws::EC2::Model::ResetAddressAttributeRequest::SetDryRun
void SetDryRun(bool value)
Definition: ResetAddressAttributeRequest.h:134
Aws::EC2::Model::ResetAddressAttributeRequest::SerializePayload
Aws::String SerializePayload() const override
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::ResetAddressAttributeRequest::WithAllocationId
ResetAddressAttributeRequest & WithAllocationId(const char *value)
Definition: ResetAddressAttributeRequest.h:78
Aws::EC2::Model::ResetAddressAttributeRequest::SetAttribute
void SetAttribute(const AddressAttributeName &value)
Definition: ResetAddressAttributeRequest.h:94
Aws::EC2::Model::ResetAddressAttributeRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ResetAddressAttributeRequest.h:31
Aws::EC2::Model::ResetAddressAttributeRequest
Definition: ResetAddressAttributeRequest.h:23
Aws::EC2::Model::ResetAddressAttributeRequest::WithAllocationId
ResetAddressAttributeRequest & WithAllocationId(Aws::String &&value)
Definition: ResetAddressAttributeRequest.h:73
Aws::EC2::Model::ResetAddressAttributeRequest::GetAllocationId
const Aws::String & GetAllocationId() const
Definition: ResetAddressAttributeRequest.h:43
EC2Request.h
Aws::EC2::Model::ResetAddressAttributeRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
AWSString.h
Aws::EC2::Model::ResetAddressAttributeRequest::SetAttribute
void SetAttribute(AddressAttributeName &&value)
Definition: ResetAddressAttributeRequest.h:99
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::AddressAttributeName
AddressAttributeName
Definition: AddressAttributeName.h:17
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
Aws::EC2::Model::ResetAddressAttributeRequest::WithAllocationId
ResetAddressAttributeRequest & WithAllocationId(const Aws::String &value)
Definition: ResetAddressAttributeRequest.h:68
Aws::EC2::Model::ResetAddressAttributeRequest::WithAttribute
ResetAddressAttributeRequest & WithAttribute(const AddressAttributeName &value)
Definition: ResetAddressAttributeRequest.h:104
Aws::EC2::Model::ResetAddressAttributeRequest::ResetAddressAttributeRequest
ResetAddressAttributeRequest()
Aws::EC2::Model::ResetAddressAttributeRequest::SetAllocationId
void SetAllocationId(const char *value)
Definition: ResetAddressAttributeRequest.h:63
AddressAttributeName.h
EC2_EXPORTS.h
Aws::EC2::Model::ResetAddressAttributeRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: ResetAddressAttributeRequest.h:126
Aws::EC2::Model::ResetAddressAttributeRequest::WithDryRun
ResetAddressAttributeRequest & WithDryRun(bool value)
Definition: ResetAddressAttributeRequest.h:142