AWS SDK for C++

AWS SDK for C++ Version 1.11.695

Loading...
Searching...
No Matches
CreateSubscriptionGrantRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/datazone/DataZoneRequest.h>
11#include <aws/datazone/DataZone_EXPORTS.h>
12#include <aws/datazone/model/AssetTargetNameMap.h>
13#include <aws/datazone/model/GrantedEntityInput.h>
14
15#include <utility>
16
17namespace Aws {
18namespace DataZone {
19namespace Model {
20
24 public:
25 AWS_DATAZONE_API CreateSubscriptionGrantRequest() = default;
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 "CreateSubscriptionGrant"; }
32
33 AWS_DATAZONE_API Aws::String SerializePayload() const override;
34
36
39 inline const Aws::Vector<AssetTargetNameMap>& GetAssetTargetNames() const { return m_assetTargetNames; }
40 inline bool AssetTargetNamesHasBeenSet() const { return m_assetTargetNamesHasBeenSet; }
41 template <typename AssetTargetNamesT = Aws::Vector<AssetTargetNameMap>>
42 void SetAssetTargetNames(AssetTargetNamesT&& value) {
43 m_assetTargetNamesHasBeenSet = true;
44 m_assetTargetNames = std::forward<AssetTargetNamesT>(value);
45 }
46 template <typename AssetTargetNamesT = Aws::Vector<AssetTargetNameMap>>
48 SetAssetTargetNames(std::forward<AssetTargetNamesT>(value));
49 return *this;
50 }
51 template <typename AssetTargetNamesT = AssetTargetNameMap>
53 m_assetTargetNamesHasBeenSet = true;
54 m_assetTargetNames.emplace_back(std::forward<AssetTargetNamesT>(value));
55 return *this;
56 }
58
60
64 inline const Aws::String& GetClientToken() const { return m_clientToken; }
65 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
66 template <typename ClientTokenT = Aws::String>
67 void SetClientToken(ClientTokenT&& value) {
68 m_clientTokenHasBeenSet = true;
69 m_clientToken = std::forward<ClientTokenT>(value);
70 }
71 template <typename ClientTokenT = Aws::String>
73 SetClientToken(std::forward<ClientTokenT>(value));
74 return *this;
75 }
77
79
83 inline const Aws::String& GetDomainIdentifier() const { return m_domainIdentifier; }
84 inline bool DomainIdentifierHasBeenSet() const { return m_domainIdentifierHasBeenSet; }
85 template <typename DomainIdentifierT = Aws::String>
86 void SetDomainIdentifier(DomainIdentifierT&& value) {
87 m_domainIdentifierHasBeenSet = true;
88 m_domainIdentifier = std::forward<DomainIdentifierT>(value);
89 }
90 template <typename DomainIdentifierT = Aws::String>
92 SetDomainIdentifier(std::forward<DomainIdentifierT>(value));
93 return *this;
94 }
96
98
101 inline const Aws::String& GetEnvironmentIdentifier() const { return m_environmentIdentifier; }
102 inline bool EnvironmentIdentifierHasBeenSet() const { return m_environmentIdentifierHasBeenSet; }
103 template <typename EnvironmentIdentifierT = Aws::String>
104 void SetEnvironmentIdentifier(EnvironmentIdentifierT&& value) {
105 m_environmentIdentifierHasBeenSet = true;
106 m_environmentIdentifier = std::forward<EnvironmentIdentifierT>(value);
107 }
108 template <typename EnvironmentIdentifierT = Aws::String>
110 SetEnvironmentIdentifier(std::forward<EnvironmentIdentifierT>(value));
111 return *this;
112 }
114
116
119 inline const GrantedEntityInput& GetGrantedEntity() const { return m_grantedEntity; }
120 inline bool GrantedEntityHasBeenSet() const { return m_grantedEntityHasBeenSet; }
121 template <typename GrantedEntityT = GrantedEntityInput>
122 void SetGrantedEntity(GrantedEntityT&& value) {
123 m_grantedEntityHasBeenSet = true;
124 m_grantedEntity = std::forward<GrantedEntityT>(value);
125 }
126 template <typename GrantedEntityT = GrantedEntityInput>
128 SetGrantedEntity(std::forward<GrantedEntityT>(value));
129 return *this;
130 }
132
134
138 inline const Aws::String& GetSubscriptionTargetIdentifier() const { return m_subscriptionTargetIdentifier; }
139 inline bool SubscriptionTargetIdentifierHasBeenSet() const { return m_subscriptionTargetIdentifierHasBeenSet; }
140 template <typename SubscriptionTargetIdentifierT = Aws::String>
141 void SetSubscriptionTargetIdentifier(SubscriptionTargetIdentifierT&& value) {
142 m_subscriptionTargetIdentifierHasBeenSet = true;
143 m_subscriptionTargetIdentifier = std::forward<SubscriptionTargetIdentifierT>(value);
144 }
145 template <typename SubscriptionTargetIdentifierT = Aws::String>
146 CreateSubscriptionGrantRequest& WithSubscriptionTargetIdentifier(SubscriptionTargetIdentifierT&& value) {
147 SetSubscriptionTargetIdentifier(std::forward<SubscriptionTargetIdentifierT>(value));
148 return *this;
149 }
151 private:
152 Aws::Vector<AssetTargetNameMap> m_assetTargetNames;
153 bool m_assetTargetNamesHasBeenSet = false;
154
156 bool m_clientTokenHasBeenSet = true;
157
158 Aws::String m_domainIdentifier;
159 bool m_domainIdentifierHasBeenSet = false;
160
161 Aws::String m_environmentIdentifier;
162 bool m_environmentIdentifierHasBeenSet = false;
163
164 GrantedEntityInput m_grantedEntity;
165 bool m_grantedEntityHasBeenSet = false;
166
167 Aws::String m_subscriptionTargetIdentifier;
168 bool m_subscriptionTargetIdentifierHasBeenSet = false;
169};
170
171} // namespace Model
172} // namespace DataZone
173} // namespace Aws
CreateSubscriptionGrantRequest & WithDomainIdentifier(DomainIdentifierT &&value)
AWS_DATAZONE_API Aws::String SerializePayload() const override
CreateSubscriptionGrantRequest & WithSubscriptionTargetIdentifier(SubscriptionTargetIdentifierT &&value)
CreateSubscriptionGrantRequest & WithEnvironmentIdentifier(EnvironmentIdentifierT &&value)
AWS_DATAZONE_API CreateSubscriptionGrantRequest()=default
void SetSubscriptionTargetIdentifier(SubscriptionTargetIdentifierT &&value)
const Aws::Vector< AssetTargetNameMap > & GetAssetTargetNames() const
CreateSubscriptionGrantRequest & WithAssetTargetNames(AssetTargetNamesT &&value)
CreateSubscriptionGrantRequest & WithGrantedEntity(GrantedEntityT &&value)
CreateSubscriptionGrantRequest & WithClientToken(ClientTokenT &&value)
CreateSubscriptionGrantRequest & AddAssetTargetNames(AssetTargetNamesT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector