AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateDomainAssociationRequest.h
1
6#pragma once
7#include <aws/amplify/Amplify_EXPORTS.h>
8#include <aws/amplify/AmplifyRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/amplify/model/CertificateSettings.h>
12#include <aws/amplify/model/SubDomainSetting.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Amplify
18{
19namespace Model
20{
21
29 {
30 public:
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "CreateDomainAssociation"; }
38
39 AWS_AMPLIFY_API Aws::String SerializePayload() const override;
40
41
43
46 inline const Aws::String& GetAppId() const{ return m_appId; }
47 inline bool AppIdHasBeenSet() const { return m_appIdHasBeenSet; }
48 inline void SetAppId(const Aws::String& value) { m_appIdHasBeenSet = true; m_appId = value; }
49 inline void SetAppId(Aws::String&& value) { m_appIdHasBeenSet = true; m_appId = std::move(value); }
50 inline void SetAppId(const char* value) { m_appIdHasBeenSet = true; m_appId.assign(value); }
51 inline CreateDomainAssociationRequest& WithAppId(const Aws::String& value) { SetAppId(value); return *this;}
52 inline CreateDomainAssociationRequest& WithAppId(Aws::String&& value) { SetAppId(std::move(value)); return *this;}
53 inline CreateDomainAssociationRequest& WithAppId(const char* value) { SetAppId(value); return *this;}
55
57
60 inline const Aws::String& GetDomainName() const{ return m_domainName; }
61 inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; }
62 inline void SetDomainName(const Aws::String& value) { m_domainNameHasBeenSet = true; m_domainName = value; }
63 inline void SetDomainName(Aws::String&& value) { m_domainNameHasBeenSet = true; m_domainName = std::move(value); }
64 inline void SetDomainName(const char* value) { m_domainNameHasBeenSet = true; m_domainName.assign(value); }
65 inline CreateDomainAssociationRequest& WithDomainName(const Aws::String& value) { SetDomainName(value); return *this;}
66 inline CreateDomainAssociationRequest& WithDomainName(Aws::String&& value) { SetDomainName(std::move(value)); return *this;}
67 inline CreateDomainAssociationRequest& WithDomainName(const char* value) { SetDomainName(value); return *this;}
69
71
74 inline bool GetEnableAutoSubDomain() const{ return m_enableAutoSubDomain; }
75 inline bool EnableAutoSubDomainHasBeenSet() const { return m_enableAutoSubDomainHasBeenSet; }
76 inline void SetEnableAutoSubDomain(bool value) { m_enableAutoSubDomainHasBeenSet = true; m_enableAutoSubDomain = value; }
79
81
84 inline const Aws::Vector<SubDomainSetting>& GetSubDomainSettings() const{ return m_subDomainSettings; }
85 inline bool SubDomainSettingsHasBeenSet() const { return m_subDomainSettingsHasBeenSet; }
86 inline void SetSubDomainSettings(const Aws::Vector<SubDomainSetting>& value) { m_subDomainSettingsHasBeenSet = true; m_subDomainSettings = value; }
87 inline void SetSubDomainSettings(Aws::Vector<SubDomainSetting>&& value) { m_subDomainSettingsHasBeenSet = true; m_subDomainSettings = std::move(value); }
90 inline CreateDomainAssociationRequest& AddSubDomainSettings(const SubDomainSetting& value) { m_subDomainSettingsHasBeenSet = true; m_subDomainSettings.push_back(value); return *this; }
91 inline CreateDomainAssociationRequest& AddSubDomainSettings(SubDomainSetting&& value) { m_subDomainSettingsHasBeenSet = true; m_subDomainSettings.push_back(std::move(value)); return *this; }
93
95
98 inline const Aws::Vector<Aws::String>& GetAutoSubDomainCreationPatterns() const{ return m_autoSubDomainCreationPatterns; }
99 inline bool AutoSubDomainCreationPatternsHasBeenSet() const { return m_autoSubDomainCreationPatternsHasBeenSet; }
100 inline void SetAutoSubDomainCreationPatterns(const Aws::Vector<Aws::String>& value) { m_autoSubDomainCreationPatternsHasBeenSet = true; m_autoSubDomainCreationPatterns = value; }
101 inline void SetAutoSubDomainCreationPatterns(Aws::Vector<Aws::String>&& value) { m_autoSubDomainCreationPatternsHasBeenSet = true; m_autoSubDomainCreationPatterns = std::move(value); }
104 inline CreateDomainAssociationRequest& AddAutoSubDomainCreationPatterns(const Aws::String& value) { m_autoSubDomainCreationPatternsHasBeenSet = true; m_autoSubDomainCreationPatterns.push_back(value); return *this; }
105 inline CreateDomainAssociationRequest& AddAutoSubDomainCreationPatterns(Aws::String&& value) { m_autoSubDomainCreationPatternsHasBeenSet = true; m_autoSubDomainCreationPatterns.push_back(std::move(value)); return *this; }
106 inline CreateDomainAssociationRequest& AddAutoSubDomainCreationPatterns(const char* value) { m_autoSubDomainCreationPatternsHasBeenSet = true; m_autoSubDomainCreationPatterns.push_back(value); return *this; }
108
110
114 inline const Aws::String& GetAutoSubDomainIAMRole() const{ return m_autoSubDomainIAMRole; }
115 inline bool AutoSubDomainIAMRoleHasBeenSet() const { return m_autoSubDomainIAMRoleHasBeenSet; }
116 inline void SetAutoSubDomainIAMRole(const Aws::String& value) { m_autoSubDomainIAMRoleHasBeenSet = true; m_autoSubDomainIAMRole = value; }
117 inline void SetAutoSubDomainIAMRole(Aws::String&& value) { m_autoSubDomainIAMRoleHasBeenSet = true; m_autoSubDomainIAMRole = std::move(value); }
118 inline void SetAutoSubDomainIAMRole(const char* value) { m_autoSubDomainIAMRoleHasBeenSet = true; m_autoSubDomainIAMRole.assign(value); }
121 inline CreateDomainAssociationRequest& WithAutoSubDomainIAMRole(const char* value) { SetAutoSubDomainIAMRole(value); return *this;}
123
125
130 inline const CertificateSettings& GetCertificateSettings() const{ return m_certificateSettings; }
131 inline bool CertificateSettingsHasBeenSet() const { return m_certificateSettingsHasBeenSet; }
132 inline void SetCertificateSettings(const CertificateSettings& value) { m_certificateSettingsHasBeenSet = true; m_certificateSettings = value; }
133 inline void SetCertificateSettings(CertificateSettings&& value) { m_certificateSettingsHasBeenSet = true; m_certificateSettings = std::move(value); }
137 private:
138
139 Aws::String m_appId;
140 bool m_appIdHasBeenSet = false;
141
142 Aws::String m_domainName;
143 bool m_domainNameHasBeenSet = false;
144
145 bool m_enableAutoSubDomain;
146 bool m_enableAutoSubDomainHasBeenSet = false;
147
148 Aws::Vector<SubDomainSetting> m_subDomainSettings;
149 bool m_subDomainSettingsHasBeenSet = false;
150
151 Aws::Vector<Aws::String> m_autoSubDomainCreationPatterns;
152 bool m_autoSubDomainCreationPatternsHasBeenSet = false;
153
154 Aws::String m_autoSubDomainIAMRole;
155 bool m_autoSubDomainIAMRoleHasBeenSet = false;
156
157 CertificateSettings m_certificateSettings;
158 bool m_certificateSettingsHasBeenSet = false;
159 };
160
161} // namespace Model
162} // namespace Amplify
163} // namespace Aws
CreateDomainAssociationRequest & AddAutoSubDomainCreationPatterns(const char *value)
CreateDomainAssociationRequest & WithSubDomainSettings(Aws::Vector< SubDomainSetting > &&value)
CreateDomainAssociationRequest & AddAutoSubDomainCreationPatterns(const Aws::String &value)
CreateDomainAssociationRequest & WithAppId(const Aws::String &value)
void SetSubDomainSettings(Aws::Vector< SubDomainSetting > &&value)
void SetAutoSubDomainCreationPatterns(Aws::Vector< Aws::String > &&value)
void SetAutoSubDomainCreationPatterns(const Aws::Vector< Aws::String > &value)
CreateDomainAssociationRequest & WithDomainName(Aws::String &&value)
CreateDomainAssociationRequest & WithAutoSubDomainIAMRole(const char *value)
CreateDomainAssociationRequest & WithDomainName(const Aws::String &value)
CreateDomainAssociationRequest & WithAutoSubDomainIAMRole(Aws::String &&value)
AWS_AMPLIFY_API Aws::String SerializePayload() const override
CreateDomainAssociationRequest & WithAutoSubDomainCreationPatterns(Aws::Vector< Aws::String > &&value)
const Aws::Vector< Aws::String > & GetAutoSubDomainCreationPatterns() const
CreateDomainAssociationRequest & WithAppId(Aws::String &&value)
CreateDomainAssociationRequest & WithDomainName(const char *value)
CreateDomainAssociationRequest & AddSubDomainSettings(const SubDomainSetting &value)
void SetSubDomainSettings(const Aws::Vector< SubDomainSetting > &value)
CreateDomainAssociationRequest & AddAutoSubDomainCreationPatterns(Aws::String &&value)
CreateDomainAssociationRequest & AddSubDomainSettings(SubDomainSetting &&value)
CreateDomainAssociationRequest & WithCertificateSettings(const CertificateSettings &value)
CreateDomainAssociationRequest & WithAutoSubDomainCreationPatterns(const Aws::Vector< Aws::String > &value)
CreateDomainAssociationRequest & WithAppId(const char *value)
CreateDomainAssociationRequest & WithAutoSubDomainIAMRole(const Aws::String &value)
CreateDomainAssociationRequest & WithCertificateSettings(CertificateSettings &&value)
CreateDomainAssociationRequest & WithSubDomainSettings(const Aws::Vector< SubDomainSetting > &value)
const Aws::Vector< SubDomainSetting > & GetSubDomainSettings() const
CreateDomainAssociationRequest & WithEnableAutoSubDomain(bool value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector