AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
PlaybackRestrictionPolicy.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/ivs/IVS_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace IVS {
22namespace Model {
23
31 public:
32 AWS_IVS_API PlaybackRestrictionPolicy() = default;
36
38
44 inline const Aws::Vector<Aws::String>& GetAllowedCountries() const { return m_allowedCountries; }
45 inline bool AllowedCountriesHasBeenSet() const { return m_allowedCountriesHasBeenSet; }
46 template <typename AllowedCountriesT = Aws::Vector<Aws::String>>
47 void SetAllowedCountries(AllowedCountriesT&& value) {
48 m_allowedCountriesHasBeenSet = true;
49 m_allowedCountries = std::forward<AllowedCountriesT>(value);
50 }
51 template <typename AllowedCountriesT = Aws::Vector<Aws::String>>
52 PlaybackRestrictionPolicy& WithAllowedCountries(AllowedCountriesT&& value) {
53 SetAllowedCountries(std::forward<AllowedCountriesT>(value));
54 return *this;
55 }
56 template <typename AllowedCountriesT = Aws::String>
57 PlaybackRestrictionPolicy& AddAllowedCountries(AllowedCountriesT&& value) {
58 m_allowedCountriesHasBeenSet = true;
59 m_allowedCountries.emplace_back(std::forward<AllowedCountriesT>(value));
60 return *this;
61 }
63
65
71 inline const Aws::Vector<Aws::String>& GetAllowedOrigins() const { return m_allowedOrigins; }
72 inline bool AllowedOriginsHasBeenSet() const { return m_allowedOriginsHasBeenSet; }
73 template <typename AllowedOriginsT = Aws::Vector<Aws::String>>
74 void SetAllowedOrigins(AllowedOriginsT&& value) {
75 m_allowedOriginsHasBeenSet = true;
76 m_allowedOrigins = std::forward<AllowedOriginsT>(value);
77 }
78 template <typename AllowedOriginsT = Aws::Vector<Aws::String>>
80 SetAllowedOrigins(std::forward<AllowedOriginsT>(value));
81 return *this;
82 }
83 template <typename AllowedOriginsT = Aws::String>
84 PlaybackRestrictionPolicy& AddAllowedOrigins(AllowedOriginsT&& value) {
85 m_allowedOriginsHasBeenSet = true;
86 m_allowedOrigins.emplace_back(std::forward<AllowedOriginsT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::String& GetArn() const { return m_arn; }
96 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
97 template <typename ArnT = Aws::String>
98 void SetArn(ArnT&& value) {
99 m_arnHasBeenSet = true;
100 m_arn = std::forward<ArnT>(value);
101 }
102 template <typename ArnT = Aws::String>
104 SetArn(std::forward<ArnT>(value));
105 return *this;
106 }
108
110
114 inline bool GetEnableStrictOriginEnforcement() const { return m_enableStrictOriginEnforcement; }
115 inline bool EnableStrictOriginEnforcementHasBeenSet() const { return m_enableStrictOriginEnforcementHasBeenSet; }
116 inline void SetEnableStrictOriginEnforcement(bool value) {
117 m_enableStrictOriginEnforcementHasBeenSet = true;
118 m_enableStrictOriginEnforcement = value;
119 }
122 return *this;
123 }
125
127
130 inline const Aws::String& GetName() const { return m_name; }
131 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
132 template <typename NameT = Aws::String>
133 void SetName(NameT&& value) {
134 m_nameHasBeenSet = true;
135 m_name = std::forward<NameT>(value);
136 }
137 template <typename NameT = Aws::String>
139 SetName(std::forward<NameT>(value));
140 return *this;
141 }
143
145
154 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
155 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
156 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
157 void SetTags(TagsT&& value) {
158 m_tagsHasBeenSet = true;
159 m_tags = std::forward<TagsT>(value);
160 }
161 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
163 SetTags(std::forward<TagsT>(value));
164 return *this;
165 }
166 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
167 PlaybackRestrictionPolicy& AddTags(TagsKeyT&& key, TagsValueT&& value) {
168 m_tagsHasBeenSet = true;
169 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
170 return *this;
171 }
173 private:
174 Aws::Vector<Aws::String> m_allowedCountries;
175
176 Aws::Vector<Aws::String> m_allowedOrigins;
177
178 Aws::String m_arn;
179
180 bool m_enableStrictOriginEnforcement{false};
181
182 Aws::String m_name;
183
185 bool m_allowedCountriesHasBeenSet = false;
186 bool m_allowedOriginsHasBeenSet = false;
187 bool m_arnHasBeenSet = false;
188 bool m_enableStrictOriginEnforcementHasBeenSet = false;
189 bool m_nameHasBeenSet = false;
190 bool m_tagsHasBeenSet = false;
191};
192
193} // namespace Model
194} // namespace IVS
195} // namespace Aws
AWS_IVS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_IVS_API PlaybackRestrictionPolicy & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
PlaybackRestrictionPolicy & AddTags(TagsKeyT &&key, TagsValueT &&value)
PlaybackRestrictionPolicy & WithEnableStrictOriginEnforcement(bool value)
PlaybackRestrictionPolicy & WithTags(TagsT &&value)
AWS_IVS_API PlaybackRestrictionPolicy()=default
PlaybackRestrictionPolicy & WithAllowedOrigins(AllowedOriginsT &&value)
PlaybackRestrictionPolicy & WithName(NameT &&value)
AWS_IVS_API PlaybackRestrictionPolicy(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetAllowedCountries() const
PlaybackRestrictionPolicy & AddAllowedOrigins(AllowedOriginsT &&value)
PlaybackRestrictionPolicy & WithAllowedCountries(AllowedCountriesT &&value)
void SetAllowedCountries(AllowedCountriesT &&value)
PlaybackRestrictionPolicy & AddAllowedCountries(AllowedCountriesT &&value)
PlaybackRestrictionPolicy & WithArn(ArnT &&value)
const Aws::Vector< Aws::String > & GetAllowedOrigins() const
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