AWS SDK for C++

AWS SDK for C++ Version 1.11.743

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
40 inline const Aws::String& GetDomainIdentifier() const { return m_domainIdentifier; }
41 inline bool DomainIdentifierHasBeenSet() const { return m_domainIdentifierHasBeenSet; }
42 template <typename DomainIdentifierT = Aws::String>
43 void SetDomainIdentifier(DomainIdentifierT&& value) {
44 m_domainIdentifierHasBeenSet = true;
45 m_domainIdentifier = std::forward<DomainIdentifierT>(value);
46 }
47 template <typename DomainIdentifierT = Aws::String>
49 SetDomainIdentifier(std::forward<DomainIdentifierT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetEnvironmentIdentifier() const { return m_environmentIdentifier; }
59 inline bool EnvironmentIdentifierHasBeenSet() const { return m_environmentIdentifierHasBeenSet; }
60 template <typename EnvironmentIdentifierT = Aws::String>
61 void SetEnvironmentIdentifier(EnvironmentIdentifierT&& value) {
62 m_environmentIdentifierHasBeenSet = true;
63 m_environmentIdentifier = std::forward<EnvironmentIdentifierT>(value);
64 }
65 template <typename EnvironmentIdentifierT = Aws::String>
67 SetEnvironmentIdentifier(std::forward<EnvironmentIdentifierT>(value));
68 return *this;
69 }
71
73
77 inline const Aws::String& GetSubscriptionTargetIdentifier() const { return m_subscriptionTargetIdentifier; }
78 inline bool SubscriptionTargetIdentifierHasBeenSet() const { return m_subscriptionTargetIdentifierHasBeenSet; }
79 template <typename SubscriptionTargetIdentifierT = Aws::String>
80 void SetSubscriptionTargetIdentifier(SubscriptionTargetIdentifierT&& value) {
81 m_subscriptionTargetIdentifierHasBeenSet = true;
82 m_subscriptionTargetIdentifier = std::forward<SubscriptionTargetIdentifierT>(value);
83 }
84 template <typename SubscriptionTargetIdentifierT = Aws::String>
85 CreateSubscriptionGrantRequest& WithSubscriptionTargetIdentifier(SubscriptionTargetIdentifierT&& value) {
86 SetSubscriptionTargetIdentifier(std::forward<SubscriptionTargetIdentifierT>(value));
87 return *this;
88 }
90
92
95 inline const GrantedEntityInput& GetGrantedEntity() const { return m_grantedEntity; }
96 inline bool GrantedEntityHasBeenSet() const { return m_grantedEntityHasBeenSet; }
97 template <typename GrantedEntityT = GrantedEntityInput>
98 void SetGrantedEntity(GrantedEntityT&& value) {
99 m_grantedEntityHasBeenSet = true;
100 m_grantedEntity = std::forward<GrantedEntityT>(value);
101 }
102 template <typename GrantedEntityT = GrantedEntityInput>
104 SetGrantedEntity(std::forward<GrantedEntityT>(value));
105 return *this;
106 }
108
110
113 inline const Aws::Vector<AssetTargetNameMap>& GetAssetTargetNames() const { return m_assetTargetNames; }
114 inline bool AssetTargetNamesHasBeenSet() const { return m_assetTargetNamesHasBeenSet; }
115 template <typename AssetTargetNamesT = Aws::Vector<AssetTargetNameMap>>
116 void SetAssetTargetNames(AssetTargetNamesT&& value) {
117 m_assetTargetNamesHasBeenSet = true;
118 m_assetTargetNames = std::forward<AssetTargetNamesT>(value);
119 }
120 template <typename AssetTargetNamesT = Aws::Vector<AssetTargetNameMap>>
122 SetAssetTargetNames(std::forward<AssetTargetNamesT>(value));
123 return *this;
124 }
125 template <typename AssetTargetNamesT = AssetTargetNameMap>
127 m_assetTargetNamesHasBeenSet = true;
128 m_assetTargetNames.emplace_back(std::forward<AssetTargetNamesT>(value));
129 return *this;
130 }
132
134
138 inline const Aws::String& GetClientToken() const { return m_clientToken; }
139 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
140 template <typename ClientTokenT = Aws::String>
141 void SetClientToken(ClientTokenT&& value) {
142 m_clientTokenHasBeenSet = true;
143 m_clientToken = std::forward<ClientTokenT>(value);
144 }
145 template <typename ClientTokenT = Aws::String>
147 SetClientToken(std::forward<ClientTokenT>(value));
148 return *this;
149 }
151 private:
152 Aws::String m_domainIdentifier;
153
154 Aws::String m_environmentIdentifier;
155
156 Aws::String m_subscriptionTargetIdentifier;
157
158 GrantedEntityInput m_grantedEntity;
159
160 Aws::Vector<AssetTargetNameMap> m_assetTargetNames;
161
163 bool m_domainIdentifierHasBeenSet = false;
164 bool m_environmentIdentifierHasBeenSet = false;
165 bool m_subscriptionTargetIdentifierHasBeenSet = false;
166 bool m_grantedEntityHasBeenSet = false;
167 bool m_assetTargetNamesHasBeenSet = false;
168 bool m_clientTokenHasBeenSet = true;
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