AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateSubscriptionGrantRequest.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/GrantedEntityInput.h>
12#include <aws/datazone/model/AssetTargetNameMap.h>
13#include <utility>
14#include <aws/core/utils/UUID.h>
15
16namespace Aws
17{
18namespace DataZone
19{
20namespace Model
21{
22
26 {
27 public:
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateSubscriptionGrant"; }
35
36 AWS_DATAZONE_API Aws::String SerializePayload() const override;
37
38
40
43 inline const Aws::Vector<AssetTargetNameMap>& GetAssetTargetNames() const{ return m_assetTargetNames; }
44 inline bool AssetTargetNamesHasBeenSet() const { return m_assetTargetNamesHasBeenSet; }
45 inline void SetAssetTargetNames(const Aws::Vector<AssetTargetNameMap>& value) { m_assetTargetNamesHasBeenSet = true; m_assetTargetNames = value; }
46 inline void SetAssetTargetNames(Aws::Vector<AssetTargetNameMap>&& value) { m_assetTargetNamesHasBeenSet = true; m_assetTargetNames = std::move(value); }
49 inline CreateSubscriptionGrantRequest& AddAssetTargetNames(const AssetTargetNameMap& value) { m_assetTargetNamesHasBeenSet = true; m_assetTargetNames.push_back(value); return *this; }
50 inline CreateSubscriptionGrantRequest& AddAssetTargetNames(AssetTargetNameMap&& value) { m_assetTargetNamesHasBeenSet = true; m_assetTargetNames.push_back(std::move(value)); return *this; }
52
54
58 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
59 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
60 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
61 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
62 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
63 inline CreateSubscriptionGrantRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
64 inline CreateSubscriptionGrantRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
65 inline CreateSubscriptionGrantRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
67
69
73 inline const Aws::String& GetDomainIdentifier() const{ return m_domainIdentifier; }
74 inline bool DomainIdentifierHasBeenSet() const { return m_domainIdentifierHasBeenSet; }
75 inline void SetDomainIdentifier(const Aws::String& value) { m_domainIdentifierHasBeenSet = true; m_domainIdentifier = value; }
76 inline void SetDomainIdentifier(Aws::String&& value) { m_domainIdentifierHasBeenSet = true; m_domainIdentifier = std::move(value); }
77 inline void SetDomainIdentifier(const char* value) { m_domainIdentifierHasBeenSet = true; m_domainIdentifier.assign(value); }
79 inline CreateSubscriptionGrantRequest& WithDomainIdentifier(Aws::String&& value) { SetDomainIdentifier(std::move(value)); return *this;}
80 inline CreateSubscriptionGrantRequest& WithDomainIdentifier(const char* value) { SetDomainIdentifier(value); return *this;}
82
84
87 inline const Aws::String& GetEnvironmentIdentifier() const{ return m_environmentIdentifier; }
88 inline bool EnvironmentIdentifierHasBeenSet() const { return m_environmentIdentifierHasBeenSet; }
89 inline void SetEnvironmentIdentifier(const Aws::String& value) { m_environmentIdentifierHasBeenSet = true; m_environmentIdentifier = value; }
90 inline void SetEnvironmentIdentifier(Aws::String&& value) { m_environmentIdentifierHasBeenSet = true; m_environmentIdentifier = std::move(value); }
91 inline void SetEnvironmentIdentifier(const char* value) { m_environmentIdentifierHasBeenSet = true; m_environmentIdentifier.assign(value); }
94 inline CreateSubscriptionGrantRequest& WithEnvironmentIdentifier(const char* value) { SetEnvironmentIdentifier(value); return *this;}
96
98
101 inline const GrantedEntityInput& GetGrantedEntity() const{ return m_grantedEntity; }
102 inline bool GrantedEntityHasBeenSet() const { return m_grantedEntityHasBeenSet; }
103 inline void SetGrantedEntity(const GrantedEntityInput& value) { m_grantedEntityHasBeenSet = true; m_grantedEntity = value; }
104 inline void SetGrantedEntity(GrantedEntityInput&& value) { m_grantedEntityHasBeenSet = true; m_grantedEntity = std::move(value); }
106 inline CreateSubscriptionGrantRequest& WithGrantedEntity(GrantedEntityInput&& value) { SetGrantedEntity(std::move(value)); return *this;}
108
110
114 inline const Aws::String& GetSubscriptionTargetIdentifier() const{ return m_subscriptionTargetIdentifier; }
115 inline bool SubscriptionTargetIdentifierHasBeenSet() const { return m_subscriptionTargetIdentifierHasBeenSet; }
116 inline void SetSubscriptionTargetIdentifier(const Aws::String& value) { m_subscriptionTargetIdentifierHasBeenSet = true; m_subscriptionTargetIdentifier = value; }
117 inline void SetSubscriptionTargetIdentifier(Aws::String&& value) { m_subscriptionTargetIdentifierHasBeenSet = true; m_subscriptionTargetIdentifier = std::move(value); }
118 inline void SetSubscriptionTargetIdentifier(const char* value) { m_subscriptionTargetIdentifierHasBeenSet = true; m_subscriptionTargetIdentifier.assign(value); }
123 private:
124
125 Aws::Vector<AssetTargetNameMap> m_assetTargetNames;
126 bool m_assetTargetNamesHasBeenSet = false;
127
128 Aws::String m_clientToken;
129 bool m_clientTokenHasBeenSet = false;
130
131 Aws::String m_domainIdentifier;
132 bool m_domainIdentifierHasBeenSet = false;
133
134 Aws::String m_environmentIdentifier;
135 bool m_environmentIdentifierHasBeenSet = false;
136
137 GrantedEntityInput m_grantedEntity;
138 bool m_grantedEntityHasBeenSet = false;
139
140 Aws::String m_subscriptionTargetIdentifier;
141 bool m_subscriptionTargetIdentifierHasBeenSet = false;
142 };
143
144} // namespace Model
145} // namespace DataZone
146} // namespace Aws
void SetAssetTargetNames(Aws::Vector< AssetTargetNameMap > &&value)
CreateSubscriptionGrantRequest & WithEnvironmentIdentifier(const Aws::String &value)
CreateSubscriptionGrantRequest & WithSubscriptionTargetIdentifier(Aws::String &&value)
AWS_DATAZONE_API Aws::String SerializePayload() const override
CreateSubscriptionGrantRequest & WithGrantedEntity(const GrantedEntityInput &value)
CreateSubscriptionGrantRequest & WithAssetTargetNames(const Aws::Vector< AssetTargetNameMap > &value)
CreateSubscriptionGrantRequest & WithDomainIdentifier(Aws::String &&value)
CreateSubscriptionGrantRequest & WithEnvironmentIdentifier(const char *value)
CreateSubscriptionGrantRequest & WithSubscriptionTargetIdentifier(const char *value)
CreateSubscriptionGrantRequest & AddAssetTargetNames(const AssetTargetNameMap &value)
void SetAssetTargetNames(const Aws::Vector< AssetTargetNameMap > &value)
CreateSubscriptionGrantRequest & WithGrantedEntity(GrantedEntityInput &&value)
CreateSubscriptionGrantRequest & WithClientToken(const Aws::String &value)
CreateSubscriptionGrantRequest & AddAssetTargetNames(AssetTargetNameMap &&value)
const Aws::Vector< AssetTargetNameMap > & GetAssetTargetNames() const
CreateSubscriptionGrantRequest & WithClientToken(const char *value)
CreateSubscriptionGrantRequest & WithEnvironmentIdentifier(Aws::String &&value)
CreateSubscriptionGrantRequest & WithDomainIdentifier(const Aws::String &value)
CreateSubscriptionGrantRequest & WithSubscriptionTargetIdentifier(const Aws::String &value)
CreateSubscriptionGrantRequest & WithAssetTargetNames(Aws::Vector< AssetTargetNameMap > &&value)
CreateSubscriptionGrantRequest & WithDomainIdentifier(const char *value)
CreateSubscriptionGrantRequest & WithClientToken(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector