AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
GrantEntitlementRequest.h
1
6#pragma once
7#include <aws/mediaconnect/MediaConnect_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/mediaconnect/model/Encryption.h>
10#include <aws/mediaconnect/model/EntitlementStatus.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace MediaConnect
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_MEDIACONNECT_API GrantEntitlementRequest() = default;
39 AWS_MEDIACONNECT_API GrantEntitlementRequest(Aws::Utils::Json::JsonView jsonValue);
41 AWS_MEDIACONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
49 inline int GetDataTransferSubscriberFeePercent() const { return m_dataTransferSubscriberFeePercent; }
50 inline bool DataTransferSubscriberFeePercentHasBeenSet() const { return m_dataTransferSubscriberFeePercentHasBeenSet; }
51 inline void SetDataTransferSubscriberFeePercent(int value) { m_dataTransferSubscriberFeePercentHasBeenSet = true; m_dataTransferSubscriberFeePercent = value; }
54
56
60 inline const Aws::String& GetDescription() const { return m_description; }
61 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
62 template<typename DescriptionT = Aws::String>
63 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
64 template<typename DescriptionT = Aws::String>
65 GrantEntitlementRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
67
69
73 inline const Encryption& GetEncryption() const { return m_encryption; }
74 inline bool EncryptionHasBeenSet() const { return m_encryptionHasBeenSet; }
75 template<typename EncryptionT = Encryption>
76 void SetEncryption(EncryptionT&& value) { m_encryptionHasBeenSet = true; m_encryption = std::forward<EncryptionT>(value); }
77 template<typename EncryptionT = Encryption>
78 GrantEntitlementRequest& WithEncryption(EncryptionT&& value) { SetEncryption(std::forward<EncryptionT>(value)); return *this;}
80
82
87 inline EntitlementStatus GetEntitlementStatus() const { return m_entitlementStatus; }
88 inline bool EntitlementStatusHasBeenSet() const { return m_entitlementStatusHasBeenSet; }
89 inline void SetEntitlementStatus(EntitlementStatus value) { m_entitlementStatusHasBeenSet = true; m_entitlementStatus = value; }
92
94
98 inline const Aws::String& GetName() const { return m_name; }
99 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
100 template<typename NameT = Aws::String>
101 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
102 template<typename NameT = Aws::String>
103 GrantEntitlementRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
105
107
112 inline const Aws::Vector<Aws::String>& GetSubscribers() const { return m_subscribers; }
113 inline bool SubscribersHasBeenSet() const { return m_subscribersHasBeenSet; }
114 template<typename SubscribersT = Aws::Vector<Aws::String>>
115 void SetSubscribers(SubscribersT&& value) { m_subscribersHasBeenSet = true; m_subscribers = std::forward<SubscribersT>(value); }
116 template<typename SubscribersT = Aws::Vector<Aws::String>>
117 GrantEntitlementRequest& WithSubscribers(SubscribersT&& value) { SetSubscribers(std::forward<SubscribersT>(value)); return *this;}
118 template<typename SubscribersT = Aws::String>
119 GrantEntitlementRequest& AddSubscribers(SubscribersT&& value) { m_subscribersHasBeenSet = true; m_subscribers.emplace_back(std::forward<SubscribersT>(value)); return *this; }
121 private:
122
123 int m_dataTransferSubscriberFeePercent{0};
124 bool m_dataTransferSubscriberFeePercentHasBeenSet = false;
125
126 Aws::String m_description;
127 bool m_descriptionHasBeenSet = false;
128
129 Encryption m_encryption;
130 bool m_encryptionHasBeenSet = false;
131
133 bool m_entitlementStatusHasBeenSet = false;
134
135 Aws::String m_name;
136 bool m_nameHasBeenSet = false;
137
138 Aws::Vector<Aws::String> m_subscribers;
139 bool m_subscribersHasBeenSet = false;
140 };
141
142} // namespace Model
143} // namespace MediaConnect
144} // namespace Aws
GrantEntitlementRequest & WithDataTransferSubscriberFeePercent(int value)
GrantEntitlementRequest & AddSubscribers(SubscribersT &&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)
GrantEntitlementRequest & WithEncryption(EncryptionT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue