AWS SDK for C++  1.9.155
AWS SDK for C++
CreateDomainAssociationRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Amplify
17 {
18 namespace Model
19 {
20 
28  {
29  public:
31 
32  // Service request name is the Operation name which will send this request out,
33  // each operation should has unique request name, so that we can get operation's name from this request.
34  // Note: this is not true for response, multiple operations may have the same response name,
35  // so we can not get operation's name from response.
36  inline virtual const char* GetServiceRequestName() const override { return "CreateDomainAssociation"; }
37 
38  Aws::String SerializePayload() const override;
39 
40 
44  inline const Aws::String& GetAppId() const{ return m_appId; }
45 
49  inline bool AppIdHasBeenSet() const { return m_appIdHasBeenSet; }
50 
54  inline void SetAppId(const Aws::String& value) { m_appIdHasBeenSet = true; m_appId = value; }
55 
59  inline void SetAppId(Aws::String&& value) { m_appIdHasBeenSet = true; m_appId = std::move(value); }
60 
64  inline void SetAppId(const char* value) { m_appIdHasBeenSet = true; m_appId.assign(value); }
65 
69  inline CreateDomainAssociationRequest& WithAppId(const Aws::String& value) { SetAppId(value); return *this;}
70 
74  inline CreateDomainAssociationRequest& WithAppId(Aws::String&& value) { SetAppId(std::move(value)); return *this;}
75 
79  inline CreateDomainAssociationRequest& WithAppId(const char* value) { SetAppId(value); return *this;}
80 
81 
85  inline const Aws::String& GetDomainName() const{ return m_domainName; }
86 
90  inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; }
91 
95  inline void SetDomainName(const Aws::String& value) { m_domainNameHasBeenSet = true; m_domainName = value; }
96 
100  inline void SetDomainName(Aws::String&& value) { m_domainNameHasBeenSet = true; m_domainName = std::move(value); }
101 
105  inline void SetDomainName(const char* value) { m_domainNameHasBeenSet = true; m_domainName.assign(value); }
106 
110  inline CreateDomainAssociationRequest& WithDomainName(const Aws::String& value) { SetDomainName(value); return *this;}
111 
115  inline CreateDomainAssociationRequest& WithDomainName(Aws::String&& value) { SetDomainName(std::move(value)); return *this;}
116 
120  inline CreateDomainAssociationRequest& WithDomainName(const char* value) { SetDomainName(value); return *this;}
121 
122 
126  inline bool GetEnableAutoSubDomain() const{ return m_enableAutoSubDomain; }
127 
131  inline bool EnableAutoSubDomainHasBeenSet() const { return m_enableAutoSubDomainHasBeenSet; }
132 
136  inline void SetEnableAutoSubDomain(bool value) { m_enableAutoSubDomainHasBeenSet = true; m_enableAutoSubDomain = value; }
137 
141  inline CreateDomainAssociationRequest& WithEnableAutoSubDomain(bool value) { SetEnableAutoSubDomain(value); return *this;}
142 
143 
147  inline const Aws::Vector<SubDomainSetting>& GetSubDomainSettings() const{ return m_subDomainSettings; }
148 
152  inline bool SubDomainSettingsHasBeenSet() const { return m_subDomainSettingsHasBeenSet; }
153 
157  inline void SetSubDomainSettings(const Aws::Vector<SubDomainSetting>& value) { m_subDomainSettingsHasBeenSet = true; m_subDomainSettings = value; }
158 
162  inline void SetSubDomainSettings(Aws::Vector<SubDomainSetting>&& value) { m_subDomainSettingsHasBeenSet = true; m_subDomainSettings = std::move(value); }
163 
167  inline CreateDomainAssociationRequest& WithSubDomainSettings(const Aws::Vector<SubDomainSetting>& value) { SetSubDomainSettings(value); return *this;}
168 
172  inline CreateDomainAssociationRequest& WithSubDomainSettings(Aws::Vector<SubDomainSetting>&& value) { SetSubDomainSettings(std::move(value)); return *this;}
173 
177  inline CreateDomainAssociationRequest& AddSubDomainSettings(const SubDomainSetting& value) { m_subDomainSettingsHasBeenSet = true; m_subDomainSettings.push_back(value); return *this; }
178 
182  inline CreateDomainAssociationRequest& AddSubDomainSettings(SubDomainSetting&& value) { m_subDomainSettingsHasBeenSet = true; m_subDomainSettings.push_back(std::move(value)); return *this; }
183 
184 
188  inline const Aws::Vector<Aws::String>& GetAutoSubDomainCreationPatterns() const{ return m_autoSubDomainCreationPatterns; }
189 
193  inline bool AutoSubDomainCreationPatternsHasBeenSet() const { return m_autoSubDomainCreationPatternsHasBeenSet; }
194 
198  inline void SetAutoSubDomainCreationPatterns(const Aws::Vector<Aws::String>& value) { m_autoSubDomainCreationPatternsHasBeenSet = true; m_autoSubDomainCreationPatterns = value; }
199 
203  inline void SetAutoSubDomainCreationPatterns(Aws::Vector<Aws::String>&& value) { m_autoSubDomainCreationPatternsHasBeenSet = true; m_autoSubDomainCreationPatterns = std::move(value); }
204 
208  inline CreateDomainAssociationRequest& WithAutoSubDomainCreationPatterns(const Aws::Vector<Aws::String>& value) { SetAutoSubDomainCreationPatterns(value); return *this;}
209 
213  inline CreateDomainAssociationRequest& WithAutoSubDomainCreationPatterns(Aws::Vector<Aws::String>&& value) { SetAutoSubDomainCreationPatterns(std::move(value)); return *this;}
214 
218  inline CreateDomainAssociationRequest& AddAutoSubDomainCreationPatterns(const Aws::String& value) { m_autoSubDomainCreationPatternsHasBeenSet = true; m_autoSubDomainCreationPatterns.push_back(value); return *this; }
219 
223  inline CreateDomainAssociationRequest& AddAutoSubDomainCreationPatterns(Aws::String&& value) { m_autoSubDomainCreationPatternsHasBeenSet = true; m_autoSubDomainCreationPatterns.push_back(std::move(value)); return *this; }
224 
228  inline CreateDomainAssociationRequest& AddAutoSubDomainCreationPatterns(const char* value) { m_autoSubDomainCreationPatternsHasBeenSet = true; m_autoSubDomainCreationPatterns.push_back(value); return *this; }
229 
230 
235  inline const Aws::String& GetAutoSubDomainIAMRole() const{ return m_autoSubDomainIAMRole; }
236 
241  inline bool AutoSubDomainIAMRoleHasBeenSet() const { return m_autoSubDomainIAMRoleHasBeenSet; }
242 
247  inline void SetAutoSubDomainIAMRole(const Aws::String& value) { m_autoSubDomainIAMRoleHasBeenSet = true; m_autoSubDomainIAMRole = value; }
248 
253  inline void SetAutoSubDomainIAMRole(Aws::String&& value) { m_autoSubDomainIAMRoleHasBeenSet = true; m_autoSubDomainIAMRole = std::move(value); }
254 
259  inline void SetAutoSubDomainIAMRole(const char* value) { m_autoSubDomainIAMRoleHasBeenSet = true; m_autoSubDomainIAMRole.assign(value); }
260 
265  inline CreateDomainAssociationRequest& WithAutoSubDomainIAMRole(const Aws::String& value) { SetAutoSubDomainIAMRole(value); return *this;}
266 
271  inline CreateDomainAssociationRequest& WithAutoSubDomainIAMRole(Aws::String&& value) { SetAutoSubDomainIAMRole(std::move(value)); return *this;}
272 
277  inline CreateDomainAssociationRequest& WithAutoSubDomainIAMRole(const char* value) { SetAutoSubDomainIAMRole(value); return *this;}
278 
279  private:
280 
281  Aws::String m_appId;
282  bool m_appIdHasBeenSet;
283 
284  Aws::String m_domainName;
285  bool m_domainNameHasBeenSet;
286 
287  bool m_enableAutoSubDomain;
288  bool m_enableAutoSubDomainHasBeenSet;
289 
290  Aws::Vector<SubDomainSetting> m_subDomainSettings;
291  bool m_subDomainSettingsHasBeenSet;
292 
293  Aws::Vector<Aws::String> m_autoSubDomainCreationPatterns;
294  bool m_autoSubDomainCreationPatternsHasBeenSet;
295 
296  Aws::String m_autoSubDomainIAMRole;
297  bool m_autoSubDomainIAMRoleHasBeenSet;
298  };
299 
300 } // namespace Model
301 } // namespace Amplify
302 } // namespace Aws
Amplify_EXPORTS.h
Aws::Amplify::Model::CreateDomainAssociationRequest::GetAutoSubDomainIAMRole
const Aws::String & GetAutoSubDomainIAMRole() const
Definition: CreateDomainAssociationRequest.h:235
Aws::Amplify::Model::CreateDomainAssociationRequest::SetAutoSubDomainIAMRole
void SetAutoSubDomainIAMRole(Aws::String &&value)
Definition: CreateDomainAssociationRequest.h:253
Aws::Amplify::Model::CreateDomainAssociationRequest::AutoSubDomainIAMRoleHasBeenSet
bool AutoSubDomainIAMRoleHasBeenSet() const
Definition: CreateDomainAssociationRequest.h:241
Aws::Amplify::Model::CreateDomainAssociationRequest::AddAutoSubDomainCreationPatterns
CreateDomainAssociationRequest & AddAutoSubDomainCreationPatterns(const char *value)
Definition: CreateDomainAssociationRequest.h:228
Aws::Amplify::Model::CreateDomainAssociationRequest::WithAutoSubDomainCreationPatterns
CreateDomainAssociationRequest & WithAutoSubDomainCreationPatterns(Aws::Vector< Aws::String > &&value)
Definition: CreateDomainAssociationRequest.h:213
Aws::Amplify::Model::CreateDomainAssociationRequest::SetDomainName
void SetDomainName(Aws::String &&value)
Definition: CreateDomainAssociationRequest.h:100
Aws::Amplify::Model::CreateDomainAssociationRequest
Definition: CreateDomainAssociationRequest.h:28
Aws::Amplify::Model::CreateDomainAssociationRequest::SetEnableAutoSubDomain
void SetEnableAutoSubDomain(bool value)
Definition: CreateDomainAssociationRequest.h:136
Aws::Amplify::Model::CreateDomainAssociationRequest::WithAppId
CreateDomainAssociationRequest & WithAppId(Aws::String &&value)
Definition: CreateDomainAssociationRequest.h:74
Aws::Amplify::Model::CreateDomainAssociationRequest::GetSubDomainSettings
const Aws::Vector< SubDomainSetting > & GetSubDomainSettings() const
Definition: CreateDomainAssociationRequest.h:147
Aws::Amplify::Model::CreateDomainAssociationRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateDomainAssociationRequest.h:36
Aws::Amplify::Model::CreateDomainAssociationRequest::SetAppId
void SetAppId(const char *value)
Definition: CreateDomainAssociationRequest.h:64
Aws::Amplify::Model::CreateDomainAssociationRequest::SubDomainSettingsHasBeenSet
bool SubDomainSettingsHasBeenSet() const
Definition: CreateDomainAssociationRequest.h:152
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Amplify::Model::CreateDomainAssociationRequest::AddAutoSubDomainCreationPatterns
CreateDomainAssociationRequest & AddAutoSubDomainCreationPatterns(Aws::String &&value)
Definition: CreateDomainAssociationRequest.h:223
AWSVector.h
AmplifyRequest.h
Aws::Amplify::Model::CreateDomainAssociationRequest::SetAppId
void SetAppId(const Aws::String &value)
Definition: CreateDomainAssociationRequest.h:54
Aws::Amplify::Model::CreateDomainAssociationRequest::EnableAutoSubDomainHasBeenSet
bool EnableAutoSubDomainHasBeenSet() const
Definition: CreateDomainAssociationRequest.h:131
Aws::Amplify::Model::CreateDomainAssociationRequest::SetSubDomainSettings
void SetSubDomainSettings(const Aws::Vector< SubDomainSetting > &value)
Definition: CreateDomainAssociationRequest.h:157
Aws::Amplify::AmplifyRequest
Definition: AmplifyRequest.h:17
SubDomainSetting.h
Aws::Amplify::Model::CreateDomainAssociationRequest::SetSubDomainSettings
void SetSubDomainSettings(Aws::Vector< SubDomainSetting > &&value)
Definition: CreateDomainAssociationRequest.h:162
Aws::Amplify::Model::CreateDomainAssociationRequest::CreateDomainAssociationRequest
CreateDomainAssociationRequest()
Aws::Amplify::Model::CreateDomainAssociationRequest::WithSubDomainSettings
CreateDomainAssociationRequest & WithSubDomainSettings(Aws::Vector< SubDomainSetting > &&value)
Definition: CreateDomainAssociationRequest.h:172
Aws::Amplify::Model::SubDomainSetting
Definition: SubDomainSetting.h:32
Aws::Amplify::Model::CreateDomainAssociationRequest::WithDomainName
CreateDomainAssociationRequest & WithDomainName(const Aws::String &value)
Definition: CreateDomainAssociationRequest.h:110
Aws::Amplify::Model::CreateDomainAssociationRequest::SetAutoSubDomainCreationPatterns
void SetAutoSubDomainCreationPatterns(const Aws::Vector< Aws::String > &value)
Definition: CreateDomainAssociationRequest.h:198
AWSString.h
Aws::Amplify::Model::CreateDomainAssociationRequest::WithDomainName
CreateDomainAssociationRequest & WithDomainName(Aws::String &&value)
Definition: CreateDomainAssociationRequest.h:115
Aws::Amplify::Model::CreateDomainAssociationRequest::SetAppId
void SetAppId(Aws::String &&value)
Definition: CreateDomainAssociationRequest.h:59
Aws::Amplify::Model::CreateDomainAssociationRequest::SetAutoSubDomainIAMRole
void SetAutoSubDomainIAMRole(const Aws::String &value)
Definition: CreateDomainAssociationRequest.h:247
Aws::Amplify::Model::CreateDomainAssociationRequest::WithEnableAutoSubDomain
CreateDomainAssociationRequest & WithEnableAutoSubDomain(bool value)
Definition: CreateDomainAssociationRequest.h:141
Aws::Amplify::Model::CreateDomainAssociationRequest::SetDomainName
void SetDomainName(const char *value)
Definition: CreateDomainAssociationRequest.h:105
Aws::Amplify::Model::CreateDomainAssociationRequest::WithAutoSubDomainIAMRole
CreateDomainAssociationRequest & WithAutoSubDomainIAMRole(const char *value)
Definition: CreateDomainAssociationRequest.h:277
Aws::Amplify::Model::CreateDomainAssociationRequest::WithSubDomainSettings
CreateDomainAssociationRequest & WithSubDomainSettings(const Aws::Vector< SubDomainSetting > &value)
Definition: CreateDomainAssociationRequest.h:167
Aws::Amplify::Model::CreateDomainAssociationRequest::WithAppId
CreateDomainAssociationRequest & WithAppId(const Aws::String &value)
Definition: CreateDomainAssociationRequest.h:69
Aws::Amplify::Model::CreateDomainAssociationRequest::SetAutoSubDomainCreationPatterns
void SetAutoSubDomainCreationPatterns(Aws::Vector< Aws::String > &&value)
Definition: CreateDomainAssociationRequest.h:203
Aws::Amplify::Model::CreateDomainAssociationRequest::WithDomainName
CreateDomainAssociationRequest & WithDomainName(const char *value)
Definition: CreateDomainAssociationRequest.h:120
Aws::Amplify::Model::CreateDomainAssociationRequest::WithAutoSubDomainIAMRole
CreateDomainAssociationRequest & WithAutoSubDomainIAMRole(Aws::String &&value)
Definition: CreateDomainAssociationRequest.h:271
Aws::Amplify::Model::CreateDomainAssociationRequest::SetAutoSubDomainIAMRole
void SetAutoSubDomainIAMRole(const char *value)
Definition: CreateDomainAssociationRequest.h:259
Aws::Amplify::Model::CreateDomainAssociationRequest::AppIdHasBeenSet
bool AppIdHasBeenSet() const
Definition: CreateDomainAssociationRequest.h:49
Aws
Definition: AccessManagementClient.h:15
Aws::Amplify::Model::CreateDomainAssociationRequest::GetEnableAutoSubDomain
bool GetEnableAutoSubDomain() const
Definition: CreateDomainAssociationRequest.h:126
Aws::Amplify::Model::CreateDomainAssociationRequest::AddSubDomainSettings
CreateDomainAssociationRequest & AddSubDomainSettings(SubDomainSetting &&value)
Definition: CreateDomainAssociationRequest.h:182
Aws::Amplify::Model::CreateDomainAssociationRequest::GetDomainName
const Aws::String & GetDomainName() const
Definition: CreateDomainAssociationRequest.h:85
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Amplify::Model::CreateDomainAssociationRequest::SetDomainName
void SetDomainName(const Aws::String &value)
Definition: CreateDomainAssociationRequest.h:95
Aws::Amplify::Model::CreateDomainAssociationRequest::DomainNameHasBeenSet
bool DomainNameHasBeenSet() const
Definition: CreateDomainAssociationRequest.h:90
Aws::Amplify::Model::CreateDomainAssociationRequest::WithAutoSubDomainCreationPatterns
CreateDomainAssociationRequest & WithAutoSubDomainCreationPatterns(const Aws::Vector< Aws::String > &value)
Definition: CreateDomainAssociationRequest.h:208
Aws::Amplify::Model::CreateDomainAssociationRequest::AutoSubDomainCreationPatternsHasBeenSet
bool AutoSubDomainCreationPatternsHasBeenSet() const
Definition: CreateDomainAssociationRequest.h:193
Aws::Amplify::Model::CreateDomainAssociationRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Amplify::Model::CreateDomainAssociationRequest::GetAutoSubDomainCreationPatterns
const Aws::Vector< Aws::String > & GetAutoSubDomainCreationPatterns() const
Definition: CreateDomainAssociationRequest.h:188
Aws::Amplify::Model::CreateDomainAssociationRequest::AddAutoSubDomainCreationPatterns
CreateDomainAssociationRequest & AddAutoSubDomainCreationPatterns(const Aws::String &value)
Definition: CreateDomainAssociationRequest.h:218
Aws::Amplify::Model::CreateDomainAssociationRequest::WithAutoSubDomainIAMRole
CreateDomainAssociationRequest & WithAutoSubDomainIAMRole(const Aws::String &value)
Definition: CreateDomainAssociationRequest.h:265
Aws::Amplify::Model::CreateDomainAssociationRequest::WithAppId
CreateDomainAssociationRequest & WithAppId(const char *value)
Definition: CreateDomainAssociationRequest.h:79
Aws::Amplify::Model::CreateDomainAssociationRequest::AddSubDomainSettings
CreateDomainAssociationRequest & AddSubDomainSettings(const SubDomainSetting &value)
Definition: CreateDomainAssociationRequest.h:177
AWS_AMPLIFY_API
#define AWS_AMPLIFY_API
Definition: Amplify_EXPORTS.h:28
Aws::Amplify::Model::CreateDomainAssociationRequest::GetAppId
const Aws::String & GetAppId() const
Definition: CreateDomainAssociationRequest.h:44