AWS SDK for C++  1.9.73
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 
95  inline const ModifyAvailabilityZoneOptInStatus& GetOptInStatus() const{ return m_optInStatus; }
96 
103  inline bool OptInStatusHasBeenSet() const { return m_optInStatusHasBeenSet; }
104 
111  inline void SetOptInStatus(const ModifyAvailabilityZoneOptInStatus& value) { m_optInStatusHasBeenSet = true; m_optInStatus = value; }
112 
119  inline void SetOptInStatus(ModifyAvailabilityZoneOptInStatus&& value) { m_optInStatusHasBeenSet = true; m_optInStatus = std::move(value); }
120 
127  inline ModifyAvailabilityZoneGroupRequest& WithOptInStatus(const ModifyAvailabilityZoneOptInStatus& value) { SetOptInStatus(value); return *this;}
128 
135  inline ModifyAvailabilityZoneGroupRequest& WithOptInStatus(ModifyAvailabilityZoneOptInStatus&& value) { SetOptInStatus(std::move(value)); return *this;}
136 
137 
144  inline bool GetDryRun() const{ return m_dryRun; }
145 
152  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
153 
160  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
161 
168  inline ModifyAvailabilityZoneGroupRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
169 
170  private:
171 
172  Aws::String m_groupName;
173  bool m_groupNameHasBeenSet;
174 
175  ModifyAvailabilityZoneOptInStatus m_optInStatus;
176  bool m_optInStatusHasBeenSet;
177 
178  bool m_dryRun;
179  bool m_dryRunHasBeenSet;
180  };
181 
182 } // namespace Model
183 } // namespace EC2
184 } // 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:135
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:103
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:95
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:144
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:119
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:111
Aws::EC2::Model::ModifyAvailabilityZoneGroupRequest::WithOptInStatus
ModifyAvailabilityZoneGroupRequest & WithOptInStatus(const ModifyAvailabilityZoneOptInStatus &value)
Definition: ModifyAvailabilityZoneGroupRequest.h:127
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:152
Aws::EC2::Model::ModifyAvailabilityZoneGroupRequest::WithDryRun
ModifyAvailabilityZoneGroupRequest & WithDryRun(bool value)
Definition: ModifyAvailabilityZoneGroupRequest.h:168
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:160