AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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
47 inline int GetDataTransferSubscriberFeePercent() const{ return m_dataTransferSubscriberFeePercent; }
48 inline bool DataTransferSubscriberFeePercentHasBeenSet() const { return m_dataTransferSubscriberFeePercentHasBeenSet; }
49 inline void SetDataTransferSubscriberFeePercent(int value) { m_dataTransferSubscriberFeePercentHasBeenSet = true; m_dataTransferSubscriberFeePercent = value; }
52
54
57 inline const Aws::String& GetDescription() const{ return m_description; }
58 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
59 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
60 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
61 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
62 inline Entitlement& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
63 inline Entitlement& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
64 inline Entitlement& WithDescription(const char* value) { SetDescription(value); return *this;}
66
68
72 inline const Encryption& GetEncryption() const{ return m_encryption; }
73 inline bool EncryptionHasBeenSet() const { return m_encryptionHasBeenSet; }
74 inline void SetEncryption(const Encryption& value) { m_encryptionHasBeenSet = true; m_encryption = value; }
75 inline void SetEncryption(Encryption&& value) { m_encryptionHasBeenSet = true; m_encryption = std::move(value); }
76 inline Entitlement& WithEncryption(const Encryption& value) { SetEncryption(value); return *this;}
77 inline Entitlement& WithEncryption(Encryption&& value) { SetEncryption(std::move(value)); return *this;}
79
81
84 inline const Aws::String& GetEntitlementArn() const{ return m_entitlementArn; }
85 inline bool EntitlementArnHasBeenSet() const { return m_entitlementArnHasBeenSet; }
86 inline void SetEntitlementArn(const Aws::String& value) { m_entitlementArnHasBeenSet = true; m_entitlementArn = value; }
87 inline void SetEntitlementArn(Aws::String&& value) { m_entitlementArnHasBeenSet = true; m_entitlementArn = std::move(value); }
88 inline void SetEntitlementArn(const char* value) { m_entitlementArnHasBeenSet = true; m_entitlementArn.assign(value); }
89 inline Entitlement& WithEntitlementArn(const Aws::String& value) { SetEntitlementArn(value); return *this;}
90 inline Entitlement& WithEntitlementArn(Aws::String&& value) { SetEntitlementArn(std::move(value)); return *this;}
91 inline Entitlement& WithEntitlementArn(const char* value) { SetEntitlementArn(value); return *this;}
93
95
98 inline const EntitlementStatus& GetEntitlementStatus() const{ return m_entitlementStatus; }
99 inline bool EntitlementStatusHasBeenSet() const { return m_entitlementStatusHasBeenSet; }
100 inline void SetEntitlementStatus(const EntitlementStatus& value) { m_entitlementStatusHasBeenSet = true; m_entitlementStatus = value; }
101 inline void SetEntitlementStatus(EntitlementStatus&& value) { m_entitlementStatusHasBeenSet = true; m_entitlementStatus = std::move(value); }
102 inline Entitlement& WithEntitlementStatus(const EntitlementStatus& value) { SetEntitlementStatus(value); return *this;}
103 inline Entitlement& WithEntitlementStatus(EntitlementStatus&& value) { SetEntitlementStatus(std::move(value)); return *this;}
105
107
110 inline const Aws::String& GetName() const{ return m_name; }
111 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
112 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
113 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
114 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
115 inline Entitlement& WithName(const Aws::String& value) { SetName(value); return *this;}
116 inline Entitlement& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
117 inline Entitlement& WithName(const char* value) { SetName(value); return *this;}
119
121
126 inline const Aws::Vector<Aws::String>& GetSubscribers() const{ return m_subscribers; }
127 inline bool SubscribersHasBeenSet() const { return m_subscribersHasBeenSet; }
128 inline void SetSubscribers(const Aws::Vector<Aws::String>& value) { m_subscribersHasBeenSet = true; m_subscribers = value; }
129 inline void SetSubscribers(Aws::Vector<Aws::String>&& value) { m_subscribersHasBeenSet = true; m_subscribers = std::move(value); }
130 inline Entitlement& WithSubscribers(const Aws::Vector<Aws::String>& value) { SetSubscribers(value); return *this;}
131 inline Entitlement& WithSubscribers(Aws::Vector<Aws::String>&& value) { SetSubscribers(std::move(value)); return *this;}
132 inline Entitlement& AddSubscribers(const Aws::String& value) { m_subscribersHasBeenSet = true; m_subscribers.push_back(value); return *this; }
133 inline Entitlement& AddSubscribers(Aws::String&& value) { m_subscribersHasBeenSet = true; m_subscribers.push_back(std::move(value)); return *this; }
134 inline Entitlement& AddSubscribers(const char* value) { m_subscribersHasBeenSet = true; m_subscribers.push_back(value); return *this; }
136 private:
137
138 int m_dataTransferSubscriberFeePercent;
139 bool m_dataTransferSubscriberFeePercentHasBeenSet = false;
140
141 Aws::String m_description;
142 bool m_descriptionHasBeenSet = false;
143
144 Encryption m_encryption;
145 bool m_encryptionHasBeenSet = false;
146
147 Aws::String m_entitlementArn;
148 bool m_entitlementArnHasBeenSet = false;
149
150 EntitlementStatus m_entitlementStatus;
151 bool m_entitlementStatusHasBeenSet = false;
152
153 Aws::String m_name;
154 bool m_nameHasBeenSet = false;
155
156 Aws::Vector<Aws::String> m_subscribers;
157 bool m_subscribersHasBeenSet = false;
158 };
159
160} // namespace Model
161} // namespace MediaConnect
162} // namespace Aws
void SetEntitlementArn(const char *value)
Definition Entitlement.h:88
Entitlement & WithSubscribers(Aws::Vector< Aws::String > &&value)
Entitlement & WithSubscribers(const Aws::Vector< Aws::String > &value)
const Aws::Vector< Aws::String > & GetSubscribers() const
bool DataTransferSubscriberFeePercentHasBeenSet() const
Definition Entitlement.h:48
Entitlement & WithDescription(const Aws::String &value)
Definition Entitlement.h:62
Entitlement & WithName(const char *value)
void SetSubscribers(const Aws::Vector< Aws::String > &value)
void SetSubscribers(Aws::Vector< Aws::String > &&value)
void SetDescription(Aws::String &&value)
Definition Entitlement.h:60
void SetEntitlementArn(Aws::String &&value)
Definition Entitlement.h:87
Entitlement & WithEntitlementArn(Aws::String &&value)
Definition Entitlement.h:90
void SetDataTransferSubscriberFeePercent(int value)
Definition Entitlement.h:49
const Encryption & GetEncryption() const
Definition Entitlement.h:72
AWS_MEDIACONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
const EntitlementStatus & GetEntitlementStatus() const
Definition Entitlement.h:98
AWS_MEDIACONNECT_API Entitlement & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetName(const char *value)
void SetDescription(const char *value)
Definition Entitlement.h:61
Entitlement & WithEncryption(const Encryption &value)
Definition Entitlement.h:76
Entitlement & WithEncryption(Encryption &&value)
Definition Entitlement.h:77
AWS_MEDIACONNECT_API Entitlement(Aws::Utils::Json::JsonView jsonValue)
void SetName(Aws::String &&value)
void SetEncryption(const Encryption &value)
Definition Entitlement.h:74
Entitlement & WithEntitlementStatus(EntitlementStatus &&value)
void SetEntitlementArn(const Aws::String &value)
Definition Entitlement.h:86
void SetEncryption(Encryption &&value)
Definition Entitlement.h:75
Entitlement & WithDataTransferSubscriberFeePercent(int value)
Definition Entitlement.h:50
void SetName(const Aws::String &value)
Entitlement & AddSubscribers(const Aws::String &value)
Entitlement & AddSubscribers(Aws::String &&value)
Entitlement & WithDescription(Aws::String &&value)
Definition Entitlement.h:63
void SetEntitlementStatus(EntitlementStatus &&value)
const Aws::String & GetDescription() const
Definition Entitlement.h:57
Entitlement & WithEntitlementStatus(const EntitlementStatus &value)
void SetDescription(const Aws::String &value)
Definition Entitlement.h:59
Entitlement & WithName(const Aws::String &value)
Entitlement & WithName(Aws::String &&value)
const Aws::String & GetName() const
void SetEntitlementStatus(const EntitlementStatus &value)
Entitlement & AddSubscribers(const char *value)
AWS_MEDIACONNECT_API Entitlement()
Entitlement & WithEntitlementArn(const char *value)
Definition Entitlement.h:91
Entitlement & WithDescription(const char *value)
Definition Entitlement.h:64
Entitlement & WithEntitlementArn(const Aws::String &value)
Definition Entitlement.h:89
const Aws::String & GetEntitlementArn() const
Definition Entitlement.h:84
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue