AWS SDK for C++

AWS SDK for C++ Version 1.11.715

Loading...
Searching...
No Matches
UpdateFlowEntitlementRequest.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/mediaconnect/MediaConnectRequest.h>
10#include <aws/mediaconnect/MediaConnect_EXPORTS.h>
11#include <aws/mediaconnect/model/EntitlementStatus.h>
12#include <aws/mediaconnect/model/UpdateEncryption.h>
13
14#include <utility>
15
16namespace Aws {
17namespace MediaConnect {
18namespace Model {
19
23 public:
24 AWS_MEDIACONNECT_API UpdateFlowEntitlementRequest() = 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 "UpdateFlowEntitlement"; }
31
32 AWS_MEDIACONNECT_API Aws::String SerializePayload() const override;
33
35
39 inline const Aws::String& GetDescription() const { return m_description; }
40 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
41 template <typename DescriptionT = Aws::String>
42 void SetDescription(DescriptionT&& value) {
43 m_descriptionHasBeenSet = true;
44 m_description = std::forward<DescriptionT>(value);
45 }
46 template <typename DescriptionT = Aws::String>
48 SetDescription(std::forward<DescriptionT>(value));
49 return *this;
50 }
52
54
58 inline const UpdateEncryption& GetEncryption() const { return m_encryption; }
59 inline bool EncryptionHasBeenSet() const { return m_encryptionHasBeenSet; }
60 template <typename EncryptionT = UpdateEncryption>
61 void SetEncryption(EncryptionT&& value) {
62 m_encryptionHasBeenSet = true;
63 m_encryption = std::forward<EncryptionT>(value);
64 }
65 template <typename EncryptionT = UpdateEncryption>
67 SetEncryption(std::forward<EncryptionT>(value));
68 return *this;
69 }
71
73
77 inline const Aws::String& GetEntitlementArn() const { return m_entitlementArn; }
78 inline bool EntitlementArnHasBeenSet() const { return m_entitlementArnHasBeenSet; }
79 template <typename EntitlementArnT = Aws::String>
80 void SetEntitlementArn(EntitlementArnT&& value) {
81 m_entitlementArnHasBeenSet = true;
82 m_entitlementArn = std::forward<EntitlementArnT>(value);
83 }
84 template <typename EntitlementArnT = Aws::String>
86 SetEntitlementArn(std::forward<EntitlementArnT>(value));
87 return *this;
88 }
90
92
98 inline EntitlementStatus GetEntitlementStatus() const { return m_entitlementStatus; }
99 inline bool EntitlementStatusHasBeenSet() const { return m_entitlementStatusHasBeenSet; }
101 m_entitlementStatusHasBeenSet = true;
102 m_entitlementStatus = value;
103 }
106 return *this;
107 }
109
111
115 inline const Aws::String& GetFlowArn() const { return m_flowArn; }
116 inline bool FlowArnHasBeenSet() const { return m_flowArnHasBeenSet; }
117 template <typename FlowArnT = Aws::String>
118 void SetFlowArn(FlowArnT&& value) {
119 m_flowArnHasBeenSet = true;
120 m_flowArn = std::forward<FlowArnT>(value);
121 }
122 template <typename FlowArnT = Aws::String>
124 SetFlowArn(std::forward<FlowArnT>(value));
125 return *this;
126 }
128
130
135 inline const Aws::Vector<Aws::String>& GetSubscribers() const { return m_subscribers; }
136 inline bool SubscribersHasBeenSet() const { return m_subscribersHasBeenSet; }
137 template <typename SubscribersT = Aws::Vector<Aws::String>>
138 void SetSubscribers(SubscribersT&& value) {
139 m_subscribersHasBeenSet = true;
140 m_subscribers = std::forward<SubscribersT>(value);
141 }
142 template <typename SubscribersT = Aws::Vector<Aws::String>>
144 SetSubscribers(std::forward<SubscribersT>(value));
145 return *this;
146 }
147 template <typename SubscribersT = Aws::String>
149 m_subscribersHasBeenSet = true;
150 m_subscribers.emplace_back(std::forward<SubscribersT>(value));
151 return *this;
152 }
154 private:
155 Aws::String m_description;
156
157 UpdateEncryption m_encryption;
158
159 Aws::String m_entitlementArn;
160
162
163 Aws::String m_flowArn;
164
165 Aws::Vector<Aws::String> m_subscribers;
166 bool m_descriptionHasBeenSet = false;
167 bool m_encryptionHasBeenSet = false;
168 bool m_entitlementArnHasBeenSet = false;
169 bool m_entitlementStatusHasBeenSet = false;
170 bool m_flowArnHasBeenSet = false;
171 bool m_subscribersHasBeenSet = false;
172};
173
174} // namespace Model
175} // namespace MediaConnect
176} // namespace Aws
AWS_MEDIACONNECT_API Aws::String SerializePayload() const override
UpdateFlowEntitlementRequest & WithSubscribers(SubscribersT &&value)
UpdateFlowEntitlementRequest & WithEncryption(EncryptionT &&value)
UpdateFlowEntitlementRequest & WithEntitlementStatus(EntitlementStatus value)
UpdateFlowEntitlementRequest & WithFlowArn(FlowArnT &&value)
UpdateFlowEntitlementRequest & AddSubscribers(SubscribersT &&value)
AWS_MEDIACONNECT_API UpdateFlowEntitlementRequest()=default
UpdateFlowEntitlementRequest & WithDescription(DescriptionT &&value)
UpdateFlowEntitlementRequest & WithEntitlementArn(EntitlementArnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector