AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
UpdatePlaybackRestrictionPolicyRequest.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 <utility>
12
13namespace Aws
14{
15namespace IVS
16{
17namespace Model
18{
19
23 {
24 public:
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "UpdatePlaybackRestrictionPolicy"; }
32
33 AWS_IVS_API Aws::String SerializePayload() const override;
34
35
37
43 inline const Aws::Vector<Aws::String>& GetAllowedCountries() const { return m_allowedCountries; }
44 inline bool AllowedCountriesHasBeenSet() const { return m_allowedCountriesHasBeenSet; }
45 template<typename AllowedCountriesT = Aws::Vector<Aws::String>>
46 void SetAllowedCountries(AllowedCountriesT&& value) { m_allowedCountriesHasBeenSet = true; m_allowedCountries = std::forward<AllowedCountriesT>(value); }
47 template<typename AllowedCountriesT = Aws::Vector<Aws::String>>
48 UpdatePlaybackRestrictionPolicyRequest& WithAllowedCountries(AllowedCountriesT&& value) { SetAllowedCountries(std::forward<AllowedCountriesT>(value)); return *this;}
49 template<typename AllowedCountriesT = Aws::String>
50 UpdatePlaybackRestrictionPolicyRequest& AddAllowedCountries(AllowedCountriesT&& value) { m_allowedCountriesHasBeenSet = true; m_allowedCountries.emplace_back(std::forward<AllowedCountriesT>(value)); return *this; }
52
54
60 inline const Aws::Vector<Aws::String>& GetAllowedOrigins() const { return m_allowedOrigins; }
61 inline bool AllowedOriginsHasBeenSet() const { return m_allowedOriginsHasBeenSet; }
62 template<typename AllowedOriginsT = Aws::Vector<Aws::String>>
63 void SetAllowedOrigins(AllowedOriginsT&& value) { m_allowedOriginsHasBeenSet = true; m_allowedOrigins = std::forward<AllowedOriginsT>(value); }
64 template<typename AllowedOriginsT = Aws::Vector<Aws::String>>
65 UpdatePlaybackRestrictionPolicyRequest& WithAllowedOrigins(AllowedOriginsT&& value) { SetAllowedOrigins(std::forward<AllowedOriginsT>(value)); return *this;}
66 template<typename AllowedOriginsT = Aws::String>
67 UpdatePlaybackRestrictionPolicyRequest& AddAllowedOrigins(AllowedOriginsT&& value) { m_allowedOriginsHasBeenSet = true; m_allowedOrigins.emplace_back(std::forward<AllowedOriginsT>(value)); return *this; }
69
71
74 inline const Aws::String& GetArn() const { return m_arn; }
75 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
76 template<typename ArnT = Aws::String>
77 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
78 template<typename ArnT = Aws::String>
79 UpdatePlaybackRestrictionPolicyRequest& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
81
83
87 inline bool GetEnableStrictOriginEnforcement() const { return m_enableStrictOriginEnforcement; }
88 inline bool EnableStrictOriginEnforcementHasBeenSet() const { return m_enableStrictOriginEnforcementHasBeenSet; }
89 inline void SetEnableStrictOriginEnforcement(bool value) { m_enableStrictOriginEnforcementHasBeenSet = true; m_enableStrictOriginEnforcement = value; }
92
94
97 inline const Aws::String& GetName() const { return m_name; }
98 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
99 template<typename NameT = Aws::String>
100 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
101 template<typename NameT = Aws::String>
102 UpdatePlaybackRestrictionPolicyRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
104 private:
105
106 Aws::Vector<Aws::String> m_allowedCountries;
107 bool m_allowedCountriesHasBeenSet = false;
108
109 Aws::Vector<Aws::String> m_allowedOrigins;
110 bool m_allowedOriginsHasBeenSet = false;
111
112 Aws::String m_arn;
113 bool m_arnHasBeenSet = false;
114
115 bool m_enableStrictOriginEnforcement{false};
116 bool m_enableStrictOriginEnforcementHasBeenSet = false;
117
118 Aws::String m_name;
119 bool m_nameHasBeenSet = false;
120 };
121
122} // namespace Model
123} // namespace IVS
124} // 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