AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
GrantEntitlementRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/mediaconnect/MediaConnect_EXPORTS.h>
11#include <aws/mediaconnect/model/Encryption.h>
12#include <aws/mediaconnect/model/EntitlementStatus.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace MediaConnect {
24namespace Model {
25
33 public:
34 AWS_MEDIACONNECT_API GrantEntitlementRequest() = default;
35 AWS_MEDIACONNECT_API GrantEntitlementRequest(Aws::Utils::Json::JsonView jsonValue);
37 AWS_MEDIACONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
44 inline int GetDataTransferSubscriberFeePercent() const { return m_dataTransferSubscriberFeePercent; }
45 inline bool DataTransferSubscriberFeePercentHasBeenSet() const { return m_dataTransferSubscriberFeePercentHasBeenSet; }
46 inline void SetDataTransferSubscriberFeePercent(int value) {
47 m_dataTransferSubscriberFeePercentHasBeenSet = true;
48 m_dataTransferSubscriberFeePercent = value;
49 }
52 return *this;
53 }
55
57
61 inline const Aws::String& GetDescription() const { return m_description; }
62 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
63 template <typename DescriptionT = Aws::String>
64 void SetDescription(DescriptionT&& value) {
65 m_descriptionHasBeenSet = true;
66 m_description = std::forward<DescriptionT>(value);
67 }
68 template <typename DescriptionT = Aws::String>
70 SetDescription(std::forward<DescriptionT>(value));
71 return *this;
72 }
74
76
80 inline const Encryption& GetEncryption() const { return m_encryption; }
81 inline bool EncryptionHasBeenSet() const { return m_encryptionHasBeenSet; }
82 template <typename EncryptionT = Encryption>
83 void SetEncryption(EncryptionT&& value) {
84 m_encryptionHasBeenSet = true;
85 m_encryption = std::forward<EncryptionT>(value);
86 }
87 template <typename EncryptionT = Encryption>
89 SetEncryption(std::forward<EncryptionT>(value));
90 return *this;
91 }
93
95
100 inline EntitlementStatus GetEntitlementStatus() const { return m_entitlementStatus; }
101 inline bool EntitlementStatusHasBeenSet() const { return m_entitlementStatusHasBeenSet; }
103 m_entitlementStatusHasBeenSet = true;
104 m_entitlementStatus = value;
105 }
108 return *this;
109 }
111
113
117 inline const Aws::String& GetName() const { return m_name; }
118 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
119 template <typename NameT = Aws::String>
120 void SetName(NameT&& value) {
121 m_nameHasBeenSet = true;
122 m_name = std::forward<NameT>(value);
123 }
124 template <typename NameT = Aws::String>
126 SetName(std::forward<NameT>(value));
127 return *this;
128 }
130
132
137 inline const Aws::Vector<Aws::String>& GetSubscribers() const { return m_subscribers; }
138 inline bool SubscribersHasBeenSet() const { return m_subscribersHasBeenSet; }
139 template <typename SubscribersT = Aws::Vector<Aws::String>>
140 void SetSubscribers(SubscribersT&& value) {
141 m_subscribersHasBeenSet = true;
142 m_subscribers = std::forward<SubscribersT>(value);
143 }
144 template <typename SubscribersT = Aws::Vector<Aws::String>>
146 SetSubscribers(std::forward<SubscribersT>(value));
147 return *this;
148 }
149 template <typename SubscribersT = Aws::String>
151 m_subscribersHasBeenSet = true;
152 m_subscribers.emplace_back(std::forward<SubscribersT>(value));
153 return *this;
154 }
156
158
162 inline const Aws::Map<Aws::String, Aws::String>& GetEntitlementTags() const { return m_entitlementTags; }
163 inline bool EntitlementTagsHasBeenSet() const { return m_entitlementTagsHasBeenSet; }
164 template <typename EntitlementTagsT = Aws::Map<Aws::String, Aws::String>>
165 void SetEntitlementTags(EntitlementTagsT&& value) {
166 m_entitlementTagsHasBeenSet = true;
167 m_entitlementTags = std::forward<EntitlementTagsT>(value);
168 }
169 template <typename EntitlementTagsT = Aws::Map<Aws::String, Aws::String>>
170 GrantEntitlementRequest& WithEntitlementTags(EntitlementTagsT&& value) {
171 SetEntitlementTags(std::forward<EntitlementTagsT>(value));
172 return *this;
173 }
174 template <typename EntitlementTagsKeyT = Aws::String, typename EntitlementTagsValueT = Aws::String>
175 GrantEntitlementRequest& AddEntitlementTags(EntitlementTagsKeyT&& key, EntitlementTagsValueT&& value) {
176 m_entitlementTagsHasBeenSet = true;
177 m_entitlementTags.emplace(std::forward<EntitlementTagsKeyT>(key), std::forward<EntitlementTagsValueT>(value));
178 return *this;
179 }
181 private:
182 int m_dataTransferSubscriberFeePercent{0};
183
184 Aws::String m_description;
185
186 Encryption m_encryption;
187
189
190 Aws::String m_name;
191
192 Aws::Vector<Aws::String> m_subscribers;
193
194 Aws::Map<Aws::String, Aws::String> m_entitlementTags;
195 bool m_dataTransferSubscriberFeePercentHasBeenSet = false;
196 bool m_descriptionHasBeenSet = false;
197 bool m_encryptionHasBeenSet = false;
198 bool m_entitlementStatusHasBeenSet = false;
199 bool m_nameHasBeenSet = false;
200 bool m_subscribersHasBeenSet = false;
201 bool m_entitlementTagsHasBeenSet = false;
202};
203
204} // namespace Model
205} // namespace MediaConnect
206} // namespace Aws
GrantEntitlementRequest & WithDataTransferSubscriberFeePercent(int value)
GrantEntitlementRequest & AddSubscribers(SubscribersT &&value)
GrantEntitlementRequest & WithEntitlementTags(EntitlementTagsT &&value)
GrantEntitlementRequest & WithName(NameT &&value)
AWS_MEDIACONNECT_API GrantEntitlementRequest & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetSubscribers() const
GrantEntitlementRequest & WithEntitlementStatus(EntitlementStatus value)
GrantEntitlementRequest & WithDescription(DescriptionT &&value)
AWS_MEDIACONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_MEDIACONNECT_API GrantEntitlementRequest(Aws::Utils::Json::JsonView jsonValue)
AWS_MEDIACONNECT_API GrantEntitlementRequest()=default
GrantEntitlementRequest & WithSubscribers(SubscribersT &&value)
const Aws::Map< Aws::String, Aws::String > & GetEntitlementTags() const
GrantEntitlementRequest & WithEncryption(EncryptionT &&value)
GrantEntitlementRequest & AddEntitlementTags(EntitlementTagsKeyT &&key, EntitlementTagsValueT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue