AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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 inline void SetAllowedCountries(const Aws::Vector<Aws::String>& value) { m_allowedCountriesHasBeenSet = true; m_allowedCountries = value; }
46 inline void SetAllowedCountries(Aws::Vector<Aws::String>&& value) { m_allowedCountriesHasBeenSet = true; m_allowedCountries = std::move(value); }
49 inline UpdatePlaybackRestrictionPolicyRequest& AddAllowedCountries(const Aws::String& value) { m_allowedCountriesHasBeenSet = true; m_allowedCountries.push_back(value); return *this; }
50 inline UpdatePlaybackRestrictionPolicyRequest& AddAllowedCountries(Aws::String&& value) { m_allowedCountriesHasBeenSet = true; m_allowedCountries.push_back(std::move(value)); return *this; }
51 inline UpdatePlaybackRestrictionPolicyRequest& AddAllowedCountries(const char* value) { m_allowedCountriesHasBeenSet = true; m_allowedCountries.push_back(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 inline void SetAllowedOrigins(const Aws::Vector<Aws::String>& value) { m_allowedOriginsHasBeenSet = true; m_allowedOrigins = value; }
64 inline void SetAllowedOrigins(Aws::Vector<Aws::String>&& value) { m_allowedOriginsHasBeenSet = true; m_allowedOrigins = std::move(value); }
67 inline UpdatePlaybackRestrictionPolicyRequest& AddAllowedOrigins(const Aws::String& value) { m_allowedOriginsHasBeenSet = true; m_allowedOrigins.push_back(value); return *this; }
68 inline UpdatePlaybackRestrictionPolicyRequest& AddAllowedOrigins(Aws::String&& value) { m_allowedOriginsHasBeenSet = true; m_allowedOrigins.push_back(std::move(value)); return *this; }
69 inline UpdatePlaybackRestrictionPolicyRequest& AddAllowedOrigins(const char* value) { m_allowedOriginsHasBeenSet = true; m_allowedOrigins.push_back(value); return *this; }
71
73
76 inline const Aws::String& GetArn() const{ return m_arn; }
77 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
78 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
79 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
80 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
81 inline UpdatePlaybackRestrictionPolicyRequest& WithArn(const Aws::String& value) { SetArn(value); return *this;}
82 inline UpdatePlaybackRestrictionPolicyRequest& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
83 inline UpdatePlaybackRestrictionPolicyRequest& WithArn(const char* value) { SetArn(value); return *this;}
85
87
91 inline bool GetEnableStrictOriginEnforcement() const{ return m_enableStrictOriginEnforcement; }
92 inline bool EnableStrictOriginEnforcementHasBeenSet() const { return m_enableStrictOriginEnforcementHasBeenSet; }
93 inline void SetEnableStrictOriginEnforcement(bool value) { m_enableStrictOriginEnforcementHasBeenSet = true; m_enableStrictOriginEnforcement = value; }
96
98
101 inline const Aws::String& GetName() const{ return m_name; }
102 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
103 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
104 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
105 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
106 inline UpdatePlaybackRestrictionPolicyRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
107 inline UpdatePlaybackRestrictionPolicyRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
108 inline UpdatePlaybackRestrictionPolicyRequest& WithName(const char* value) { SetName(value); return *this;}
110 private:
111
112 Aws::Vector<Aws::String> m_allowedCountries;
113 bool m_allowedCountriesHasBeenSet = false;
114
115 Aws::Vector<Aws::String> m_allowedOrigins;
116 bool m_allowedOriginsHasBeenSet = false;
117
118 Aws::String m_arn;
119 bool m_arnHasBeenSet = false;
120
121 bool m_enableStrictOriginEnforcement;
122 bool m_enableStrictOriginEnforcementHasBeenSet = false;
123
124 Aws::String m_name;
125 bool m_nameHasBeenSet = false;
126 };
127
128} // namespace Model
129} // namespace IVS
130} // namespace Aws
UpdatePlaybackRestrictionPolicyRequest & AddAllowedOrigins(Aws::String &&value)
UpdatePlaybackRestrictionPolicyRequest & AddAllowedOrigins(const char *value)
UpdatePlaybackRestrictionPolicyRequest & AddAllowedOrigins(const Aws::String &value)
UpdatePlaybackRestrictionPolicyRequest & WithArn(const Aws::String &value)
UpdatePlaybackRestrictionPolicyRequest & WithName(Aws::String &&value)
UpdatePlaybackRestrictionPolicyRequest & WithAllowedCountries(Aws::Vector< Aws::String > &&value)
UpdatePlaybackRestrictionPolicyRequest & AddAllowedCountries(Aws::String &&value)
UpdatePlaybackRestrictionPolicyRequest & WithArn(Aws::String &&value)
AWS_IVS_API Aws::String SerializePayload() const override
UpdatePlaybackRestrictionPolicyRequest & WithEnableStrictOriginEnforcement(bool value)
UpdatePlaybackRestrictionPolicyRequest & WithName(const char *value)
UpdatePlaybackRestrictionPolicyRequest & WithAllowedCountries(const Aws::Vector< Aws::String > &value)
UpdatePlaybackRestrictionPolicyRequest & WithArn(const char *value)
UpdatePlaybackRestrictionPolicyRequest & AddAllowedCountries(const char *value)
UpdatePlaybackRestrictionPolicyRequest & AddAllowedCountries(const Aws::String &value)
UpdatePlaybackRestrictionPolicyRequest & WithAllowedOrigins(Aws::Vector< Aws::String > &&value)
UpdatePlaybackRestrictionPolicyRequest & WithAllowedOrigins(const Aws::Vector< Aws::String > &value)
UpdatePlaybackRestrictionPolicyRequest & WithName(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector