AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetApplicableAssetTypes(const Aws::Vector<Aws::String>& value) { m_applicableAssetTypesHasBeenSet = true; m_applicableAssetTypes = value; }
45 inline void SetApplicableAssetTypes(Aws::Vector<Aws::String>&& value) { m_applicableAssetTypesHasBeenSet = true; m_applicableAssetTypes = std::move(value); }
48 inline CreateSubscriptionTargetRequest& AddApplicableAssetTypes(const Aws::String& value) { m_applicableAssetTypesHasBeenSet = true; m_applicableAssetTypes.push_back(value); return *this; }
49 inline CreateSubscriptionTargetRequest& AddApplicableAssetTypes(Aws::String&& value) { m_applicableAssetTypesHasBeenSet = true; m_applicableAssetTypes.push_back(std::move(value)); return *this; }
50 inline CreateSubscriptionTargetRequest& AddApplicableAssetTypes(const char* value) { m_applicableAssetTypesHasBeenSet = true; m_applicableAssetTypes.push_back(value); return *this; }
52
54
57 inline const Aws::Vector<Aws::String>& GetAuthorizedPrincipals() const{ return m_authorizedPrincipals; }
58 inline bool AuthorizedPrincipalsHasBeenSet() const { return m_authorizedPrincipalsHasBeenSet; }
59 inline void SetAuthorizedPrincipals(const Aws::Vector<Aws::String>& value) { m_authorizedPrincipalsHasBeenSet = true; m_authorizedPrincipals = value; }
60 inline void SetAuthorizedPrincipals(Aws::Vector<Aws::String>&& value) { m_authorizedPrincipalsHasBeenSet = true; m_authorizedPrincipals = std::move(value); }
63 inline CreateSubscriptionTargetRequest& AddAuthorizedPrincipals(const Aws::String& value) { m_authorizedPrincipalsHasBeenSet = true; m_authorizedPrincipals.push_back(value); return *this; }
64 inline CreateSubscriptionTargetRequest& AddAuthorizedPrincipals(Aws::String&& value) { m_authorizedPrincipalsHasBeenSet = true; m_authorizedPrincipals.push_back(std::move(value)); return *this; }
65 inline CreateSubscriptionTargetRequest& AddAuthorizedPrincipals(const char* value) { m_authorizedPrincipalsHasBeenSet = true; m_authorizedPrincipals.push_back(value); return *this; }
67
69
73 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
74 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
75 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
76 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
77 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
78 inline CreateSubscriptionTargetRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
79 inline CreateSubscriptionTargetRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
80 inline CreateSubscriptionTargetRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
82
84
88 inline const Aws::String& GetDomainIdentifier() const{ return m_domainIdentifier; }
89 inline bool DomainIdentifierHasBeenSet() const { return m_domainIdentifierHasBeenSet; }
90 inline void SetDomainIdentifier(const Aws::String& value) { m_domainIdentifierHasBeenSet = true; m_domainIdentifier = value; }
91 inline void SetDomainIdentifier(Aws::String&& value) { m_domainIdentifierHasBeenSet = true; m_domainIdentifier = std::move(value); }
92 inline void SetDomainIdentifier(const char* value) { m_domainIdentifierHasBeenSet = true; m_domainIdentifier.assign(value); }
94 inline CreateSubscriptionTargetRequest& WithDomainIdentifier(Aws::String&& value) { SetDomainIdentifier(std::move(value)); return *this;}
95 inline CreateSubscriptionTargetRequest& WithDomainIdentifier(const char* value) { SetDomainIdentifier(value); return *this;}
97
99
102 inline const Aws::String& GetEnvironmentIdentifier() const{ return m_environmentIdentifier; }
103 inline bool EnvironmentIdentifierHasBeenSet() const { return m_environmentIdentifierHasBeenSet; }
104 inline void SetEnvironmentIdentifier(const Aws::String& value) { m_environmentIdentifierHasBeenSet = true; m_environmentIdentifier = value; }
105 inline void SetEnvironmentIdentifier(Aws::String&& value) { m_environmentIdentifierHasBeenSet = true; m_environmentIdentifier = std::move(value); }
106 inline void SetEnvironmentIdentifier(const char* value) { m_environmentIdentifierHasBeenSet = true; m_environmentIdentifier.assign(value); }
111
113
116 inline const Aws::String& GetManageAccessRole() const{ return m_manageAccessRole; }
117 inline bool ManageAccessRoleHasBeenSet() const { return m_manageAccessRoleHasBeenSet; }
118 inline void SetManageAccessRole(const Aws::String& value) { m_manageAccessRoleHasBeenSet = true; m_manageAccessRole = value; }
119 inline void SetManageAccessRole(Aws::String&& value) { m_manageAccessRoleHasBeenSet = true; m_manageAccessRole = std::move(value); }
120 inline void SetManageAccessRole(const char* value) { m_manageAccessRoleHasBeenSet = true; m_manageAccessRole.assign(value); }
122 inline CreateSubscriptionTargetRequest& WithManageAccessRole(Aws::String&& value) { SetManageAccessRole(std::move(value)); return *this;}
123 inline CreateSubscriptionTargetRequest& WithManageAccessRole(const char* value) { SetManageAccessRole(value); return *this;}
125
127
130 inline const Aws::String& GetName() const{ return m_name; }
131 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
132 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
133 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
134 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
135 inline CreateSubscriptionTargetRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
136 inline CreateSubscriptionTargetRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
137 inline CreateSubscriptionTargetRequest& WithName(const char* value) { SetName(value); return *this;}
139
141
144 inline const Aws::String& GetProvider() const{ return m_provider; }
145 inline bool ProviderHasBeenSet() const { return m_providerHasBeenSet; }
146 inline void SetProvider(const Aws::String& value) { m_providerHasBeenSet = true; m_provider = value; }
147 inline void SetProvider(Aws::String&& value) { m_providerHasBeenSet = true; m_provider = std::move(value); }
148 inline void SetProvider(const char* value) { m_providerHasBeenSet = true; m_provider.assign(value); }
149 inline CreateSubscriptionTargetRequest& WithProvider(const Aws::String& value) { SetProvider(value); return *this;}
150 inline CreateSubscriptionTargetRequest& WithProvider(Aws::String&& value) { SetProvider(std::move(value)); return *this;}
151 inline CreateSubscriptionTargetRequest& WithProvider(const char* value) { SetProvider(value); return *this;}
153
155
158 inline const Aws::Vector<SubscriptionTargetForm>& GetSubscriptionTargetConfig() const{ return m_subscriptionTargetConfig; }
159 inline bool SubscriptionTargetConfigHasBeenSet() const { return m_subscriptionTargetConfigHasBeenSet; }
160 inline void SetSubscriptionTargetConfig(const Aws::Vector<SubscriptionTargetForm>& value) { m_subscriptionTargetConfigHasBeenSet = true; m_subscriptionTargetConfig = value; }
161 inline void SetSubscriptionTargetConfig(Aws::Vector<SubscriptionTargetForm>&& value) { m_subscriptionTargetConfigHasBeenSet = true; m_subscriptionTargetConfig = std::move(value); }
164 inline CreateSubscriptionTargetRequest& AddSubscriptionTargetConfig(const SubscriptionTargetForm& value) { m_subscriptionTargetConfigHasBeenSet = true; m_subscriptionTargetConfig.push_back(value); return *this; }
165 inline CreateSubscriptionTargetRequest& AddSubscriptionTargetConfig(SubscriptionTargetForm&& value) { m_subscriptionTargetConfigHasBeenSet = true; m_subscriptionTargetConfig.push_back(std::move(value)); return *this; }
167
169
172 inline const Aws::String& GetType() const{ return m_type; }
173 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
174 inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
175 inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
176 inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
177 inline CreateSubscriptionTargetRequest& WithType(const Aws::String& value) { SetType(value); return *this;}
178 inline CreateSubscriptionTargetRequest& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
179 inline CreateSubscriptionTargetRequest& WithType(const char* value) { SetType(value); return *this;}
181 private:
182
183 Aws::Vector<Aws::String> m_applicableAssetTypes;
184 bool m_applicableAssetTypesHasBeenSet = false;
185
186 Aws::Vector<Aws::String> m_authorizedPrincipals;
187 bool m_authorizedPrincipalsHasBeenSet = false;
188
189 Aws::String m_clientToken;
190 bool m_clientTokenHasBeenSet = false;
191
192 Aws::String m_domainIdentifier;
193 bool m_domainIdentifierHasBeenSet = false;
194
195 Aws::String m_environmentIdentifier;
196 bool m_environmentIdentifierHasBeenSet = false;
197
198 Aws::String m_manageAccessRole;
199 bool m_manageAccessRoleHasBeenSet = false;
200
201 Aws::String m_name;
202 bool m_nameHasBeenSet = false;
203
204 Aws::String m_provider;
205 bool m_providerHasBeenSet = false;
206
207 Aws::Vector<SubscriptionTargetForm> m_subscriptionTargetConfig;
208 bool m_subscriptionTargetConfigHasBeenSet = false;
209
210 Aws::String m_type;
211 bool m_typeHasBeenSet = false;
212 };
213
214} // namespace Model
215} // namespace DataZone
216} // namespace Aws
CreateSubscriptionTargetRequest & WithManageAccessRole(const char *value)
CreateSubscriptionTargetRequest & WithSubscriptionTargetConfig(const Aws::Vector< SubscriptionTargetForm > &value)
CreateSubscriptionTargetRequest & WithProvider(const Aws::String &value)
CreateSubscriptionTargetRequest & WithEnvironmentIdentifier(const char *value)
CreateSubscriptionTargetRequest & WithDomainIdentifier(Aws::String &&value)
CreateSubscriptionTargetRequest & WithType(Aws::String &&value)
CreateSubscriptionTargetRequest & AddSubscriptionTargetConfig(SubscriptionTargetForm &&value)
void SetSubscriptionTargetConfig(const Aws::Vector< SubscriptionTargetForm > &value)
CreateSubscriptionTargetRequest & WithClientToken(Aws::String &&value)
void SetAuthorizedPrincipals(const Aws::Vector< Aws::String > &value)
CreateSubscriptionTargetRequest & WithProvider(Aws::String &&value)
CreateSubscriptionTargetRequest & WithSubscriptionTargetConfig(Aws::Vector< SubscriptionTargetForm > &&value)
CreateSubscriptionTargetRequest & WithAuthorizedPrincipals(Aws::Vector< Aws::String > &&value)
CreateSubscriptionTargetRequest & AddSubscriptionTargetConfig(const SubscriptionTargetForm &value)
CreateSubscriptionTargetRequest & WithDomainIdentifier(const Aws::String &value)
const Aws::Vector< Aws::String > & GetAuthorizedPrincipals() const
CreateSubscriptionTargetRequest & WithName(Aws::String &&value)
CreateSubscriptionTargetRequest & WithClientToken(const Aws::String &value)
CreateSubscriptionTargetRequest & WithManageAccessRole(Aws::String &&value)
CreateSubscriptionTargetRequest & WithAuthorizedPrincipals(const Aws::Vector< Aws::String > &value)
CreateSubscriptionTargetRequest & WithName(const char *value)
const Aws::Vector< SubscriptionTargetForm > & GetSubscriptionTargetConfig() const
const Aws::Vector< Aws::String > & GetApplicableAssetTypes() const
CreateSubscriptionTargetRequest & WithManageAccessRole(const Aws::String &value)
AWS_DATAZONE_API Aws::String SerializePayload() const override
CreateSubscriptionTargetRequest & AddAuthorizedPrincipals(Aws::String &&value)
CreateSubscriptionTargetRequest & WithType(const Aws::String &value)
void SetApplicableAssetTypes(const Aws::Vector< Aws::String > &value)
CreateSubscriptionTargetRequest & WithType(const char *value)
CreateSubscriptionTargetRequest & AddAuthorizedPrincipals(const char *value)
CreateSubscriptionTargetRequest & WithApplicableAssetTypes(Aws::Vector< Aws::String > &&value)
CreateSubscriptionTargetRequest & WithDomainIdentifier(const char *value)
CreateSubscriptionTargetRequest & WithClientToken(const char *value)
CreateSubscriptionTargetRequest & WithEnvironmentIdentifier(const Aws::String &value)
CreateSubscriptionTargetRequest & AddApplicableAssetTypes(const char *value)
CreateSubscriptionTargetRequest & AddApplicableAssetTypes(const Aws::String &value)
CreateSubscriptionTargetRequest & AddAuthorizedPrincipals(const Aws::String &value)
CreateSubscriptionTargetRequest & WithApplicableAssetTypes(const Aws::Vector< Aws::String > &value)
CreateSubscriptionTargetRequest & WithEnvironmentIdentifier(Aws::String &&value)
CreateSubscriptionTargetRequest & WithProvider(const char *value)
void SetSubscriptionTargetConfig(Aws::Vector< SubscriptionTargetForm > &&value)
CreateSubscriptionTargetRequest & WithName(const Aws::String &value)
CreateSubscriptionTargetRequest & AddApplicableAssetTypes(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector