AWS SDK for C++

AWS SDK for C++ Version 1.11.695

Loading...
Searching...
No Matches
UpdateSubscriptionGrantStatusRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/datazone/DataZoneRequest.h>
9#include <aws/datazone/DataZone_EXPORTS.h>
10#include <aws/datazone/model/FailureCause.h>
11#include <aws/datazone/model/SubscriptionGrantStatus.h>
12
13#include <utility>
14
15namespace Aws {
16namespace DataZone {
17namespace Model {
18
22 public:
23 AWS_DATAZONE_API UpdateSubscriptionGrantStatusRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "UpdateSubscriptionGrantStatus"; }
30
31 AWS_DATAZONE_API Aws::String SerializePayload() const override;
32
34
38 inline const Aws::String& GetAssetIdentifier() const { return m_assetIdentifier; }
39 inline bool AssetIdentifierHasBeenSet() const { return m_assetIdentifierHasBeenSet; }
40 template <typename AssetIdentifierT = Aws::String>
41 void SetAssetIdentifier(AssetIdentifierT&& value) {
42 m_assetIdentifierHasBeenSet = true;
43 m_assetIdentifier = std::forward<AssetIdentifierT>(value);
44 }
45 template <typename AssetIdentifierT = Aws::String>
47 SetAssetIdentifier(std::forward<AssetIdentifierT>(value));
48 return *this;
49 }
51
53
57 inline const Aws::String& GetDomainIdentifier() const { return m_domainIdentifier; }
58 inline bool DomainIdentifierHasBeenSet() const { return m_domainIdentifierHasBeenSet; }
59 template <typename DomainIdentifierT = Aws::String>
60 void SetDomainIdentifier(DomainIdentifierT&& value) {
61 m_domainIdentifierHasBeenSet = true;
62 m_domainIdentifier = std::forward<DomainIdentifierT>(value);
63 }
64 template <typename DomainIdentifierT = Aws::String>
66 SetDomainIdentifier(std::forward<DomainIdentifierT>(value));
67 return *this;
68 }
70
72
76 inline const FailureCause& GetFailureCause() const { return m_failureCause; }
77 inline bool FailureCauseHasBeenSet() const { return m_failureCauseHasBeenSet; }
78 template <typename FailureCauseT = FailureCause>
79 void SetFailureCause(FailureCauseT&& value) {
80 m_failureCauseHasBeenSet = true;
81 m_failureCause = std::forward<FailureCauseT>(value);
82 }
83 template <typename FailureCauseT = FailureCause>
85 SetFailureCause(std::forward<FailureCauseT>(value));
86 return *this;
87 }
89
91
95 inline const Aws::String& GetIdentifier() const { return m_identifier; }
96 inline bool IdentifierHasBeenSet() const { return m_identifierHasBeenSet; }
97 template <typename IdentifierT = Aws::String>
98 void SetIdentifier(IdentifierT&& value) {
99 m_identifierHasBeenSet = true;
100 m_identifier = std::forward<IdentifierT>(value);
101 }
102 template <typename IdentifierT = Aws::String>
104 SetIdentifier(std::forward<IdentifierT>(value));
105 return *this;
106 }
108
110
114 inline SubscriptionGrantStatus GetStatus() const { return m_status; }
115 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
117 m_statusHasBeenSet = true;
118 m_status = value;
119 }
121 SetStatus(value);
122 return *this;
123 }
125
127
131 inline const Aws::String& GetTargetName() const { return m_targetName; }
132 inline bool TargetNameHasBeenSet() const { return m_targetNameHasBeenSet; }
133 template <typename TargetNameT = Aws::String>
134 void SetTargetName(TargetNameT&& value) {
135 m_targetNameHasBeenSet = true;
136 m_targetName = std::forward<TargetNameT>(value);
137 }
138 template <typename TargetNameT = Aws::String>
140 SetTargetName(std::forward<TargetNameT>(value));
141 return *this;
142 }
144 private:
145 Aws::String m_assetIdentifier;
146 bool m_assetIdentifierHasBeenSet = false;
147
148 Aws::String m_domainIdentifier;
149 bool m_domainIdentifierHasBeenSet = false;
150
151 FailureCause m_failureCause;
152 bool m_failureCauseHasBeenSet = false;
153
154 Aws::String m_identifier;
155 bool m_identifierHasBeenSet = false;
156
158 bool m_statusHasBeenSet = false;
159
160 Aws::String m_targetName;
161 bool m_targetNameHasBeenSet = false;
162};
163
164} // namespace Model
165} // namespace DataZone
166} // namespace Aws
AWS_DATAZONE_API Aws::String SerializePayload() const override
UpdateSubscriptionGrantStatusRequest & WithDomainIdentifier(DomainIdentifierT &&value)
UpdateSubscriptionGrantStatusRequest & WithAssetIdentifier(AssetIdentifierT &&value)
UpdateSubscriptionGrantStatusRequest & WithFailureCause(FailureCauseT &&value)
UpdateSubscriptionGrantStatusRequest & WithStatus(SubscriptionGrantStatus value)
UpdateSubscriptionGrantStatusRequest & WithIdentifier(IdentifierT &&value)
UpdateSubscriptionGrantStatusRequest & WithTargetName(TargetNameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String