AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PlaybackRestrictionPolicySummary.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 PlaybackRestrictionPolicySummary& AddAllowedCountries(const Aws::String& value) { m_allowedCountriesHasBeenSet = true; m_allowedCountries.push_back(value); return *this; }
57 inline PlaybackRestrictionPolicySummary& AddAllowedCountries(Aws::String&& value) { m_allowedCountriesHasBeenSet = true; m_allowedCountries.push_back(std::move(value)); return *this; }
58 inline PlaybackRestrictionPolicySummary& 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 PlaybackRestrictionPolicySummary& AddAllowedOrigins(const Aws::String& value) { m_allowedOriginsHasBeenSet = true; m_allowedOrigins.push_back(value); return *this; }
75 inline PlaybackRestrictionPolicySummary& AddAllowedOrigins(Aws::String&& value) { m_allowedOriginsHasBeenSet = true; m_allowedOrigins.push_back(std::move(value)); return *this; }
76 inline PlaybackRestrictionPolicySummary& 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 PlaybackRestrictionPolicySummary& WithArn(const Aws::String& value) { SetArn(value); return *this;}
89 inline PlaybackRestrictionPolicySummary& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
90 inline PlaybackRestrictionPolicySummary& 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 PlaybackRestrictionPolicySummary& WithName(const Aws::String& value) { SetName(value); return *this;}
114 inline PlaybackRestrictionPolicySummary& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
115 inline PlaybackRestrictionPolicySummary& 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 PlaybackRestrictionPolicySummary& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
134 inline PlaybackRestrictionPolicySummary& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
135 inline PlaybackRestrictionPolicySummary& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
136 inline PlaybackRestrictionPolicySummary& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
137 inline PlaybackRestrictionPolicySummary& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
138 inline PlaybackRestrictionPolicySummary& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
139 inline PlaybackRestrictionPolicySummary& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
140 inline PlaybackRestrictionPolicySummary& 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
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
PlaybackRestrictionPolicySummary & AddTags(const Aws::String &key, Aws::String &&value)
PlaybackRestrictionPolicySummary & WithName(const Aws::String &value)
PlaybackRestrictionPolicySummary & WithAllowedOrigins(const Aws::Vector< Aws::String > &value)
PlaybackRestrictionPolicySummary & WithArn(const Aws::String &value)
PlaybackRestrictionPolicySummary & WithAllowedCountries(Aws::Vector< Aws::String > &&value)
PlaybackRestrictionPolicySummary & WithAllowedCountries(const Aws::Vector< Aws::String > &value)
PlaybackRestrictionPolicySummary & WithAllowedOrigins(Aws::Vector< Aws::String > &&value)
PlaybackRestrictionPolicySummary & AddTags(Aws::String &&key, Aws::String &&value)
AWS_IVS_API PlaybackRestrictionPolicySummary & operator=(Aws::Utils::Json::JsonView jsonValue)
PlaybackRestrictionPolicySummary & WithEnableStrictOriginEnforcement(bool value)
PlaybackRestrictionPolicySummary & WithName(Aws::String &&value)
PlaybackRestrictionPolicySummary & AddAllowedCountries(const char *value)
PlaybackRestrictionPolicySummary & AddTags(const char *key, Aws::String &&value)
PlaybackRestrictionPolicySummary & WithArn(Aws::String &&value)
AWS_IVS_API Aws::Utils::Json::JsonValue Jsonize() const
PlaybackRestrictionPolicySummary & WithName(const char *value)
AWS_IVS_API PlaybackRestrictionPolicySummary(Aws::Utils::Json::JsonView jsonValue)
PlaybackRestrictionPolicySummary & AddAllowedCountries(Aws::String &&value)
PlaybackRestrictionPolicySummary & AddTags(Aws::String &&key, const char *value)
void SetAllowedCountries(const Aws::Vector< Aws::String > &value)
PlaybackRestrictionPolicySummary & AddTags(Aws::String &&key, const Aws::String &value)
const Aws::Vector< Aws::String > & GetAllowedCountries() const
PlaybackRestrictionPolicySummary & WithArn(const char *value)
PlaybackRestrictionPolicySummary & AddTags(const Aws::String &key, const Aws::String &value)
PlaybackRestrictionPolicySummary & AddAllowedOrigins(Aws::String &&value)
void SetAllowedOrigins(const Aws::Vector< Aws::String > &value)
PlaybackRestrictionPolicySummary & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
PlaybackRestrictionPolicySummary & AddAllowedOrigins(const Aws::String &value)
const Aws::Vector< Aws::String > & GetAllowedOrigins() const
PlaybackRestrictionPolicySummary & AddAllowedOrigins(const char *value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
PlaybackRestrictionPolicySummary & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
PlaybackRestrictionPolicySummary & AddAllowedCountries(const Aws::String &value)
PlaybackRestrictionPolicySummary & AddTags(const char *key, const char *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