AWS SDK for C++

AWS SDK for C++ Version 1.11.796

Loading...
Searching...
No Matches
PlaybackRestrictionPolicySummary.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 PlaybackRestrictionPolicySummary() = default;
36
38
41 inline const Aws::String& GetArn() const { return m_arn; }
42 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
43 template <typename ArnT = Aws::String>
44 void SetArn(ArnT&& value) {
45 m_arnHasBeenSet = true;
46 m_arn = std::forward<ArnT>(value);
47 }
48 template <typename ArnT = Aws::String>
50 SetArn(std::forward<ArnT>(value));
51 return *this;
52 }
54
56
62 inline const Aws::Vector<Aws::String>& GetAllowedCountries() const { return m_allowedCountries; }
63 inline bool AllowedCountriesHasBeenSet() const { return m_allowedCountriesHasBeenSet; }
64 template <typename AllowedCountriesT = Aws::Vector<Aws::String>>
65 void SetAllowedCountries(AllowedCountriesT&& value) {
66 m_allowedCountriesHasBeenSet = true;
67 m_allowedCountries = std::forward<AllowedCountriesT>(value);
68 }
69 template <typename AllowedCountriesT = Aws::Vector<Aws::String>>
71 SetAllowedCountries(std::forward<AllowedCountriesT>(value));
72 return *this;
73 }
74 template <typename AllowedCountriesT = Aws::String>
76 m_allowedCountriesHasBeenSet = true;
77 m_allowedCountries.emplace_back(std::forward<AllowedCountriesT>(value));
78 return *this;
79 }
81
83
89 inline const Aws::Vector<Aws::String>& GetAllowedOrigins() const { return m_allowedOrigins; }
90 inline bool AllowedOriginsHasBeenSet() const { return m_allowedOriginsHasBeenSet; }
91 template <typename AllowedOriginsT = Aws::Vector<Aws::String>>
92 void SetAllowedOrigins(AllowedOriginsT&& value) {
93 m_allowedOriginsHasBeenSet = true;
94 m_allowedOrigins = std::forward<AllowedOriginsT>(value);
95 }
96 template <typename AllowedOriginsT = Aws::Vector<Aws::String>>
98 SetAllowedOrigins(std::forward<AllowedOriginsT>(value));
99 return *this;
100 }
101 template <typename AllowedOriginsT = Aws::String>
103 m_allowedOriginsHasBeenSet = true;
104 m_allowedOrigins.emplace_back(std::forward<AllowedOriginsT>(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 PlaybackRestrictionPolicySummary& 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::String m_arn;
175
176 Aws::Vector<Aws::String> m_allowedCountries;
177
178 Aws::Vector<Aws::String> m_allowedOrigins;
179
180 bool m_enableStrictOriginEnforcement{false};
181
182 Aws::String m_name;
183
185 bool m_arnHasBeenSet = false;
186 bool m_allowedCountriesHasBeenSet = false;
187 bool m_allowedOriginsHasBeenSet = 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
PlaybackRestrictionPolicySummary & WithAllowedOrigins(AllowedOriginsT &&value)
PlaybackRestrictionPolicySummary & WithTags(TagsT &&value)
AWS_IVS_API PlaybackRestrictionPolicySummary & operator=(Aws::Utils::Json::JsonView jsonValue)
PlaybackRestrictionPolicySummary & WithEnableStrictOriginEnforcement(bool value)
PlaybackRestrictionPolicySummary & WithArn(ArnT &&value)
PlaybackRestrictionPolicySummary & WithName(NameT &&value)
AWS_IVS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_IVS_API PlaybackRestrictionPolicySummary(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetAllowedCountries() const
PlaybackRestrictionPolicySummary & WithAllowedCountries(AllowedCountriesT &&value)
PlaybackRestrictionPolicySummary & AddAllowedCountries(AllowedCountriesT &&value)
PlaybackRestrictionPolicySummary & AddAllowedOrigins(AllowedOriginsT &&value)
const Aws::Vector< Aws::String > & GetAllowedOrigins() const
PlaybackRestrictionPolicySummary & AddTags(TagsKeyT &&key, TagsValueT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() 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