AWS SDK for C++  1.9.158
AWS SDK for C++
CreateSourceLocationRequest.h
Go to the documentation of this file.
1 
6 #pragma once
14 #include <utility>
15 
16 namespace Aws
17 {
18 namespace MediaTailor
19 {
20 namespace Model
21 {
22 
26  {
27  public:
29 
30  // Service request name is the Operation name which will send this request out,
31  // each operation should has unique request name, so that we can get operation's name from this request.
32  // Note: this is not true for response, multiple operations may have the same response name,
33  // so we can not get operation's name from response.
34  inline virtual const char* GetServiceRequestName() const override { return "CreateSourceLocation"; }
35 
36  Aws::String SerializePayload() const override;
37 
38 
43  inline const AccessConfiguration& GetAccessConfiguration() const{ return m_accessConfiguration; }
44 
49  inline bool AccessConfigurationHasBeenSet() const { return m_accessConfigurationHasBeenSet; }
50 
55  inline void SetAccessConfiguration(const AccessConfiguration& value) { m_accessConfigurationHasBeenSet = true; m_accessConfiguration = value; }
56 
61  inline void SetAccessConfiguration(AccessConfiguration&& value) { m_accessConfigurationHasBeenSet = true; m_accessConfiguration = std::move(value); }
62 
67  inline CreateSourceLocationRequest& WithAccessConfiguration(const AccessConfiguration& value) { SetAccessConfiguration(value); return *this;}
68 
73  inline CreateSourceLocationRequest& WithAccessConfiguration(AccessConfiguration&& value) { SetAccessConfiguration(std::move(value)); return *this;}
74 
75 
79  inline const DefaultSegmentDeliveryConfiguration& GetDefaultSegmentDeliveryConfiguration() const{ return m_defaultSegmentDeliveryConfiguration; }
80 
84  inline bool DefaultSegmentDeliveryConfigurationHasBeenSet() const { return m_defaultSegmentDeliveryConfigurationHasBeenSet; }
85 
89  inline void SetDefaultSegmentDeliveryConfiguration(const DefaultSegmentDeliveryConfiguration& value) { m_defaultSegmentDeliveryConfigurationHasBeenSet = true; m_defaultSegmentDeliveryConfiguration = value; }
90 
94  inline void SetDefaultSegmentDeliveryConfiguration(DefaultSegmentDeliveryConfiguration&& value) { m_defaultSegmentDeliveryConfigurationHasBeenSet = true; m_defaultSegmentDeliveryConfiguration = std::move(value); }
95 
99  inline CreateSourceLocationRequest& WithDefaultSegmentDeliveryConfiguration(const DefaultSegmentDeliveryConfiguration& value) { SetDefaultSegmentDeliveryConfiguration(value); return *this;}
100 
104  inline CreateSourceLocationRequest& WithDefaultSegmentDeliveryConfiguration(DefaultSegmentDeliveryConfiguration&& value) { SetDefaultSegmentDeliveryConfiguration(std::move(value)); return *this;}
105 
106 
110  inline const HttpConfiguration& GetHttpConfiguration() const{ return m_httpConfiguration; }
111 
115  inline bool HttpConfigurationHasBeenSet() const { return m_httpConfigurationHasBeenSet; }
116 
120  inline void SetHttpConfiguration(const HttpConfiguration& value) { m_httpConfigurationHasBeenSet = true; m_httpConfiguration = value; }
121 
125  inline void SetHttpConfiguration(HttpConfiguration&& value) { m_httpConfigurationHasBeenSet = true; m_httpConfiguration = std::move(value); }
126 
130  inline CreateSourceLocationRequest& WithHttpConfiguration(const HttpConfiguration& value) { SetHttpConfiguration(value); return *this;}
131 
135  inline CreateSourceLocationRequest& WithHttpConfiguration(HttpConfiguration&& value) { SetHttpConfiguration(std::move(value)); return *this;}
136 
137 
141  inline const Aws::String& GetSourceLocationName() const{ return m_sourceLocationName; }
142 
146  inline bool SourceLocationNameHasBeenSet() const { return m_sourceLocationNameHasBeenSet; }
147 
151  inline void SetSourceLocationName(const Aws::String& value) { m_sourceLocationNameHasBeenSet = true; m_sourceLocationName = value; }
152 
156  inline void SetSourceLocationName(Aws::String&& value) { m_sourceLocationNameHasBeenSet = true; m_sourceLocationName = std::move(value); }
157 
161  inline void SetSourceLocationName(const char* value) { m_sourceLocationNameHasBeenSet = true; m_sourceLocationName.assign(value); }
162 
166  inline CreateSourceLocationRequest& WithSourceLocationName(const Aws::String& value) { SetSourceLocationName(value); return *this;}
167 
171  inline CreateSourceLocationRequest& WithSourceLocationName(Aws::String&& value) { SetSourceLocationName(std::move(value)); return *this;}
172 
176  inline CreateSourceLocationRequest& WithSourceLocationName(const char* value) { SetSourceLocationName(value); return *this;}
177 
178 
182  inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
183 
187  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
188 
192  inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
193 
197  inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
198 
202  inline CreateSourceLocationRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
203 
207  inline CreateSourceLocationRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
208 
212  inline CreateSourceLocationRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
213 
217  inline CreateSourceLocationRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
218 
222  inline CreateSourceLocationRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
223 
227  inline CreateSourceLocationRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
228 
232  inline CreateSourceLocationRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
233 
237  inline CreateSourceLocationRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
238 
242  inline CreateSourceLocationRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
243 
244  private:
245 
246  AccessConfiguration m_accessConfiguration;
247  bool m_accessConfigurationHasBeenSet;
248 
249  DefaultSegmentDeliveryConfiguration m_defaultSegmentDeliveryConfiguration;
250  bool m_defaultSegmentDeliveryConfigurationHasBeenSet;
251 
252  HttpConfiguration m_httpConfiguration;
253  bool m_httpConfigurationHasBeenSet;
254 
255  Aws::String m_sourceLocationName;
256  bool m_sourceLocationNameHasBeenSet;
257 
259  bool m_tagsHasBeenSet;
260  };
261 
262 } // namespace Model
263 } // namespace MediaTailor
264 } // namespace Aws
Aws::MediaTailor::Model::CreateSourceLocationRequest::AddTags
CreateSourceLocationRequest & AddTags(const char *key, const char *value)
Definition: CreateSourceLocationRequest.h:242
HttpConfiguration.h
Aws::MediaTailor::Model::CreateSourceLocationRequest::AddTags
CreateSourceLocationRequest & AddTags(Aws::String &&key, const char *value)
Definition: CreateSourceLocationRequest.h:237
Aws::MediaTailor::Model::CreateSourceLocationRequest::CreateSourceLocationRequest
CreateSourceLocationRequest()
Aws::MediaTailor::Model::CreateSourceLocationRequest::WithSourceLocationName
CreateSourceLocationRequest & WithSourceLocationName(const Aws::String &value)
Definition: CreateSourceLocationRequest.h:166
Aws::MediaTailor::Model::CreateSourceLocationRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateSourceLocationRequest.h:34
AWS_MEDIATAILOR_API
#define AWS_MEDIATAILOR_API
Definition: MediaTailor_EXPORTS.h:28
Aws::MediaTailor::Model::CreateSourceLocationRequest::WithHttpConfiguration
CreateSourceLocationRequest & WithHttpConfiguration(const HttpConfiguration &value)
Definition: CreateSourceLocationRequest.h:130
Aws::MediaTailor::Model::CreateSourceLocationRequest::HttpConfigurationHasBeenSet
bool HttpConfigurationHasBeenSet() const
Definition: CreateSourceLocationRequest.h:115
Aws::MediaTailor::Model::CreateSourceLocationRequest::SetHttpConfiguration
void SetHttpConfiguration(const HttpConfiguration &value)
Definition: CreateSourceLocationRequest.h:120
Aws::MediaTailor::Model::CreateSourceLocationRequest::GetAccessConfiguration
const AccessConfiguration & GetAccessConfiguration() const
Definition: CreateSourceLocationRequest.h:43
Aws::MediaTailor::Model::CreateSourceLocationRequest::SetTags
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition: CreateSourceLocationRequest.h:197
Aws::MediaTailor::Model::CreateSourceLocationRequest::SetSourceLocationName
void SetSourceLocationName(const Aws::String &value)
Definition: CreateSourceLocationRequest.h:151
Aws::MediaTailor::Model::CreateSourceLocationRequest::WithSourceLocationName
CreateSourceLocationRequest & WithSourceLocationName(Aws::String &&value)
Definition: CreateSourceLocationRequest.h:171
Aws::MediaTailor::Model::CreateSourceLocationRequest::SetDefaultSegmentDeliveryConfiguration
void SetDefaultSegmentDeliveryConfiguration(DefaultSegmentDeliveryConfiguration &&value)
Definition: CreateSourceLocationRequest.h:94
Aws::MediaTailor::Model::CreateSourceLocationRequest::SourceLocationNameHasBeenSet
bool SourceLocationNameHasBeenSet() const
Definition: CreateSourceLocationRequest.h:146
Aws::MediaTailor::Model::CreateSourceLocationRequest
Definition: CreateSourceLocationRequest.h:26
Aws::MediaTailor::Model::CreateSourceLocationRequest::GetHttpConfiguration
const HttpConfiguration & GetHttpConfiguration() const
Definition: CreateSourceLocationRequest.h:110
Aws::MediaTailor::Model::CreateSourceLocationRequest::WithTags
CreateSourceLocationRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition: CreateSourceLocationRequest.h:207
Aws::MediaTailor::Model::CreateSourceLocationRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::MediaTailor::Model::CreateSourceLocationRequest::WithTags
CreateSourceLocationRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition: CreateSourceLocationRequest.h:202
Aws::MediaTailor::Model::CreateSourceLocationRequest::WithSourceLocationName
CreateSourceLocationRequest & WithSourceLocationName(const char *value)
Definition: CreateSourceLocationRequest.h:176
Aws::MediaTailor::Model::CreateSourceLocationRequest::AddTags
CreateSourceLocationRequest & AddTags(const char *key, Aws::String &&value)
Definition: CreateSourceLocationRequest.h:232
Aws::MediaTailor::Model::CreateSourceLocationRequest::AddTags
CreateSourceLocationRequest & AddTags(Aws::String &&key, Aws::String &&value)
Definition: CreateSourceLocationRequest.h:227
Aws::MediaTailor::Model::CreateSourceLocationRequest::WithHttpConfiguration
CreateSourceLocationRequest & WithHttpConfiguration(HttpConfiguration &&value)
Definition: CreateSourceLocationRequest.h:135
Aws::MediaTailor::Model::CreateSourceLocationRequest::WithDefaultSegmentDeliveryConfiguration
CreateSourceLocationRequest & WithDefaultSegmentDeliveryConfiguration(DefaultSegmentDeliveryConfiguration &&value)
Definition: CreateSourceLocationRequest.h:104
Aws::MediaTailor::Model::CreateSourceLocationRequest::WithDefaultSegmentDeliveryConfiguration
CreateSourceLocationRequest & WithDefaultSegmentDeliveryConfiguration(const DefaultSegmentDeliveryConfiguration &value)
Definition: CreateSourceLocationRequest.h:99
Aws::MediaTailor::Model::CreateSourceLocationRequest::GetTags
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition: CreateSourceLocationRequest.h:182
Aws::MediaTailor::Model::AccessConfiguration
Definition: AccessConfiguration.h:33
Aws::MediaTailor::Model::CreateSourceLocationRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateSourceLocationRequest.h:187
Aws::MediaTailor::MediaTailorRequest
Definition: MediaTailorRequest.h:17
Aws::MediaTailor::Model::CreateSourceLocationRequest::SetSourceLocationName
void SetSourceLocationName(const char *value)
Definition: CreateSourceLocationRequest.h:161
AccessConfiguration.h
AWSString.h
MediaTailorRequest.h
Aws::MediaTailor::Model::CreateSourceLocationRequest::WithAccessConfiguration
CreateSourceLocationRequest & WithAccessConfiguration(const AccessConfiguration &value)
Definition: CreateSourceLocationRequest.h:67
Aws::MediaTailor::Model::CreateSourceLocationRequest::SetAccessConfiguration
void SetAccessConfiguration(AccessConfiguration &&value)
Definition: CreateSourceLocationRequest.h:61
Aws::MediaTailor::Model::CreateSourceLocationRequest::GetDefaultSegmentDeliveryConfiguration
const DefaultSegmentDeliveryConfiguration & GetDefaultSegmentDeliveryConfiguration() const
Definition: CreateSourceLocationRequest.h:79
Aws::MediaTailor::Model::HttpConfiguration
Definition: HttpConfiguration.h:32
MediaTailor_EXPORTS.h
Aws::MediaTailor::Model::DefaultSegmentDeliveryConfiguration
Definition: DefaultSegmentDeliveryConfiguration.h:38
Aws::MediaTailor::Model::CreateSourceLocationRequest::WithAccessConfiguration
CreateSourceLocationRequest & WithAccessConfiguration(AccessConfiguration &&value)
Definition: CreateSourceLocationRequest.h:73
Aws::MediaTailor::Model::CreateSourceLocationRequest::AddTags
CreateSourceLocationRequest & AddTags(const Aws::String &key, const Aws::String &value)
Definition: CreateSourceLocationRequest.h:212
Aws::MediaTailor::Model::CreateSourceLocationRequest::SetDefaultSegmentDeliveryConfiguration
void SetDefaultSegmentDeliveryConfiguration(const DefaultSegmentDeliveryConfiguration &value)
Definition: CreateSourceLocationRequest.h:89
Aws::MediaTailor::Model::CreateSourceLocationRequest::AddTags
CreateSourceLocationRequest & AddTags(const Aws::String &key, Aws::String &&value)
Definition: CreateSourceLocationRequest.h:222
Aws
Definition: AccessManagementClient.h:15
Aws::MediaTailor::Model::CreateSourceLocationRequest::SetHttpConfiguration
void SetHttpConfiguration(HttpConfiguration &&value)
Definition: CreateSourceLocationRequest.h:125
Aws::MediaTailor::Model::CreateSourceLocationRequest::AddTags
CreateSourceLocationRequest & AddTags(Aws::String &&key, const Aws::String &value)
Definition: CreateSourceLocationRequest.h:217
Aws::MediaTailor::Model::CreateSourceLocationRequest::SetAccessConfiguration
void SetAccessConfiguration(const AccessConfiguration &value)
Definition: CreateSourceLocationRequest.h:55
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::MediaTailor::Model::CreateSourceLocationRequest::AccessConfigurationHasBeenSet
bool AccessConfigurationHasBeenSet() const
Definition: CreateSourceLocationRequest.h:49
DefaultSegmentDeliveryConfiguration.h
Aws::MediaTailor::Model::CreateSourceLocationRequest::GetSourceLocationName
const Aws::String & GetSourceLocationName() const
Definition: CreateSourceLocationRequest.h:141
AWSMap.h
Aws::MediaTailor::Model::CreateSourceLocationRequest::SetSourceLocationName
void SetSourceLocationName(Aws::String &&value)
Definition: CreateSourceLocationRequest.h:156
Aws::MediaTailor::Model::CreateSourceLocationRequest::DefaultSegmentDeliveryConfigurationHasBeenSet
bool DefaultSegmentDeliveryConfigurationHasBeenSet() const
Definition: CreateSourceLocationRequest.h:84
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
Aws::MediaTailor::Model::CreateSourceLocationRequest::SetTags
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition: CreateSourceLocationRequest.h:192