AWS SDK for C++

AWS SDK for C++ Version 1.11.695

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
38 inline const Aws::Vector<AssetPermission>& GetAssetPermissions() const { return m_assetPermissions; }
39 inline bool AssetPermissionsHasBeenSet() const { return m_assetPermissionsHasBeenSet; }
40 template <typename AssetPermissionsT = Aws::Vector<AssetPermission>>
41 void SetAssetPermissions(AssetPermissionsT&& value) {
42 m_assetPermissionsHasBeenSet = true;
43 m_assetPermissions = std::forward<AssetPermissionsT>(value);
44 }
45 template <typename AssetPermissionsT = Aws::Vector<AssetPermission>>
47 SetAssetPermissions(std::forward<AssetPermissionsT>(value));
48 return *this;
49 }
50 template <typename AssetPermissionsT = AssetPermission>
52 m_assetPermissionsHasBeenSet = true;
53 m_assetPermissions.emplace_back(std::forward<AssetPermissionsT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::Vector<AcceptedAssetScope>& GetAssetScopes() const { return m_assetScopes; }
63 inline bool AssetScopesHasBeenSet() const { return m_assetScopesHasBeenSet; }
64 template <typename AssetScopesT = Aws::Vector<AcceptedAssetScope>>
65 void SetAssetScopes(AssetScopesT&& value) {
66 m_assetScopesHasBeenSet = true;
67 m_assetScopes = std::forward<AssetScopesT>(value);
68 }
69 template <typename AssetScopesT = Aws::Vector<AcceptedAssetScope>>
71 SetAssetScopes(std::forward<AssetScopesT>(value));
72 return *this;
73 }
74 template <typename AssetScopesT = AcceptedAssetScope>
76 m_assetScopesHasBeenSet = true;
77 m_assetScopes.emplace_back(std::forward<AssetScopesT>(value));
78 return *this;
79 }
81
83
87 inline const Aws::String& GetDecisionComment() const { return m_decisionComment; }
88 inline bool DecisionCommentHasBeenSet() const { return m_decisionCommentHasBeenSet; }
89 template <typename DecisionCommentT = Aws::String>
90 void SetDecisionComment(DecisionCommentT&& value) {
91 m_decisionCommentHasBeenSet = true;
92 m_decisionComment = std::forward<DecisionCommentT>(value);
93 }
94 template <typename DecisionCommentT = Aws::String>
96 SetDecisionComment(std::forward<DecisionCommentT>(value));
97 return *this;
98 }
100
102
106 inline const Aws::String& GetDomainIdentifier() const { return m_domainIdentifier; }
107 inline bool DomainIdentifierHasBeenSet() const { return m_domainIdentifierHasBeenSet; }
108 template <typename DomainIdentifierT = Aws::String>
109 void SetDomainIdentifier(DomainIdentifierT&& value) {
110 m_domainIdentifierHasBeenSet = true;
111 m_domainIdentifier = std::forward<DomainIdentifierT>(value);
112 }
113 template <typename DomainIdentifierT = Aws::String>
115 SetDomainIdentifier(std::forward<DomainIdentifierT>(value));
116 return *this;
117 }
119
121
124 inline const Aws::String& GetIdentifier() const { return m_identifier; }
125 inline bool IdentifierHasBeenSet() const { return m_identifierHasBeenSet; }
126 template <typename IdentifierT = Aws::String>
127 void SetIdentifier(IdentifierT&& value) {
128 m_identifierHasBeenSet = true;
129 m_identifier = std::forward<IdentifierT>(value);
130 }
131 template <typename IdentifierT = Aws::String>
133 SetIdentifier(std::forward<IdentifierT>(value));
134 return *this;
135 }
137 private:
138 Aws::Vector<AssetPermission> m_assetPermissions;
139 bool m_assetPermissionsHasBeenSet = false;
140
142 bool m_assetScopesHasBeenSet = false;
143
144 Aws::String m_decisionComment;
145 bool m_decisionCommentHasBeenSet = false;
146
147 Aws::String m_domainIdentifier;
148 bool m_domainIdentifierHasBeenSet = false;
149
150 Aws::String m_identifier;
151 bool m_identifierHasBeenSet = 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