AWS SDK for C++

AWS SDK for C++ Version 1.11.719

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
39 inline const Aws::Vector<Aws::String>& GetAllowedCountries() const { return m_allowedCountries; }
40 inline bool AllowedCountriesHasBeenSet() const { return m_allowedCountriesHasBeenSet; }
41 template <typename AllowedCountriesT = Aws::Vector<Aws::String>>
42 void SetAllowedCountries(AllowedCountriesT&& value) {
43 m_allowedCountriesHasBeenSet = true;
44 m_allowedCountries = std::forward<AllowedCountriesT>(value);
45 }
46 template <typename AllowedCountriesT = Aws::Vector<Aws::String>>
48 SetAllowedCountries(std::forward<AllowedCountriesT>(value));
49 return *this;
50 }
51 template <typename AllowedCountriesT = Aws::String>
53 m_allowedCountriesHasBeenSet = true;
54 m_allowedCountries.emplace_back(std::forward<AllowedCountriesT>(value));
55 return *this;
56 }
58
60
66 inline const Aws::Vector<Aws::String>& GetAllowedOrigins() const { return m_allowedOrigins; }
67 inline bool AllowedOriginsHasBeenSet() const { return m_allowedOriginsHasBeenSet; }
68 template <typename AllowedOriginsT = Aws::Vector<Aws::String>>
69 void SetAllowedOrigins(AllowedOriginsT&& value) {
70 m_allowedOriginsHasBeenSet = true;
71 m_allowedOrigins = std::forward<AllowedOriginsT>(value);
72 }
73 template <typename AllowedOriginsT = Aws::Vector<Aws::String>>
75 SetAllowedOrigins(std::forward<AllowedOriginsT>(value));
76 return *this;
77 }
78 template <typename AllowedOriginsT = Aws::String>
80 m_allowedOriginsHasBeenSet = true;
81 m_allowedOrigins.emplace_back(std::forward<AllowedOriginsT>(value));
82 return *this;
83 }
85
87
90 inline const Aws::String& GetArn() const { return m_arn; }
91 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
92 template <typename ArnT = Aws::String>
93 void SetArn(ArnT&& value) {
94 m_arnHasBeenSet = true;
95 m_arn = std::forward<ArnT>(value);
96 }
97 template <typename ArnT = Aws::String>
99 SetArn(std::forward<ArnT>(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::Vector<Aws::String> m_allowedCountries;
140
141 Aws::Vector<Aws::String> m_allowedOrigins;
142
143 Aws::String m_arn;
144
145 bool m_enableStrictOriginEnforcement{false};
146
147 Aws::String m_name;
148 bool m_allowedCountriesHasBeenSet = false;
149 bool m_allowedOriginsHasBeenSet = false;
150 bool m_arnHasBeenSet = 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