AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Entitlement.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
35 {
36 public:
37 AWS_MEDIACONNECT_API Entitlement() = default;
38 AWS_MEDIACONNECT_API Entitlement(Aws::Utils::Json::JsonView jsonValue);
39 AWS_MEDIACONNECT_API Entitlement& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_MEDIACONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline int GetDataTransferSubscriberFeePercent() const { return m_dataTransferSubscriberFeePercent; }
49 inline bool DataTransferSubscriberFeePercentHasBeenSet() const { return m_dataTransferSubscriberFeePercentHasBeenSet; }
50 inline void SetDataTransferSubscriberFeePercent(int value) { m_dataTransferSubscriberFeePercentHasBeenSet = true; m_dataTransferSubscriberFeePercent = value; }
53
55
58 inline const Aws::String& GetDescription() const { return m_description; }
59 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
60 template<typename DescriptionT = Aws::String>
61 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
62 template<typename DescriptionT = Aws::String>
63 Entitlement& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
65
67
71 inline const Encryption& GetEncryption() const { return m_encryption; }
72 inline bool EncryptionHasBeenSet() const { return m_encryptionHasBeenSet; }
73 template<typename EncryptionT = Encryption>
74 void SetEncryption(EncryptionT&& value) { m_encryptionHasBeenSet = true; m_encryption = std::forward<EncryptionT>(value); }
75 template<typename EncryptionT = Encryption>
76 Entitlement& WithEncryption(EncryptionT&& value) { SetEncryption(std::forward<EncryptionT>(value)); return *this;}
78
80
83 inline const Aws::String& GetEntitlementArn() const { return m_entitlementArn; }
84 inline bool EntitlementArnHasBeenSet() const { return m_entitlementArnHasBeenSet; }
85 template<typename EntitlementArnT = Aws::String>
86 void SetEntitlementArn(EntitlementArnT&& value) { m_entitlementArnHasBeenSet = true; m_entitlementArn = std::forward<EntitlementArnT>(value); }
87 template<typename EntitlementArnT = Aws::String>
88 Entitlement& WithEntitlementArn(EntitlementArnT&& value) { SetEntitlementArn(std::forward<EntitlementArnT>(value)); return *this;}
90
92
95 inline EntitlementStatus GetEntitlementStatus() const { return m_entitlementStatus; }
96 inline bool EntitlementStatusHasBeenSet() const { return m_entitlementStatusHasBeenSet; }
97 inline void SetEntitlementStatus(EntitlementStatus value) { m_entitlementStatusHasBeenSet = true; m_entitlementStatus = value; }
100
102
105 inline const Aws::String& GetName() const { return m_name; }
106 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
107 template<typename NameT = Aws::String>
108 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
109 template<typename NameT = Aws::String>
110 Entitlement& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
112
114
119 inline const Aws::Vector<Aws::String>& GetSubscribers() const { return m_subscribers; }
120 inline bool SubscribersHasBeenSet() const { return m_subscribersHasBeenSet; }
121 template<typename SubscribersT = Aws::Vector<Aws::String>>
122 void SetSubscribers(SubscribersT&& value) { m_subscribersHasBeenSet = true; m_subscribers = std::forward<SubscribersT>(value); }
123 template<typename SubscribersT = Aws::Vector<Aws::String>>
124 Entitlement& WithSubscribers(SubscribersT&& value) { SetSubscribers(std::forward<SubscribersT>(value)); return *this;}
125 template<typename SubscribersT = Aws::String>
126 Entitlement& AddSubscribers(SubscribersT&& value) { m_subscribersHasBeenSet = true; m_subscribers.emplace_back(std::forward<SubscribersT>(value)); return *this; }
128 private:
129
130 int m_dataTransferSubscriberFeePercent{0};
131 bool m_dataTransferSubscriberFeePercentHasBeenSet = false;
132
133 Aws::String m_description;
134 bool m_descriptionHasBeenSet = false;
135
136 Encryption m_encryption;
137 bool m_encryptionHasBeenSet = false;
138
139 Aws::String m_entitlementArn;
140 bool m_entitlementArnHasBeenSet = false;
141
143 bool m_entitlementStatusHasBeenSet = false;
144
145 Aws::String m_name;
146 bool m_nameHasBeenSet = false;
147
148 Aws::Vector<Aws::String> m_subscribers;
149 bool m_subscribersHasBeenSet = false;
150 };
151
152} // namespace Model
153} // namespace MediaConnect
154} // namespace Aws
const Aws::Vector< Aws::String > & GetSubscribers() const
bool DataTransferSubscriberFeePercentHasBeenSet() const
Definition Entitlement.h:49
Entitlement & AddSubscribers(SubscribersT &&value)
void SetDataTransferSubscriberFeePercent(int value)
Definition Entitlement.h:50
Entitlement & WithName(NameT &&value)
const Encryption & GetEncryption() const
Definition Entitlement.h:71
AWS_MEDIACONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
Entitlement & WithSubscribers(SubscribersT &&value)
void SetDescription(DescriptionT &&value)
Definition Entitlement.h:61
AWS_MEDIACONNECT_API Entitlement()=default
AWS_MEDIACONNECT_API Entitlement & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetSubscribers(SubscribersT &&value)
EntitlementStatus GetEntitlementStatus() const
Definition Entitlement.h:95
Entitlement & WithEncryption(EncryptionT &&value)
Definition Entitlement.h:76
Entitlement & WithDescription(DescriptionT &&value)
Definition Entitlement.h:63
AWS_MEDIACONNECT_API Entitlement(Aws::Utils::Json::JsonView jsonValue)
Entitlement & WithEntitlementStatus(EntitlementStatus value)
Definition Entitlement.h:98
Entitlement & WithDataTransferSubscriberFeePercent(int value)
Definition Entitlement.h:51
Entitlement & WithEntitlementArn(EntitlementArnT &&value)
Definition Entitlement.h:88
void SetEntitlementArn(EntitlementArnT &&value)
Definition Entitlement.h:86
const Aws::String & GetDescription() const
Definition Entitlement.h:58
const Aws::String & GetName() const
void SetEntitlementStatus(EntitlementStatus value)
Definition Entitlement.h:97
void SetEncryption(EncryptionT &&value)
Definition Entitlement.h:74
const Aws::String & GetEntitlementArn() const
Definition Entitlement.h:83
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue