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>
46 template <
typename AllowedCountriesT = Aws::Vector<Aws::String>>
48 m_allowedCountriesHasBeenSet =
true;
49 m_allowedCountries = std::forward<AllowedCountriesT>(value);
51 template <
typename AllowedCountriesT = Aws::Vector<Aws::String>>
56 template <
typename AllowedCountriesT = Aws::String>
58 m_allowedCountriesHasBeenSet =
true;
59 m_allowedCountries.emplace_back(std::forward<AllowedCountriesT>(value));
73 template <
typename AllowedOriginsT = Aws::Vector<Aws::String>>
75 m_allowedOriginsHasBeenSet =
true;
76 m_allowedOrigins = std::forward<AllowedOriginsT>(value);
78 template <
typename AllowedOriginsT = Aws::Vector<Aws::String>>
83 template <
typename AllowedOriginsT = Aws::String>
85 m_allowedOriginsHasBeenSet =
true;
86 m_allowedOrigins.emplace_back(std::forward<AllowedOriginsT>(value));
97 template <
typename ArnT = Aws::String>
99 m_arnHasBeenSet =
true;
100 m_arn = std::forward<ArnT>(value);
102 template <
typename ArnT = Aws::String>
104 SetArn(std::forward<ArnT>(value));
117 m_enableStrictOriginEnforcementHasBeenSet =
true;
118 m_enableStrictOriginEnforcement = value;
132 template <
typename NameT = Aws::String>
134 m_nameHasBeenSet =
true;
135 m_name = std::forward<NameT>(value);
137 template <
typename NameT = Aws::String>
139 SetName(std::forward<NameT>(value));
156 template <
typename TagsT = Aws::Map<Aws::String, Aws::String>>
158 m_tagsHasBeenSet =
true;
159 m_tags = std::forward<TagsT>(value);
161 template <
typename TagsT = Aws::Map<Aws::String, Aws::String>>
163 SetTags(std::forward<TagsT>(value));
166 template <
typename TagsKeyT = Aws::String,
typename TagsValueT = Aws::String>
168 m_tagsHasBeenSet =
true;
169 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
180 bool m_enableStrictOriginEnforcement{
false};
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;
bool GetEnableStrictOriginEnforcement() const
void SetArn(ArnT &&value)
bool EnableStrictOriginEnforcementHasBeenSet() const
AWS_IVS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_IVS_API PlaybackRestrictionPolicy & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetTags(TagsT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
PlaybackRestrictionPolicy & AddTags(TagsKeyT &&key, TagsValueT &&value)
bool AllowedOriginsHasBeenSet() const
const Aws::String & GetName() const
bool NameHasBeenSet() const
void SetEnableStrictOriginEnforcement(bool value)
PlaybackRestrictionPolicy & WithEnableStrictOriginEnforcement(bool value)
PlaybackRestrictionPolicy & WithTags(TagsT &&value)
AWS_IVS_API PlaybackRestrictionPolicy()=default
void SetAllowedOrigins(AllowedOriginsT &&value)
PlaybackRestrictionPolicy & WithAllowedOrigins(AllowedOriginsT &&value)
PlaybackRestrictionPolicy & WithName(NameT &&value)
AWS_IVS_API PlaybackRestrictionPolicy(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetAllowedCountries() const
const Aws::String & GetArn() const
PlaybackRestrictionPolicy & AddAllowedOrigins(AllowedOriginsT &&value)
PlaybackRestrictionPolicy & WithAllowedCountries(AllowedCountriesT &&value)
bool ArnHasBeenSet() const
void SetAllowedCountries(AllowedCountriesT &&value)
bool TagsHasBeenSet() const
PlaybackRestrictionPolicy & AddAllowedCountries(AllowedCountriesT &&value)
PlaybackRestrictionPolicy & WithArn(ArnT &&value)
const Aws::Vector< Aws::String > & GetAllowedOrigins() const
void SetName(NameT &&value)
bool AllowedCountriesHasBeenSet() 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