AWS SDK for C++  1.8.154
AWS SDK for C++
AddRegionRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace DirectoryService
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 "AddRegion"; }
32 
33  Aws::String SerializePayload() const override;
34 
36 
37 
42  inline const Aws::String& GetDirectoryId() const{ return m_directoryId; }
43 
48  inline bool DirectoryIdHasBeenSet() const { return m_directoryIdHasBeenSet; }
49 
54  inline void SetDirectoryId(const Aws::String& value) { m_directoryIdHasBeenSet = true; m_directoryId = value; }
55 
60  inline void SetDirectoryId(Aws::String&& value) { m_directoryIdHasBeenSet = true; m_directoryId = std::move(value); }
61 
66  inline void SetDirectoryId(const char* value) { m_directoryIdHasBeenSet = true; m_directoryId.assign(value); }
67 
72  inline AddRegionRequest& WithDirectoryId(const Aws::String& value) { SetDirectoryId(value); return *this;}
73 
78  inline AddRegionRequest& WithDirectoryId(Aws::String&& value) { SetDirectoryId(std::move(value)); return *this;}
79 
84  inline AddRegionRequest& WithDirectoryId(const char* value) { SetDirectoryId(value); return *this;}
85 
86 
91  inline const Aws::String& GetRegionName() const{ return m_regionName; }
92 
97  inline bool RegionNameHasBeenSet() const { return m_regionNameHasBeenSet; }
98 
103  inline void SetRegionName(const Aws::String& value) { m_regionNameHasBeenSet = true; m_regionName = value; }
104 
109  inline void SetRegionName(Aws::String&& value) { m_regionNameHasBeenSet = true; m_regionName = std::move(value); }
110 
115  inline void SetRegionName(const char* value) { m_regionNameHasBeenSet = true; m_regionName.assign(value); }
116 
121  inline AddRegionRequest& WithRegionName(const Aws::String& value) { SetRegionName(value); return *this;}
122 
127  inline AddRegionRequest& WithRegionName(Aws::String&& value) { SetRegionName(std::move(value)); return *this;}
128 
133  inline AddRegionRequest& WithRegionName(const char* value) { SetRegionName(value); return *this;}
134 
135 
136 
137  inline const DirectoryVpcSettings& GetVPCSettings() const{ return m_vPCSettings; }
138 
139 
140  inline bool VPCSettingsHasBeenSet() const { return m_vPCSettingsHasBeenSet; }
141 
142 
143  inline void SetVPCSettings(const DirectoryVpcSettings& value) { m_vPCSettingsHasBeenSet = true; m_vPCSettings = value; }
144 
145 
146  inline void SetVPCSettings(DirectoryVpcSettings&& value) { m_vPCSettingsHasBeenSet = true; m_vPCSettings = std::move(value); }
147 
148 
149  inline AddRegionRequest& WithVPCSettings(const DirectoryVpcSettings& value) { SetVPCSettings(value); return *this;}
150 
151 
152  inline AddRegionRequest& WithVPCSettings(DirectoryVpcSettings&& value) { SetVPCSettings(std::move(value)); return *this;}
153 
154  private:
155 
156  Aws::String m_directoryId;
157  bool m_directoryIdHasBeenSet;
158 
159  Aws::String m_regionName;
160  bool m_regionNameHasBeenSet;
161 
162  DirectoryVpcSettings m_vPCSettings;
163  bool m_vPCSettingsHasBeenSet;
164  };
165 
166 } // namespace Model
167 } // namespace DirectoryService
168 } // namespace Aws
Aws::DirectoryService::Model::AddRegionRequest::SerializePayload
Aws::String SerializePayload() const override
DirectoryVpcSettings.h
AWS_DIRECTORYSERVICE_API
#define AWS_DIRECTORYSERVICE_API
Definition: DirectoryService_EXPORTS.h:28
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::DirectoryService::Model::AddRegionRequest::WithVPCSettings
AddRegionRequest & WithVPCSettings(const DirectoryVpcSettings &value)
Definition: AddRegionRequest.h:149
Aws::DirectoryService::Model::AddRegionRequest::SetVPCSettings
void SetVPCSettings(const DirectoryVpcSettings &value)
Definition: AddRegionRequest.h:143
Aws::DirectoryService::Model::AddRegionRequest::DirectoryIdHasBeenSet
bool DirectoryIdHasBeenSet() const
Definition: AddRegionRequest.h:48
DirectoryService_EXPORTS.h
Aws::DirectoryService::Model::AddRegionRequest::WithRegionName
AddRegionRequest & WithRegionName(const Aws::String &value)
Definition: AddRegionRequest.h:121
Aws::DirectoryService::Model::AddRegionRequest::SetDirectoryId
void SetDirectoryId(const char *value)
Definition: AddRegionRequest.h:66
Aws::DirectoryService::Model::AddRegionRequest::SetDirectoryId
void SetDirectoryId(const Aws::String &value)
Definition: AddRegionRequest.h:54
Aws::DirectoryService::Model::AddRegionRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: AddRegionRequest.h:31
Aws::DirectoryService::Model::AddRegionRequest::GetRegionName
const Aws::String & GetRegionName() const
Definition: AddRegionRequest.h:91
Aws::DirectoryService::DirectoryServiceRequest
Definition: DirectoryServiceRequest.h:17
Aws::DirectoryService::Model::AddRegionRequest::GetDirectoryId
const Aws::String & GetDirectoryId() const
Definition: AddRegionRequest.h:42
Aws::DirectoryService::Model::AddRegionRequest::GetVPCSettings
const DirectoryVpcSettings & GetVPCSettings() const
Definition: AddRegionRequest.h:137
Aws::DirectoryService::Model::AddRegionRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::DirectoryService::Model::AddRegionRequest::SetRegionName
void SetRegionName(Aws::String &&value)
Definition: AddRegionRequest.h:109
AWSString.h
Aws::DirectoryService::Model::AddRegionRequest::RegionNameHasBeenSet
bool RegionNameHasBeenSet() const
Definition: AddRegionRequest.h:97
Aws::DirectoryService::Model::AddRegionRequest::WithDirectoryId
AddRegionRequest & WithDirectoryId(Aws::String &&value)
Definition: AddRegionRequest.h:78
Aws::DirectoryService::Model::AddRegionRequest
Definition: AddRegionRequest.h:23
Aws::DirectoryService::Model::AddRegionRequest::WithRegionName
AddRegionRequest & WithRegionName(Aws::String &&value)
Definition: AddRegionRequest.h:127
Aws::DirectoryService::Model::AddRegionRequest::WithDirectoryId
AddRegionRequest & WithDirectoryId(const Aws::String &value)
Definition: AddRegionRequest.h:72
Aws::DirectoryService::Model::AddRegionRequest::WithRegionName
AddRegionRequest & WithRegionName(const char *value)
Definition: AddRegionRequest.h:133
Aws
Definition: AccessManagementClient.h:15
Aws::DirectoryService::Model::AddRegionRequest::WithDirectoryId
AddRegionRequest & WithDirectoryId(const char *value)
Definition: AddRegionRequest.h:84
Aws::DirectoryService::Model::AddRegionRequest::SetDirectoryId
void SetDirectoryId(Aws::String &&value)
Definition: AddRegionRequest.h:60
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::DirectoryService::Model::AddRegionRequest::WithVPCSettings
AddRegionRequest & WithVPCSettings(DirectoryVpcSettings &&value)
Definition: AddRegionRequest.h:152
Aws::DirectoryService::Model::AddRegionRequest::SetVPCSettings
void SetVPCSettings(DirectoryVpcSettings &&value)
Definition: AddRegionRequest.h:146
Aws::DirectoryService::Model::AddRegionRequest::SetRegionName
void SetRegionName(const Aws::String &value)
Definition: AddRegionRequest.h:103
DirectoryServiceRequest.h
Aws::DirectoryService::Model::AddRegionRequest::SetRegionName
void SetRegionName(const char *value)
Definition: AddRegionRequest.h:115
Aws::DirectoryService::Model::AddRegionRequest::VPCSettingsHasBeenSet
bool VPCSettingsHasBeenSet() const
Definition: AddRegionRequest.h:140
Aws::DirectoryService::Model::DirectoryVpcSettings
Definition: DirectoryVpcSettings.h:34
Aws::DirectoryService::Model::AddRegionRequest::AddRegionRequest
AddRegionRequest()