AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
AcceptSubscriptionRequestRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/datazone/DataZoneRequest.h>
10#include <aws/datazone/DataZone_EXPORTS.h>
11#include <aws/datazone/model/AcceptedAssetScope.h>
12#include <aws/datazone/model/AssetPermission.h>
13
14#include <utility>
15
16namespace Aws {
17namespace DataZone {
18namespace Model {
19
23 public:
24 AWS_DATAZONE_API AcceptSubscriptionRequestRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "AcceptSubscriptionRequest"; }
31
32 AWS_DATAZONE_API Aws::String SerializePayload() const override;
33
35
39 inline const Aws::String& GetDomainIdentifier() const { return m_domainIdentifier; }
40 inline bool DomainIdentifierHasBeenSet() const { return m_domainIdentifierHasBeenSet; }
41 template <typename DomainIdentifierT = Aws::String>
42 void SetDomainIdentifier(DomainIdentifierT&& value) {
43 m_domainIdentifierHasBeenSet = true;
44 m_domainIdentifier = std::forward<DomainIdentifierT>(value);
45 }
46 template <typename DomainIdentifierT = Aws::String>
48 SetDomainIdentifier(std::forward<DomainIdentifierT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetIdentifier() const { return m_identifier; }
58 inline bool IdentifierHasBeenSet() const { return m_identifierHasBeenSet; }
59 template <typename IdentifierT = Aws::String>
60 void SetIdentifier(IdentifierT&& value) {
61 m_identifierHasBeenSet = true;
62 m_identifier = std::forward<IdentifierT>(value);
63 }
64 template <typename IdentifierT = Aws::String>
66 SetIdentifier(std::forward<IdentifierT>(value));
67 return *this;
68 }
70
72
76 inline const Aws::String& GetDecisionComment() const { return m_decisionComment; }
77 inline bool DecisionCommentHasBeenSet() const { return m_decisionCommentHasBeenSet; }
78 template <typename DecisionCommentT = Aws::String>
79 void SetDecisionComment(DecisionCommentT&& value) {
80 m_decisionCommentHasBeenSet = true;
81 m_decisionComment = std::forward<DecisionCommentT>(value);
82 }
83 template <typename DecisionCommentT = Aws::String>
85 SetDecisionComment(std::forward<DecisionCommentT>(value));
86 return *this;
87 }
89
91
94 inline const Aws::Vector<AcceptedAssetScope>& GetAssetScopes() const { return m_assetScopes; }
95 inline bool AssetScopesHasBeenSet() const { return m_assetScopesHasBeenSet; }
96 template <typename AssetScopesT = Aws::Vector<AcceptedAssetScope>>
97 void SetAssetScopes(AssetScopesT&& value) {
98 m_assetScopesHasBeenSet = true;
99 m_assetScopes = std::forward<AssetScopesT>(value);
100 }
101 template <typename AssetScopesT = Aws::Vector<AcceptedAssetScope>>
103 SetAssetScopes(std::forward<AssetScopesT>(value));
104 return *this;
105 }
106 template <typename AssetScopesT = AcceptedAssetScope>
108 m_assetScopesHasBeenSet = true;
109 m_assetScopes.emplace_back(std::forward<AssetScopesT>(value));
110 return *this;
111 }
113
115
118 inline const Aws::Vector<AssetPermission>& GetAssetPermissions() const { return m_assetPermissions; }
119 inline bool AssetPermissionsHasBeenSet() const { return m_assetPermissionsHasBeenSet; }
120 template <typename AssetPermissionsT = Aws::Vector<AssetPermission>>
121 void SetAssetPermissions(AssetPermissionsT&& value) {
122 m_assetPermissionsHasBeenSet = true;
123 m_assetPermissions = std::forward<AssetPermissionsT>(value);
124 }
125 template <typename AssetPermissionsT = Aws::Vector<AssetPermission>>
127 SetAssetPermissions(std::forward<AssetPermissionsT>(value));
128 return *this;
129 }
130 template <typename AssetPermissionsT = AssetPermission>
132 m_assetPermissionsHasBeenSet = true;
133 m_assetPermissions.emplace_back(std::forward<AssetPermissionsT>(value));
134 return *this;
135 }
137 private:
138 Aws::String m_domainIdentifier;
139
140 Aws::String m_identifier;
141
142 Aws::String m_decisionComment;
143
145
146 Aws::Vector<AssetPermission> m_assetPermissions;
147 bool m_domainIdentifierHasBeenSet = false;
148 bool m_identifierHasBeenSet = false;
149 bool m_decisionCommentHasBeenSet = false;
150 bool m_assetScopesHasBeenSet = false;
151 bool m_assetPermissionsHasBeenSet = false;
152};
153
154} // namespace Model
155} // namespace DataZone
156} // namespace Aws
AcceptSubscriptionRequestRequest & WithDecisionComment(DecisionCommentT &&value)
AcceptSubscriptionRequestRequest & WithAssetScopes(AssetScopesT &&value)
AcceptSubscriptionRequestRequest & AddAssetPermissions(AssetPermissionsT &&value)
AWS_DATAZONE_API AcceptSubscriptionRequestRequest()=default
AcceptSubscriptionRequestRequest & WithDomainIdentifier(DomainIdentifierT &&value)
const Aws::Vector< AssetPermission > & GetAssetPermissions() const
AcceptSubscriptionRequestRequest & WithIdentifier(IdentifierT &&value)
AWS_DATAZONE_API Aws::String SerializePayload() const override
const Aws::Vector< AcceptedAssetScope > & GetAssetScopes() const
AcceptSubscriptionRequestRequest & WithAssetPermissions(AssetPermissionsT &&value)
AcceptSubscriptionRequestRequest & AddAssetScopes(AssetScopesT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector