AWS SDK for C++

AWS SDK for C++ Version 1.11.796

Loading...
Searching...
No Matches
UpdatePlaybackRestrictionPolicyRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/ivs/IVSRequest.h>
10#include <aws/ivs/IVS_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace IVS {
16namespace Model {
17
21 public:
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "UpdatePlaybackRestrictionPolicy"; }
29
30 AWS_IVS_API Aws::String SerializePayload() const override;
31
33
36 inline const Aws::String& GetArn() const { return m_arn; }
37 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
38 template <typename ArnT = Aws::String>
39 void SetArn(ArnT&& value) {
40 m_arnHasBeenSet = true;
41 m_arn = std::forward<ArnT>(value);
42 }
43 template <typename ArnT = Aws::String>
45 SetArn(std::forward<ArnT>(value));
46 return *this;
47 }
49
51
57 inline const Aws::Vector<Aws::String>& GetAllowedCountries() const { return m_allowedCountries; }
58 inline bool AllowedCountriesHasBeenSet() const { return m_allowedCountriesHasBeenSet; }
59 template <typename AllowedCountriesT = Aws::Vector<Aws::String>>
60 void SetAllowedCountries(AllowedCountriesT&& value) {
61 m_allowedCountriesHasBeenSet = true;
62 m_allowedCountries = std::forward<AllowedCountriesT>(value);
63 }
64 template <typename AllowedCountriesT = Aws::Vector<Aws::String>>
66 SetAllowedCountries(std::forward<AllowedCountriesT>(value));
67 return *this;
68 }
69 template <typename AllowedCountriesT = Aws::String>
71 m_allowedCountriesHasBeenSet = true;
72 m_allowedCountries.emplace_back(std::forward<AllowedCountriesT>(value));
73 return *this;
74 }
76
78
84 inline const Aws::Vector<Aws::String>& GetAllowedOrigins() const { return m_allowedOrigins; }
85 inline bool AllowedOriginsHasBeenSet() const { return m_allowedOriginsHasBeenSet; }
86 template <typename AllowedOriginsT = Aws::Vector<Aws::String>>
87 void SetAllowedOrigins(AllowedOriginsT&& value) {
88 m_allowedOriginsHasBeenSet = true;
89 m_allowedOrigins = std::forward<AllowedOriginsT>(value);
90 }
91 template <typename AllowedOriginsT = Aws::Vector<Aws::String>>
93 SetAllowedOrigins(std::forward<AllowedOriginsT>(value));
94 return *this;
95 }
96 template <typename AllowedOriginsT = Aws::String>
98 m_allowedOriginsHasBeenSet = true;
99 m_allowedOrigins.emplace_back(std::forward<AllowedOriginsT>(value));
100 return *this;
101 }
103
105
109 inline bool GetEnableStrictOriginEnforcement() const { return m_enableStrictOriginEnforcement; }
110 inline bool EnableStrictOriginEnforcementHasBeenSet() const { return m_enableStrictOriginEnforcementHasBeenSet; }
111 inline void SetEnableStrictOriginEnforcement(bool value) {
112 m_enableStrictOriginEnforcementHasBeenSet = true;
113 m_enableStrictOriginEnforcement = value;
114 }
117 return *this;
118 }
120
122
125 inline const Aws::String& GetName() const { return m_name; }
126 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
127 template <typename NameT = Aws::String>
128 void SetName(NameT&& value) {
129 m_nameHasBeenSet = true;
130 m_name = std::forward<NameT>(value);
131 }
132 template <typename NameT = Aws::String>
134 SetName(std::forward<NameT>(value));
135 return *this;
136 }
138 private:
139 Aws::String m_arn;
140
141 Aws::Vector<Aws::String> m_allowedCountries;
142
143 Aws::Vector<Aws::String> m_allowedOrigins;
144
145 bool m_enableStrictOriginEnforcement{false};
146
147 Aws::String m_name;
148 bool m_arnHasBeenSet = false;
149 bool m_allowedCountriesHasBeenSet = false;
150 bool m_allowedOriginsHasBeenSet = false;
151 bool m_enableStrictOriginEnforcementHasBeenSet = false;
152 bool m_nameHasBeenSet = false;
153};
154
155} // namespace Model
156} // namespace IVS
157} // namespace Aws
UpdatePlaybackRestrictionPolicyRequest & WithArn(ArnT &&value)
UpdatePlaybackRestrictionPolicyRequest & AddAllowedCountries(AllowedCountriesT &&value)
UpdatePlaybackRestrictionPolicyRequest & WithAllowedCountries(AllowedCountriesT &&value)
UpdatePlaybackRestrictionPolicyRequest & AddAllowedOrigins(AllowedOriginsT &&value)
AWS_IVS_API Aws::String SerializePayload() const override
UpdatePlaybackRestrictionPolicyRequest & WithEnableStrictOriginEnforcement(bool value)
UpdatePlaybackRestrictionPolicyRequest & WithName(NameT &&value)
UpdatePlaybackRestrictionPolicyRequest & WithAllowedOrigins(AllowedOriginsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector