AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateSubscriptionTargetRequest.h
1
6#pragma once
7#include <aws/datazone/DataZone_EXPORTS.h>
8#include <aws/datazone/DataZoneRequest.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/datazone/model/SubscriptionTargetForm.h>
12#include <utility>
13#include <aws/core/utils/UUID.h>
14
15namespace Aws
16{
17namespace DataZone
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_DATAZONE_API CreateSubscriptionTargetRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateSubscriptionTarget"; }
34
35 AWS_DATAZONE_API Aws::String SerializePayload() const override;
36
37
39
42 inline const Aws::Vector<Aws::String>& GetApplicableAssetTypes() const { return m_applicableAssetTypes; }
43 inline bool ApplicableAssetTypesHasBeenSet() const { return m_applicableAssetTypesHasBeenSet; }
44 template<typename ApplicableAssetTypesT = Aws::Vector<Aws::String>>
45 void SetApplicableAssetTypes(ApplicableAssetTypesT&& value) { m_applicableAssetTypesHasBeenSet = true; m_applicableAssetTypes = std::forward<ApplicableAssetTypesT>(value); }
46 template<typename ApplicableAssetTypesT = Aws::Vector<Aws::String>>
47 CreateSubscriptionTargetRequest& WithApplicableAssetTypes(ApplicableAssetTypesT&& value) { SetApplicableAssetTypes(std::forward<ApplicableAssetTypesT>(value)); return *this;}
48 template<typename ApplicableAssetTypesT = Aws::String>
49 CreateSubscriptionTargetRequest& AddApplicableAssetTypes(ApplicableAssetTypesT&& value) { m_applicableAssetTypesHasBeenSet = true; m_applicableAssetTypes.emplace_back(std::forward<ApplicableAssetTypesT>(value)); return *this; }
51
53
56 inline const Aws::Vector<Aws::String>& GetAuthorizedPrincipals() const { return m_authorizedPrincipals; }
57 inline bool AuthorizedPrincipalsHasBeenSet() const { return m_authorizedPrincipalsHasBeenSet; }
58 template<typename AuthorizedPrincipalsT = Aws::Vector<Aws::String>>
59 void SetAuthorizedPrincipals(AuthorizedPrincipalsT&& value) { m_authorizedPrincipalsHasBeenSet = true; m_authorizedPrincipals = std::forward<AuthorizedPrincipalsT>(value); }
60 template<typename AuthorizedPrincipalsT = Aws::Vector<Aws::String>>
61 CreateSubscriptionTargetRequest& WithAuthorizedPrincipals(AuthorizedPrincipalsT&& value) { SetAuthorizedPrincipals(std::forward<AuthorizedPrincipalsT>(value)); return *this;}
62 template<typename AuthorizedPrincipalsT = Aws::String>
63 CreateSubscriptionTargetRequest& AddAuthorizedPrincipals(AuthorizedPrincipalsT&& value) { m_authorizedPrincipalsHasBeenSet = true; m_authorizedPrincipals.emplace_back(std::forward<AuthorizedPrincipalsT>(value)); return *this; }
65
67
71 inline const Aws::String& GetClientToken() const { return m_clientToken; }
72 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
73 template<typename ClientTokenT = Aws::String>
74 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
75 template<typename ClientTokenT = Aws::String>
76 CreateSubscriptionTargetRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
78
80
84 inline const Aws::String& GetDomainIdentifier() const { return m_domainIdentifier; }
85 inline bool DomainIdentifierHasBeenSet() const { return m_domainIdentifierHasBeenSet; }
86 template<typename DomainIdentifierT = Aws::String>
87 void SetDomainIdentifier(DomainIdentifierT&& value) { m_domainIdentifierHasBeenSet = true; m_domainIdentifier = std::forward<DomainIdentifierT>(value); }
88 template<typename DomainIdentifierT = Aws::String>
89 CreateSubscriptionTargetRequest& WithDomainIdentifier(DomainIdentifierT&& value) { SetDomainIdentifier(std::forward<DomainIdentifierT>(value)); return *this;}
91
93
96 inline const Aws::String& GetEnvironmentIdentifier() const { return m_environmentIdentifier; }
97 inline bool EnvironmentIdentifierHasBeenSet() const { return m_environmentIdentifierHasBeenSet; }
98 template<typename EnvironmentIdentifierT = Aws::String>
99 void SetEnvironmentIdentifier(EnvironmentIdentifierT&& value) { m_environmentIdentifierHasBeenSet = true; m_environmentIdentifier = std::forward<EnvironmentIdentifierT>(value); }
100 template<typename EnvironmentIdentifierT = Aws::String>
101 CreateSubscriptionTargetRequest& WithEnvironmentIdentifier(EnvironmentIdentifierT&& value) { SetEnvironmentIdentifier(std::forward<EnvironmentIdentifierT>(value)); return *this;}
103
105
108 inline const Aws::String& GetManageAccessRole() const { return m_manageAccessRole; }
109 inline bool ManageAccessRoleHasBeenSet() const { return m_manageAccessRoleHasBeenSet; }
110 template<typename ManageAccessRoleT = Aws::String>
111 void SetManageAccessRole(ManageAccessRoleT&& value) { m_manageAccessRoleHasBeenSet = true; m_manageAccessRole = std::forward<ManageAccessRoleT>(value); }
112 template<typename ManageAccessRoleT = Aws::String>
113 CreateSubscriptionTargetRequest& WithManageAccessRole(ManageAccessRoleT&& value) { SetManageAccessRole(std::forward<ManageAccessRoleT>(value)); return *this;}
115
117
120 inline const Aws::String& GetName() const { return m_name; }
121 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
122 template<typename NameT = Aws::String>
123 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
124 template<typename NameT = Aws::String>
125 CreateSubscriptionTargetRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
127
129
132 inline const Aws::String& GetProvider() const { return m_provider; }
133 inline bool ProviderHasBeenSet() const { return m_providerHasBeenSet; }
134 template<typename ProviderT = Aws::String>
135 void SetProvider(ProviderT&& value) { m_providerHasBeenSet = true; m_provider = std::forward<ProviderT>(value); }
136 template<typename ProviderT = Aws::String>
137 CreateSubscriptionTargetRequest& WithProvider(ProviderT&& value) { SetProvider(std::forward<ProviderT>(value)); return *this;}
139
141
144 inline const Aws::Vector<SubscriptionTargetForm>& GetSubscriptionTargetConfig() const { return m_subscriptionTargetConfig; }
145 inline bool SubscriptionTargetConfigHasBeenSet() const { return m_subscriptionTargetConfigHasBeenSet; }
146 template<typename SubscriptionTargetConfigT = Aws::Vector<SubscriptionTargetForm>>
147 void SetSubscriptionTargetConfig(SubscriptionTargetConfigT&& value) { m_subscriptionTargetConfigHasBeenSet = true; m_subscriptionTargetConfig = std::forward<SubscriptionTargetConfigT>(value); }
148 template<typename SubscriptionTargetConfigT = Aws::Vector<SubscriptionTargetForm>>
149 CreateSubscriptionTargetRequest& WithSubscriptionTargetConfig(SubscriptionTargetConfigT&& value) { SetSubscriptionTargetConfig(std::forward<SubscriptionTargetConfigT>(value)); return *this;}
150 template<typename SubscriptionTargetConfigT = SubscriptionTargetForm>
151 CreateSubscriptionTargetRequest& AddSubscriptionTargetConfig(SubscriptionTargetConfigT&& value) { m_subscriptionTargetConfigHasBeenSet = true; m_subscriptionTargetConfig.emplace_back(std::forward<SubscriptionTargetConfigT>(value)); return *this; }
153
155
158 inline const Aws::String& GetType() const { return m_type; }
159 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
160 template<typename TypeT = Aws::String>
161 void SetType(TypeT&& value) { m_typeHasBeenSet = true; m_type = std::forward<TypeT>(value); }
162 template<typename TypeT = Aws::String>
163 CreateSubscriptionTargetRequest& WithType(TypeT&& value) { SetType(std::forward<TypeT>(value)); return *this;}
165 private:
166
167 Aws::Vector<Aws::String> m_applicableAssetTypes;
168 bool m_applicableAssetTypesHasBeenSet = false;
169
170 Aws::Vector<Aws::String> m_authorizedPrincipals;
171 bool m_authorizedPrincipalsHasBeenSet = false;
172
174 bool m_clientTokenHasBeenSet = true;
175
176 Aws::String m_domainIdentifier;
177 bool m_domainIdentifierHasBeenSet = false;
178
179 Aws::String m_environmentIdentifier;
180 bool m_environmentIdentifierHasBeenSet = false;
181
182 Aws::String m_manageAccessRole;
183 bool m_manageAccessRoleHasBeenSet = false;
184
185 Aws::String m_name;
186 bool m_nameHasBeenSet = false;
187
188 Aws::String m_provider;
189 bool m_providerHasBeenSet = false;
190
191 Aws::Vector<SubscriptionTargetForm> m_subscriptionTargetConfig;
192 bool m_subscriptionTargetConfigHasBeenSet = false;
193
194 Aws::String m_type;
195 bool m_typeHasBeenSet = false;
196 };
197
198} // namespace Model
199} // namespace DataZone
200} // namespace Aws
CreateSubscriptionTargetRequest & WithSubscriptionTargetConfig(SubscriptionTargetConfigT &&value)
CreateSubscriptionTargetRequest & WithName(NameT &&value)
CreateSubscriptionTargetRequest & WithManageAccessRole(ManageAccessRoleT &&value)
CreateSubscriptionTargetRequest & WithType(TypeT &&value)
const Aws::Vector< Aws::String > & GetAuthorizedPrincipals() const
CreateSubscriptionTargetRequest & WithDomainIdentifier(DomainIdentifierT &&value)
CreateSubscriptionTargetRequest & WithEnvironmentIdentifier(EnvironmentIdentifierT &&value)
const Aws::Vector< SubscriptionTargetForm > & GetSubscriptionTargetConfig() const
const Aws::Vector< Aws::String > & GetApplicableAssetTypes() const
AWS_DATAZONE_API Aws::String SerializePayload() const override
CreateSubscriptionTargetRequest & WithProvider(ProviderT &&value)
CreateSubscriptionTargetRequest & AddSubscriptionTargetConfig(SubscriptionTargetConfigT &&value)
CreateSubscriptionTargetRequest & WithAuthorizedPrincipals(AuthorizedPrincipalsT &&value)
CreateSubscriptionTargetRequest & WithApplicableAssetTypes(ApplicableAssetTypesT &&value)
CreateSubscriptionTargetRequest & AddAuthorizedPrincipals(AuthorizedPrincipalsT &&value)
CreateSubscriptionTargetRequest & AddApplicableAssetTypes(ApplicableAssetTypesT &&value)
CreateSubscriptionTargetRequest & WithClientToken(ClientTokenT &&value)
AWS_DATAZONE_API CreateSubscriptionTargetRequest()=default
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector