AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
CreatePlaybackRestrictionPolicyRequest.h
1
6#pragma once
7#include <aws/ivs/IVS_EXPORTS.h>
8#include <aws/ivs/IVSRequest.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <utility>
13
14namespace Aws
15{
16namespace IVS
17{
18namespace Model
19{
20
24 {
25 public:
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreatePlaybackRestrictionPolicy"; }
33
34 AWS_IVS_API Aws::String SerializePayload() const override;
35
36
38
44 inline const Aws::Vector<Aws::String>& GetAllowedCountries() const { return m_allowedCountries; }
45 inline bool AllowedCountriesHasBeenSet() const { return m_allowedCountriesHasBeenSet; }
46 template<typename AllowedCountriesT = Aws::Vector<Aws::String>>
47 void SetAllowedCountries(AllowedCountriesT&& value) { m_allowedCountriesHasBeenSet = true; m_allowedCountries = std::forward<AllowedCountriesT>(value); }
48 template<typename AllowedCountriesT = Aws::Vector<Aws::String>>
49 CreatePlaybackRestrictionPolicyRequest& WithAllowedCountries(AllowedCountriesT&& value) { SetAllowedCountries(std::forward<AllowedCountriesT>(value)); return *this;}
50 template<typename AllowedCountriesT = Aws::String>
51 CreatePlaybackRestrictionPolicyRequest& AddAllowedCountries(AllowedCountriesT&& value) { m_allowedCountriesHasBeenSet = true; m_allowedCountries.emplace_back(std::forward<AllowedCountriesT>(value)); return *this; }
53
55
61 inline const Aws::Vector<Aws::String>& GetAllowedOrigins() const { return m_allowedOrigins; }
62 inline bool AllowedOriginsHasBeenSet() const { return m_allowedOriginsHasBeenSet; }
63 template<typename AllowedOriginsT = Aws::Vector<Aws::String>>
64 void SetAllowedOrigins(AllowedOriginsT&& value) { m_allowedOriginsHasBeenSet = true; m_allowedOrigins = std::forward<AllowedOriginsT>(value); }
65 template<typename AllowedOriginsT = Aws::Vector<Aws::String>>
66 CreatePlaybackRestrictionPolicyRequest& WithAllowedOrigins(AllowedOriginsT&& value) { SetAllowedOrigins(std::forward<AllowedOriginsT>(value)); return *this;}
67 template<typename AllowedOriginsT = Aws::String>
68 CreatePlaybackRestrictionPolicyRequest& AddAllowedOrigins(AllowedOriginsT&& value) { m_allowedOriginsHasBeenSet = true; m_allowedOrigins.emplace_back(std::forward<AllowedOriginsT>(value)); return *this; }
70
72
76 inline bool GetEnableStrictOriginEnforcement() const { return m_enableStrictOriginEnforcement; }
77 inline bool EnableStrictOriginEnforcementHasBeenSet() const { return m_enableStrictOriginEnforcementHasBeenSet; }
78 inline void SetEnableStrictOriginEnforcement(bool value) { m_enableStrictOriginEnforcementHasBeenSet = true; m_enableStrictOriginEnforcement = value; }
81
83
86 inline const Aws::String& GetName() const { return m_name; }
87 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
88 template<typename NameT = Aws::String>
89 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
90 template<typename NameT = Aws::String>
91 CreatePlaybackRestrictionPolicyRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
93
95
104 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
105 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
106 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
107 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
108 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
109 CreatePlaybackRestrictionPolicyRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
110 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
111 CreatePlaybackRestrictionPolicyRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
112 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
113 }
115 private:
116
117 Aws::Vector<Aws::String> m_allowedCountries;
118 bool m_allowedCountriesHasBeenSet = false;
119
120 Aws::Vector<Aws::String> m_allowedOrigins;
121 bool m_allowedOriginsHasBeenSet = false;
122
123 bool m_enableStrictOriginEnforcement{false};
124 bool m_enableStrictOriginEnforcementHasBeenSet = false;
125
126 Aws::String m_name;
127 bool m_nameHasBeenSet = false;
128
130 bool m_tagsHasBeenSet = false;
131 };
132
133} // namespace Model
134} // namespace IVS
135} // namespace Aws
AWS_IVS_API Aws::String SerializePayload() const override
CreatePlaybackRestrictionPolicyRequest & WithName(NameT &&value)
CreatePlaybackRestrictionPolicyRequest & WithAllowedOrigins(AllowedOriginsT &&value)
CreatePlaybackRestrictionPolicyRequest & WithAllowedCountries(AllowedCountriesT &&value)
CreatePlaybackRestrictionPolicyRequest & AddAllowedCountries(AllowedCountriesT &&value)
CreatePlaybackRestrictionPolicyRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreatePlaybackRestrictionPolicyRequest & WithTags(TagsT &&value)
CreatePlaybackRestrictionPolicyRequest & AddAllowedOrigins(AllowedOriginsT &&value)
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