AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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
35 {
36 public:
37 AWS_MEDIACONNECT_API GrantEntitlementRequest();
38 AWS_MEDIACONNECT_API GrantEntitlementRequest(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
59 inline const Aws::String& GetDescription() const{ return m_description; }
60 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
61 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
62 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
63 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
64 inline GrantEntitlementRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
65 inline GrantEntitlementRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
66 inline GrantEntitlementRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
68
70
74 inline const Encryption& GetEncryption() const{ return m_encryption; }
75 inline bool EncryptionHasBeenSet() const { return m_encryptionHasBeenSet; }
76 inline void SetEncryption(const Encryption& value) { m_encryptionHasBeenSet = true; m_encryption = value; }
77 inline void SetEncryption(Encryption&& value) { m_encryptionHasBeenSet = true; m_encryption = std::move(value); }
78 inline GrantEntitlementRequest& WithEncryption(const Encryption& value) { SetEncryption(value); return *this;}
79 inline GrantEntitlementRequest& WithEncryption(Encryption&& value) { SetEncryption(std::move(value)); return *this;}
81
83
88 inline const EntitlementStatus& GetEntitlementStatus() const{ return m_entitlementStatus; }
89 inline bool EntitlementStatusHasBeenSet() const { return m_entitlementStatusHasBeenSet; }
90 inline void SetEntitlementStatus(const EntitlementStatus& value) { m_entitlementStatusHasBeenSet = true; m_entitlementStatus = value; }
91 inline void SetEntitlementStatus(EntitlementStatus&& value) { m_entitlementStatusHasBeenSet = true; m_entitlementStatus = std::move(value); }
93 inline GrantEntitlementRequest& WithEntitlementStatus(EntitlementStatus&& value) { SetEntitlementStatus(std::move(value)); return *this;}
95
97
100 inline const Aws::String& GetName() const{ return m_name; }
101 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
102 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
103 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
104 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
105 inline GrantEntitlementRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
106 inline GrantEntitlementRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
107 inline GrantEntitlementRequest& WithName(const char* value) { SetName(value); return *this;}
109
111
116 inline const Aws::Vector<Aws::String>& GetSubscribers() const{ return m_subscribers; }
117 inline bool SubscribersHasBeenSet() const { return m_subscribersHasBeenSet; }
118 inline void SetSubscribers(const Aws::Vector<Aws::String>& value) { m_subscribersHasBeenSet = true; m_subscribers = value; }
119 inline void SetSubscribers(Aws::Vector<Aws::String>&& value) { m_subscribersHasBeenSet = true; m_subscribers = std::move(value); }
121 inline GrantEntitlementRequest& WithSubscribers(Aws::Vector<Aws::String>&& value) { SetSubscribers(std::move(value)); return *this;}
122 inline GrantEntitlementRequest& AddSubscribers(const Aws::String& value) { m_subscribersHasBeenSet = true; m_subscribers.push_back(value); return *this; }
123 inline GrantEntitlementRequest& AddSubscribers(Aws::String&& value) { m_subscribersHasBeenSet = true; m_subscribers.push_back(std::move(value)); return *this; }
124 inline GrantEntitlementRequest& AddSubscribers(const char* value) { m_subscribersHasBeenSet = true; m_subscribers.push_back(value); return *this; }
126 private:
127
128 int m_dataTransferSubscriberFeePercent;
129 bool m_dataTransferSubscriberFeePercentHasBeenSet = false;
130
131 Aws::String m_description;
132 bool m_descriptionHasBeenSet = false;
133
134 Encryption m_encryption;
135 bool m_encryptionHasBeenSet = false;
136
137 EntitlementStatus m_entitlementStatus;
138 bool m_entitlementStatusHasBeenSet = false;
139
140 Aws::String m_name;
141 bool m_nameHasBeenSet = false;
142
143 Aws::Vector<Aws::String> m_subscribers;
144 bool m_subscribersHasBeenSet = false;
145 };
146
147} // namespace Model
148} // namespace MediaConnect
149} // namespace Aws
GrantEntitlementRequest & WithDataTransferSubscriberFeePercent(int value)
GrantEntitlementRequest & WithName(const char *value)
GrantEntitlementRequest & WithEncryption(const Encryption &value)
void SetEntitlementStatus(const EntitlementStatus &value)
GrantEntitlementRequest & WithName(const Aws::String &value)
void SetSubscribers(const Aws::Vector< Aws::String > &value)
GrantEntitlementRequest & AddSubscribers(Aws::String &&value)
GrantEntitlementRequest & WithDescription(const Aws::String &value)
AWS_MEDIACONNECT_API GrantEntitlementRequest & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetSubscribers() const
GrantEntitlementRequest & AddSubscribers(const char *value)
GrantEntitlementRequest & AddSubscribers(const Aws::String &value)
GrantEntitlementRequest & WithName(Aws::String &&value)
GrantEntitlementRequest & WithEncryption(Encryption &&value)
AWS_MEDIACONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
GrantEntitlementRequest & WithEntitlementStatus(const EntitlementStatus &value)
void SetSubscribers(Aws::Vector< Aws::String > &&value)
GrantEntitlementRequest & WithSubscribers(const Aws::Vector< Aws::String > &value)
AWS_MEDIACONNECT_API GrantEntitlementRequest(Aws::Utils::Json::JsonView jsonValue)
GrantEntitlementRequest & WithDescription(const char *value)
GrantEntitlementRequest & WithEntitlementStatus(EntitlementStatus &&value)
GrantEntitlementRequest & WithSubscribers(Aws::Vector< Aws::String > &&value)
GrantEntitlementRequest & WithDescription(Aws::String &&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