AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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 inline void SetAllowedCountries(const Aws::Vector<Aws::String>& value) { m_allowedCountriesHasBeenSet = true; m_allowedCountries = value; }
47 inline void SetAllowedCountries(Aws::Vector<Aws::String>&& value) { m_allowedCountriesHasBeenSet = true; m_allowedCountries = std::move(value); }
50 inline CreatePlaybackRestrictionPolicyRequest& AddAllowedCountries(const Aws::String& value) { m_allowedCountriesHasBeenSet = true; m_allowedCountries.push_back(value); return *this; }
51 inline CreatePlaybackRestrictionPolicyRequest& AddAllowedCountries(Aws::String&& value) { m_allowedCountriesHasBeenSet = true; m_allowedCountries.push_back(std::move(value)); return *this; }
52 inline CreatePlaybackRestrictionPolicyRequest& AddAllowedCountries(const char* value) { m_allowedCountriesHasBeenSet = true; m_allowedCountries.push_back(value); return *this; }
54
56
62 inline const Aws::Vector<Aws::String>& GetAllowedOrigins() const{ return m_allowedOrigins; }
63 inline bool AllowedOriginsHasBeenSet() const { return m_allowedOriginsHasBeenSet; }
64 inline void SetAllowedOrigins(const Aws::Vector<Aws::String>& value) { m_allowedOriginsHasBeenSet = true; m_allowedOrigins = value; }
65 inline void SetAllowedOrigins(Aws::Vector<Aws::String>&& value) { m_allowedOriginsHasBeenSet = true; m_allowedOrigins = std::move(value); }
68 inline CreatePlaybackRestrictionPolicyRequest& AddAllowedOrigins(const Aws::String& value) { m_allowedOriginsHasBeenSet = true; m_allowedOrigins.push_back(value); return *this; }
69 inline CreatePlaybackRestrictionPolicyRequest& AddAllowedOrigins(Aws::String&& value) { m_allowedOriginsHasBeenSet = true; m_allowedOrigins.push_back(std::move(value)); return *this; }
70 inline CreatePlaybackRestrictionPolicyRequest& AddAllowedOrigins(const char* value) { m_allowedOriginsHasBeenSet = true; m_allowedOrigins.push_back(value); return *this; }
72
74
78 inline bool GetEnableStrictOriginEnforcement() const{ return m_enableStrictOriginEnforcement; }
79 inline bool EnableStrictOriginEnforcementHasBeenSet() const { return m_enableStrictOriginEnforcementHasBeenSet; }
80 inline void SetEnableStrictOriginEnforcement(bool value) { m_enableStrictOriginEnforcementHasBeenSet = true; m_enableStrictOriginEnforcement = value; }
83
85
88 inline const Aws::String& GetName() const{ return m_name; }
89 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
90 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
91 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
92 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
93 inline CreatePlaybackRestrictionPolicyRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
94 inline CreatePlaybackRestrictionPolicyRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
95 inline CreatePlaybackRestrictionPolicyRequest& WithName(const char* value) { SetName(value); return *this;}
97
99
108 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
109 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
110 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
111 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
114 inline CreatePlaybackRestrictionPolicyRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
115 inline CreatePlaybackRestrictionPolicyRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
116 inline CreatePlaybackRestrictionPolicyRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
117 inline CreatePlaybackRestrictionPolicyRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
118 inline CreatePlaybackRestrictionPolicyRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
119 inline CreatePlaybackRestrictionPolicyRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
120 inline CreatePlaybackRestrictionPolicyRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
122 private:
123
124 Aws::Vector<Aws::String> m_allowedCountries;
125 bool m_allowedCountriesHasBeenSet = false;
126
127 Aws::Vector<Aws::String> m_allowedOrigins;
128 bool m_allowedOriginsHasBeenSet = false;
129
130 bool m_enableStrictOriginEnforcement;
131 bool m_enableStrictOriginEnforcementHasBeenSet = false;
132
133 Aws::String m_name;
134 bool m_nameHasBeenSet = false;
135
137 bool m_tagsHasBeenSet = false;
138 };
139
140} // namespace Model
141} // namespace IVS
142} // namespace Aws
CreatePlaybackRestrictionPolicyRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreatePlaybackRestrictionPolicyRequest & AddTags(const char *key, const char *value)
AWS_IVS_API Aws::String SerializePayload() const override
CreatePlaybackRestrictionPolicyRequest & AddTags(const char *key, Aws::String &&value)
CreatePlaybackRestrictionPolicyRequest & WithName(const char *value)
CreatePlaybackRestrictionPolicyRequest & AddAllowedOrigins(const char *value)
CreatePlaybackRestrictionPolicyRequest & AddTags(Aws::String &&key, const char *value)
CreatePlaybackRestrictionPolicyRequest & WithAllowedCountries(const Aws::Vector< Aws::String > &value)
CreatePlaybackRestrictionPolicyRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreatePlaybackRestrictionPolicyRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
CreatePlaybackRestrictionPolicyRequest & AddAllowedCountries(const char *value)
CreatePlaybackRestrictionPolicyRequest & AddTags(const Aws::String &key, const Aws::String &value)
CreatePlaybackRestrictionPolicyRequest & AddAllowedOrigins(Aws::String &&value)
CreatePlaybackRestrictionPolicyRequest & WithName(const Aws::String &value)
CreatePlaybackRestrictionPolicyRequest & AddAllowedCountries(Aws::String &&value)
CreatePlaybackRestrictionPolicyRequest & WithAllowedCountries(Aws::Vector< Aws::String > &&value)
CreatePlaybackRestrictionPolicyRequest & WithName(Aws::String &&value)
CreatePlaybackRestrictionPolicyRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreatePlaybackRestrictionPolicyRequest & AddAllowedCountries(const Aws::String &value)
CreatePlaybackRestrictionPolicyRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreatePlaybackRestrictionPolicyRequest & AddAllowedOrigins(const Aws::String &value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreatePlaybackRestrictionPolicyRequest & WithAllowedOrigins(Aws::Vector< Aws::String > &&value)
CreatePlaybackRestrictionPolicyRequest & WithAllowedOrigins(const Aws::Vector< Aws::String > &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