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/IVSRequest.h>
11#include <aws/ivs/IVS_EXPORTS.h>
42 template <
typename AllowedCountriesT = Aws::Vector<Aws::String>>
44 m_allowedCountriesHasBeenSet =
true;
45 m_allowedCountries = std::forward<AllowedCountriesT>(value);
47 template <
typename AllowedCountriesT = Aws::Vector<Aws::String>>
52 template <
typename AllowedCountriesT = Aws::String>
54 m_allowedCountriesHasBeenSet =
true;
55 m_allowedCountries.emplace_back(std::forward<AllowedCountriesT>(value));
69 template <
typename AllowedOriginsT = Aws::Vector<Aws::String>>
71 m_allowedOriginsHasBeenSet =
true;
72 m_allowedOrigins = std::forward<AllowedOriginsT>(value);
74 template <
typename AllowedOriginsT = Aws::Vector<Aws::String>>
79 template <
typename AllowedOriginsT = Aws::String>
81 m_allowedOriginsHasBeenSet =
true;
82 m_allowedOrigins.emplace_back(std::forward<AllowedOriginsT>(value));
95 m_enableStrictOriginEnforcementHasBeenSet =
true;
96 m_enableStrictOriginEnforcement = value;
110 template <
typename NameT = Aws::String>
112 m_nameHasBeenSet =
true;
113 m_name = std::forward<NameT>(value);
115 template <
typename NameT = Aws::String>
117 SetName(std::forward<NameT>(value));
134 template <
typename TagsT = Aws::Map<Aws::String, Aws::String>>
136 m_tagsHasBeenSet =
true;
137 m_tags = std::forward<TagsT>(value);
139 template <
typename TagsT = Aws::Map<Aws::String, Aws::String>>
141 SetTags(std::forward<TagsT>(value));
144 template <
typename TagsKeyT = Aws::String,
typename TagsValueT = Aws::String>
146 m_tagsHasBeenSet =
true;
147 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
156 bool m_enableStrictOriginEnforcement{
false};
161 bool m_allowedCountriesHasBeenSet =
false;
162 bool m_allowedOriginsHasBeenSet =
false;
163 bool m_enableStrictOriginEnforcementHasBeenSet =
false;
164 bool m_nameHasBeenSet =
false;
165 bool m_tagsHasBeenSet =
false;
bool NameHasBeenSet() const
const Aws::String & GetName() const
AWS_IVS_API Aws::String SerializePayload() const override
CreatePlaybackRestrictionPolicyRequest & WithName(NameT &&value)
const Aws::Vector< Aws::String > & GetAllowedCountries() const
bool GetEnableStrictOriginEnforcement() const
bool AllowedOriginsHasBeenSet() const
bool AllowedCountriesHasBeenSet() const
CreatePlaybackRestrictionPolicyRequest & WithAllowedOrigins(AllowedOriginsT &&value)
void SetAllowedOrigins(AllowedOriginsT &&value)
CreatePlaybackRestrictionPolicyRequest & WithAllowedCountries(AllowedCountriesT &&value)
void SetName(NameT &&value)
const Aws::Vector< Aws::String > & GetAllowedOrigins() const
CreatePlaybackRestrictionPolicyRequest & AddAllowedCountries(AllowedCountriesT &&value)
bool EnableStrictOriginEnforcementHasBeenSet() const
CreatePlaybackRestrictionPolicyRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
void SetTags(TagsT &&value)
virtual const char * GetServiceRequestName() const override
AWS_IVS_API CreatePlaybackRestrictionPolicyRequest()=default
void SetEnableStrictOriginEnforcement(bool value)
CreatePlaybackRestrictionPolicyRequest & WithTags(TagsT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
void SetAllowedCountries(AllowedCountriesT &&value)
CreatePlaybackRestrictionPolicyRequest & AddAllowedOrigins(AllowedOriginsT &&value)
bool TagsHasBeenSet() const
CreatePlaybackRestrictionPolicyRequest & WithEnableStrictOriginEnforcement(bool value)
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