AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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:
37 AWS_IVS_API PlaybackRestrictionPolicySummary() = default;
41
42
44
50 inline const Aws::Vector<Aws::String>& GetAllowedCountries() const { return m_allowedCountries; }
51 inline bool AllowedCountriesHasBeenSet() const { return m_allowedCountriesHasBeenSet; }
52 template<typename AllowedCountriesT = Aws::Vector<Aws::String>>
53 void SetAllowedCountries(AllowedCountriesT&& value) { m_allowedCountriesHasBeenSet = true; m_allowedCountries = std::forward<AllowedCountriesT>(value); }
54 template<typename AllowedCountriesT = Aws::Vector<Aws::String>>
55 PlaybackRestrictionPolicySummary& WithAllowedCountries(AllowedCountriesT&& value) { SetAllowedCountries(std::forward<AllowedCountriesT>(value)); return *this;}
56 template<typename AllowedCountriesT = Aws::String>
57 PlaybackRestrictionPolicySummary& AddAllowedCountries(AllowedCountriesT&& value) { m_allowedCountriesHasBeenSet = true; m_allowedCountries.emplace_back(std::forward<AllowedCountriesT>(value)); return *this; }
59
61
67 inline const Aws::Vector<Aws::String>& GetAllowedOrigins() const { return m_allowedOrigins; }
68 inline bool AllowedOriginsHasBeenSet() const { return m_allowedOriginsHasBeenSet; }
69 template<typename AllowedOriginsT = Aws::Vector<Aws::String>>
70 void SetAllowedOrigins(AllowedOriginsT&& value) { m_allowedOriginsHasBeenSet = true; m_allowedOrigins = std::forward<AllowedOriginsT>(value); }
71 template<typename AllowedOriginsT = Aws::Vector<Aws::String>>
72 PlaybackRestrictionPolicySummary& WithAllowedOrigins(AllowedOriginsT&& value) { SetAllowedOrigins(std::forward<AllowedOriginsT>(value)); return *this;}
73 template<typename AllowedOriginsT = Aws::String>
74 PlaybackRestrictionPolicySummary& AddAllowedOrigins(AllowedOriginsT&& value) { m_allowedOriginsHasBeenSet = true; m_allowedOrigins.emplace_back(std::forward<AllowedOriginsT>(value)); return *this; }
76
78
81 inline const Aws::String& GetArn() const { return m_arn; }
82 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
83 template<typename ArnT = Aws::String>
84 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
85 template<typename ArnT = Aws::String>
86 PlaybackRestrictionPolicySummary& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
88
90
94 inline bool GetEnableStrictOriginEnforcement() const { return m_enableStrictOriginEnforcement; }
95 inline bool EnableStrictOriginEnforcementHasBeenSet() const { return m_enableStrictOriginEnforcementHasBeenSet; }
96 inline void SetEnableStrictOriginEnforcement(bool value) { m_enableStrictOriginEnforcementHasBeenSet = true; m_enableStrictOriginEnforcement = value; }
99
101
104 inline const Aws::String& GetName() const { return m_name; }
105 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
106 template<typename NameT = Aws::String>
107 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
108 template<typename NameT = Aws::String>
109 PlaybackRestrictionPolicySummary& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
111
113
122 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
123 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
124 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
125 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
126 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
127 PlaybackRestrictionPolicySummary& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
128 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
129 PlaybackRestrictionPolicySummary& AddTags(TagsKeyT&& key, TagsValueT&& value) {
130 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
131 }
133 private:
134
135 Aws::Vector<Aws::String> m_allowedCountries;
136 bool m_allowedCountriesHasBeenSet = false;
137
138 Aws::Vector<Aws::String> m_allowedOrigins;
139 bool m_allowedOriginsHasBeenSet = false;
140
141 Aws::String m_arn;
142 bool m_arnHasBeenSet = false;
143
144 bool m_enableStrictOriginEnforcement{false};
145 bool m_enableStrictOriginEnforcementHasBeenSet = false;
146
147 Aws::String m_name;
148 bool m_nameHasBeenSet = false;
149
151 bool m_tagsHasBeenSet = false;
152 };
153
154} // namespace Model
155} // namespace IVS
156} // 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