AWS SDK for C++  1.9.125
AWS SDK for C++
ModifyAvailabilityZoneGroupRequest.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 "ModifyAvailabilityZoneGroup"; }
32 
33  Aws::String SerializePayload() const override;
34 
35  protected:
36  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
37 
38  public:
39 
44  inline const Aws::String& GetGroupName() const{ return m_groupName; }
45 
50  inline bool GroupNameHasBeenSet() const { return m_groupNameHasBeenSet; }
51 
56  inline void SetGroupName(const Aws::String& value) { m_groupNameHasBeenSet = true; m_groupName = value; }
57 
62  inline void SetGroupName(Aws::String&& value) { m_groupNameHasBeenSet = true; m_groupName = std::move(value); }
63 
68  inline void SetGroupName(const char* value) { m_groupNameHasBeenSet = true; m_groupName.assign(value); }
69 
74  inline ModifyAvailabilityZoneGroupRequest& WithGroupName(const Aws::String& value) { SetGroupName(value); return *this;}
75 
80  inline ModifyAvailabilityZoneGroupRequest& WithGroupName(Aws::String&& value) { SetGroupName(std::move(value)); return *this;}
81 
86  inline ModifyAvailabilityZoneGroupRequest& WithGroupName(const char* value) { SetGroupName(value); return *this;}
87 
88 
96  inline const ModifyAvailabilityZoneOptInStatus& GetOptInStatus() const{ return m_optInStatus; }
97 
105  inline bool OptInStatusHasBeenSet() const { return m_optInStatusHasBeenSet; }
106 
114  inline void SetOptInStatus(const ModifyAvailabilityZoneOptInStatus& value) { m_optInStatusHasBeenSet = true; m_optInStatus = value; }
115 
123  inline void SetOptInStatus(ModifyAvailabilityZoneOptInStatus&& value) { m_optInStatusHasBeenSet = true; m_optInStatus = std::move(value); }
124 
132  inline ModifyAvailabilityZoneGroupRequest& WithOptInStatus(const ModifyAvailabilityZoneOptInStatus& value) { SetOptInStatus(value); return *this;}
133 
141  inline ModifyAvailabilityZoneGroupRequest& WithOptInStatus(ModifyAvailabilityZoneOptInStatus&& value) { SetOptInStatus(std::move(value)); return *this;}
142 
143 
150  inline bool GetDryRun() const{ return m_dryRun; }
151 
158  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
159 
166  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
167 
174  inline ModifyAvailabilityZoneGroupRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
175 
176  private:
177 
178  Aws::String m_groupName;
179  bool m_groupNameHasBeenSet;
180 
181  ModifyAvailabilityZoneOptInStatus m_optInStatus;
182  bool m_optInStatusHasBeenSet;
183 
184  bool m_dryRun;
185  bool m_dryRunHasBeenSet;
186  };
187 
188 } // namespace Model
189 } // namespace EC2
190 } // namespace Aws
Aws::EC2::Model::ModifyAvailabilityZoneGroupRequest::SetGroupName
void SetGroupName(const Aws::String &value)
Definition: ModifyAvailabilityZoneGroupRequest.h:56
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::ModifyAvailabilityZoneGroupRequest::WithOptInStatus
ModifyAvailabilityZoneGroupRequest & WithOptInStatus(ModifyAvailabilityZoneOptInStatus &&value)
Definition: ModifyAvailabilityZoneGroupRequest.h:141
Aws::EC2::Model::ModifyAvailabilityZoneGroupRequest::ModifyAvailabilityZoneGroupRequest
ModifyAvailabilityZoneGroupRequest()
Aws::EC2::Model::ModifyAvailabilityZoneGroupRequest::GroupNameHasBeenSet
bool GroupNameHasBeenSet() const
Definition: ModifyAvailabilityZoneGroupRequest.h:50
Aws::EC2::Model::ModifyAvailabilityZoneGroupRequest::WithGroupName
ModifyAvailabilityZoneGroupRequest & WithGroupName(Aws::String &&value)
Definition: ModifyAvailabilityZoneGroupRequest.h:80
Aws::EC2::Model::ModifyAvailabilityZoneGroupRequest::OptInStatusHasBeenSet
bool OptInStatusHasBeenSet() const
Definition: ModifyAvailabilityZoneGroupRequest.h:105
Aws::EC2::Model::ModifyAvailabilityZoneGroupRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::ModifyAvailabilityZoneGroupRequest::GetOptInStatus
const ModifyAvailabilityZoneOptInStatus & GetOptInStatus() const
Definition: ModifyAvailabilityZoneGroupRequest.h:96
Aws::EC2::Model::ModifyAvailabilityZoneGroupRequest::SerializePayload
Aws::String SerializePayload() const override
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
ModifyAvailabilityZoneOptInStatus.h
Aws::EC2::Model::ModifyAvailabilityZoneGroupRequest::GetDryRun
bool GetDryRun() const
Definition: ModifyAvailabilityZoneGroupRequest.h:150
Aws::EC2::Model::ModifyAvailabilityZoneGroupRequest::GetGroupName
const Aws::String & GetGroupName() const
Definition: ModifyAvailabilityZoneGroupRequest.h:44
Aws::EC2::Model::ModifyAvailabilityZoneGroupRequest::SetOptInStatus
void SetOptInStatus(ModifyAvailabilityZoneOptInStatus &&value)
Definition: ModifyAvailabilityZoneGroupRequest.h:123
EC2Request.h
Aws::EC2::Model::ModifyAvailabilityZoneGroupRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ModifyAvailabilityZoneGroupRequest.h:31
AWSString.h
Aws::EC2::Model::ModifyAvailabilityZoneGroupRequest::WithGroupName
ModifyAvailabilityZoneGroupRequest & WithGroupName(const char *value)
Definition: ModifyAvailabilityZoneGroupRequest.h:86
Aws::EC2::Model::ModifyAvailabilityZoneGroupRequest::SetOptInStatus
void SetOptInStatus(const ModifyAvailabilityZoneOptInStatus &value)
Definition: ModifyAvailabilityZoneGroupRequest.h:114
Aws::EC2::Model::ModifyAvailabilityZoneGroupRequest::WithOptInStatus
ModifyAvailabilityZoneGroupRequest & WithOptInStatus(const ModifyAvailabilityZoneOptInStatus &value)
Definition: ModifyAvailabilityZoneGroupRequest.h:132
Aws::EC2::Model::ModifyAvailabilityZoneGroupRequest::SetGroupName
void SetGroupName(const char *value)
Definition: ModifyAvailabilityZoneGroupRequest.h:68
Aws::EC2::Model::ModifyAvailabilityZoneGroupRequest::SetGroupName
void SetGroupName(Aws::String &&value)
Definition: ModifyAvailabilityZoneGroupRequest.h:62
Aws::EC2::Model::ModifyAvailabilityZoneOptInStatus
ModifyAvailabilityZoneOptInStatus
Definition: ModifyAvailabilityZoneOptInStatus.h:17
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::ModifyAvailabilityZoneGroupRequest
Definition: ModifyAvailabilityZoneGroupRequest.h:23
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::ModifyAvailabilityZoneGroupRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: ModifyAvailabilityZoneGroupRequest.h:158
Aws::EC2::Model::ModifyAvailabilityZoneGroupRequest::WithDryRun
ModifyAvailabilityZoneGroupRequest & WithDryRun(bool value)
Definition: ModifyAvailabilityZoneGroupRequest.h:174
EC2_EXPORTS.h
Aws::EC2::Model::ModifyAvailabilityZoneGroupRequest::WithGroupName
ModifyAvailabilityZoneGroupRequest & WithGroupName(const Aws::String &value)
Definition: ModifyAvailabilityZoneGroupRequest.h:74
Aws::EC2::Model::ModifyAvailabilityZoneGroupRequest::SetDryRun
void SetDryRun(bool value)
Definition: ModifyAvailabilityZoneGroupRequest.h:166