AWS SDK for C++

AWS SDK for C++ Version 1.11.746

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& GetDomainIdentifier() const { return m_domainIdentifier; }
39 inline bool DomainIdentifierHasBeenSet() const { return m_domainIdentifierHasBeenSet; }
40 template <typename DomainIdentifierT = Aws::String>
41 void SetDomainIdentifier(DomainIdentifierT&& value) {
42 m_domainIdentifierHasBeenSet = true;
43 m_domainIdentifier = std::forward<DomainIdentifierT>(value);
44 }
45 template <typename DomainIdentifierT = Aws::String>
47 SetDomainIdentifier(std::forward<DomainIdentifierT>(value));
48 return *this;
49 }
51
53
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& GetAssetIdentifier() const { return m_assetIdentifier; }
77 inline bool AssetIdentifierHasBeenSet() const { return m_assetIdentifierHasBeenSet; }
78 template <typename AssetIdentifierT = Aws::String>
79 void SetAssetIdentifier(AssetIdentifierT&& value) {
80 m_assetIdentifierHasBeenSet = true;
81 m_assetIdentifier = std::forward<AssetIdentifierT>(value);
82 }
83 template <typename AssetIdentifierT = Aws::String>
85 SetAssetIdentifier(std::forward<AssetIdentifierT>(value));
86 return *this;
87 }
89
91
95 inline SubscriptionGrantStatus GetStatus() const { return m_status; }
96 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
98 m_statusHasBeenSet = true;
99 m_status = value;
100 }
102 SetStatus(value);
103 return *this;
104 }
106
108
112 inline const FailureCause& GetFailureCause() const { return m_failureCause; }
113 inline bool FailureCauseHasBeenSet() const { return m_failureCauseHasBeenSet; }
114 template <typename FailureCauseT = FailureCause>
115 void SetFailureCause(FailureCauseT&& value) {
116 m_failureCauseHasBeenSet = true;
117 m_failureCause = std::forward<FailureCauseT>(value);
118 }
119 template <typename FailureCauseT = FailureCause>
121 SetFailureCause(std::forward<FailureCauseT>(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_domainIdentifier;
146
147 Aws::String m_identifier;
148
149 Aws::String m_assetIdentifier;
150
152
153 FailureCause m_failureCause;
154
155 Aws::String m_targetName;
156 bool m_domainIdentifierHasBeenSet = false;
157 bool m_identifierHasBeenSet = false;
158 bool m_assetIdentifierHasBeenSet = false;
159 bool m_statusHasBeenSet = false;
160 bool m_failureCauseHasBeenSet = false;
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