AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PlaybackRestrictionPolicy.h
1
6#pragma once
7#include <aws/ivs/IVS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace IVS
24{
25namespace Model
26{
27
35 {
36 public:
41
42
44
50 inline const Aws::Vector<Aws::String>& GetAllowedCountries() const{ return m_allowedCountries; }
51 inline bool AllowedCountriesHasBeenSet() const { return m_allowedCountriesHasBeenSet; }
52 inline void SetAllowedCountries(const Aws::Vector<Aws::String>& value) { m_allowedCountriesHasBeenSet = true; m_allowedCountries = value; }
53 inline void SetAllowedCountries(Aws::Vector<Aws::String>&& value) { m_allowedCountriesHasBeenSet = true; m_allowedCountries = std::move(value); }
56 inline PlaybackRestrictionPolicy& AddAllowedCountries(const Aws::String& value) { m_allowedCountriesHasBeenSet = true; m_allowedCountries.push_back(value); return *this; }
57 inline PlaybackRestrictionPolicy& AddAllowedCountries(Aws::String&& value) { m_allowedCountriesHasBeenSet = true; m_allowedCountries.push_back(std::move(value)); return *this; }
58 inline PlaybackRestrictionPolicy& AddAllowedCountries(const char* value) { m_allowedCountriesHasBeenSet = true; m_allowedCountries.push_back(value); return *this; }
60
62
68 inline const Aws::Vector<Aws::String>& GetAllowedOrigins() const{ return m_allowedOrigins; }
69 inline bool AllowedOriginsHasBeenSet() const { return m_allowedOriginsHasBeenSet; }
70 inline void SetAllowedOrigins(const Aws::Vector<Aws::String>& value) { m_allowedOriginsHasBeenSet = true; m_allowedOrigins = value; }
71 inline void SetAllowedOrigins(Aws::Vector<Aws::String>&& value) { m_allowedOriginsHasBeenSet = true; m_allowedOrigins = std::move(value); }
74 inline PlaybackRestrictionPolicy& AddAllowedOrigins(const Aws::String& value) { m_allowedOriginsHasBeenSet = true; m_allowedOrigins.push_back(value); return *this; }
75 inline PlaybackRestrictionPolicy& AddAllowedOrigins(Aws::String&& value) { m_allowedOriginsHasBeenSet = true; m_allowedOrigins.push_back(std::move(value)); return *this; }
76 inline PlaybackRestrictionPolicy& AddAllowedOrigins(const char* value) { m_allowedOriginsHasBeenSet = true; m_allowedOrigins.push_back(value); return *this; }
78
80
83 inline const Aws::String& GetArn() const{ return m_arn; }
84 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
85 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
86 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
87 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
88 inline PlaybackRestrictionPolicy& WithArn(const Aws::String& value) { SetArn(value); return *this;}
89 inline PlaybackRestrictionPolicy& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
90 inline PlaybackRestrictionPolicy& WithArn(const char* value) { SetArn(value); return *this;}
92
94
98 inline bool GetEnableStrictOriginEnforcement() const{ return m_enableStrictOriginEnforcement; }
99 inline bool EnableStrictOriginEnforcementHasBeenSet() const { return m_enableStrictOriginEnforcementHasBeenSet; }
100 inline void SetEnableStrictOriginEnforcement(bool value) { m_enableStrictOriginEnforcementHasBeenSet = true; m_enableStrictOriginEnforcement = value; }
103
105
108 inline const Aws::String& GetName() const{ return m_name; }
109 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
110 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
111 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
112 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
113 inline PlaybackRestrictionPolicy& WithName(const Aws::String& value) { SetName(value); return *this;}
114 inline PlaybackRestrictionPolicy& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
115 inline PlaybackRestrictionPolicy& WithName(const char* value) { SetName(value); return *this;}
117
119
128 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
129 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
130 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
131 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
133 inline PlaybackRestrictionPolicy& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
134 inline PlaybackRestrictionPolicy& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
135 inline PlaybackRestrictionPolicy& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
136 inline PlaybackRestrictionPolicy& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
137 inline PlaybackRestrictionPolicy& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
138 inline PlaybackRestrictionPolicy& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
139 inline PlaybackRestrictionPolicy& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
140 inline PlaybackRestrictionPolicy& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
142 private:
143
144 Aws::Vector<Aws::String> m_allowedCountries;
145 bool m_allowedCountriesHasBeenSet = false;
146
147 Aws::Vector<Aws::String> m_allowedOrigins;
148 bool m_allowedOriginsHasBeenSet = false;
149
150 Aws::String m_arn;
151 bool m_arnHasBeenSet = false;
152
153 bool m_enableStrictOriginEnforcement;
154 bool m_enableStrictOriginEnforcementHasBeenSet = false;
155
156 Aws::String m_name;
157 bool m_nameHasBeenSet = false;
158
160 bool m_tagsHasBeenSet = false;
161 };
162
163} // namespace Model
164} // namespace IVS
165} // namespace Aws
PlaybackRestrictionPolicy & AddTags(const Aws::String &key, Aws::String &&value)
PlaybackRestrictionPolicy & WithAllowedCountries(Aws::Vector< Aws::String > &&value)
PlaybackRestrictionPolicy & AddTags(Aws::String &&key, Aws::String &&value)
PlaybackRestrictionPolicy & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
PlaybackRestrictionPolicy & WithAllowedOrigins(Aws::Vector< Aws::String > &&value)
PlaybackRestrictionPolicy & AddTags(const char *key, Aws::String &&value)
void SetAllowedCountries(const Aws::Vector< Aws::String > &value)
PlaybackRestrictionPolicy & WithAllowedOrigins(const Aws::Vector< Aws::String > &value)
void SetAllowedCountries(Aws::Vector< Aws::String > &&value)
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 & WithName(Aws::String &&value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
PlaybackRestrictionPolicy & WithArn(const char *value)
PlaybackRestrictionPolicy & WithEnableStrictOriginEnforcement(bool value)
PlaybackRestrictionPolicy & AddAllowedOrigins(Aws::String &&value)
void SetAllowedOrigins(Aws::Vector< Aws::String > &&value)
PlaybackRestrictionPolicy & AddTags(Aws::String &&key, const Aws::String &value)
PlaybackRestrictionPolicy & WithName(const char *value)
PlaybackRestrictionPolicy & WithArn(const Aws::String &value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
void SetAllowedOrigins(const Aws::Vector< Aws::String > &value)
AWS_IVS_API PlaybackRestrictionPolicy(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetAllowedCountries() const
PlaybackRestrictionPolicy & AddTags(const Aws::String &key, const Aws::String &value)
PlaybackRestrictionPolicy & AddAllowedOrigins(const char *value)
PlaybackRestrictionPolicy & WithName(const Aws::String &value)
PlaybackRestrictionPolicy & AddAllowedCountries(const char *value)
PlaybackRestrictionPolicy & WithArn(Aws::String &&value)
PlaybackRestrictionPolicy & AddTags(Aws::String &&key, const char *value)
PlaybackRestrictionPolicy & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
PlaybackRestrictionPolicy & AddTags(const char *key, const char *value)
const Aws::Vector< Aws::String > & GetAllowedOrigins() const
PlaybackRestrictionPolicy & AddAllowedCountries(const Aws::String &value)
PlaybackRestrictionPolicy & AddAllowedOrigins(const Aws::String &value)
PlaybackRestrictionPolicy & AddAllowedCountries(Aws::String &&value)
PlaybackRestrictionPolicy & WithAllowedCountries(const Aws::Vector< Aws::String > &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
Aws::Utils::Json::JsonValue JsonValue