AWS SDK for C++  1.9.108
AWS SDK for C++
CreateVodSourceRequest.h
Go to the documentation of this file.
1 
6 #pragma once
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace MediaTailor
18 {
19 namespace Model
20 {
21 
25  {
26  public:
28 
29  // Service request name is the Operation name which will send this request out,
30  // each operation should has unique request name, so that we can get operation's name from this request.
31  // Note: this is not true for response, multiple operations may have the same response name,
32  // so we can not get operation's name from response.
33  inline virtual const char* GetServiceRequestName() const override { return "CreateVodSource"; }
34 
35  Aws::String SerializePayload() const override;
36 
37 
41  inline const Aws::Vector<HttpPackageConfiguration>& GetHttpPackageConfigurations() const{ return m_httpPackageConfigurations; }
42 
46  inline bool HttpPackageConfigurationsHasBeenSet() const { return m_httpPackageConfigurationsHasBeenSet; }
47 
51  inline void SetHttpPackageConfigurations(const Aws::Vector<HttpPackageConfiguration>& value) { m_httpPackageConfigurationsHasBeenSet = true; m_httpPackageConfigurations = value; }
52 
56  inline void SetHttpPackageConfigurations(Aws::Vector<HttpPackageConfiguration>&& value) { m_httpPackageConfigurationsHasBeenSet = true; m_httpPackageConfigurations = std::move(value); }
57 
61  inline CreateVodSourceRequest& WithHttpPackageConfigurations(const Aws::Vector<HttpPackageConfiguration>& value) { SetHttpPackageConfigurations(value); return *this;}
62 
66  inline CreateVodSourceRequest& WithHttpPackageConfigurations(Aws::Vector<HttpPackageConfiguration>&& value) { SetHttpPackageConfigurations(std::move(value)); return *this;}
67 
71  inline CreateVodSourceRequest& AddHttpPackageConfigurations(const HttpPackageConfiguration& value) { m_httpPackageConfigurationsHasBeenSet = true; m_httpPackageConfigurations.push_back(value); return *this; }
72 
76  inline CreateVodSourceRequest& AddHttpPackageConfigurations(HttpPackageConfiguration&& value) { m_httpPackageConfigurationsHasBeenSet = true; m_httpPackageConfigurations.push_back(std::move(value)); return *this; }
77 
78 
82  inline const Aws::String& GetSourceLocationName() const{ return m_sourceLocationName; }
83 
87  inline bool SourceLocationNameHasBeenSet() const { return m_sourceLocationNameHasBeenSet; }
88 
92  inline void SetSourceLocationName(const Aws::String& value) { m_sourceLocationNameHasBeenSet = true; m_sourceLocationName = value; }
93 
97  inline void SetSourceLocationName(Aws::String&& value) { m_sourceLocationNameHasBeenSet = true; m_sourceLocationName = std::move(value); }
98 
102  inline void SetSourceLocationName(const char* value) { m_sourceLocationNameHasBeenSet = true; m_sourceLocationName.assign(value); }
103 
107  inline CreateVodSourceRequest& WithSourceLocationName(const Aws::String& value) { SetSourceLocationName(value); return *this;}
108 
112  inline CreateVodSourceRequest& WithSourceLocationName(Aws::String&& value) { SetSourceLocationName(std::move(value)); return *this;}
113 
117  inline CreateVodSourceRequest& WithSourceLocationName(const char* value) { SetSourceLocationName(value); return *this;}
118 
119 
123  inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
124 
128  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
129 
133  inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
134 
138  inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
139 
143  inline CreateVodSourceRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
144 
148  inline CreateVodSourceRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
149 
153  inline CreateVodSourceRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
154 
158  inline CreateVodSourceRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
159 
163  inline CreateVodSourceRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
164 
168  inline CreateVodSourceRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
169 
173  inline CreateVodSourceRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
174 
178  inline CreateVodSourceRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
179 
183  inline CreateVodSourceRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
184 
185 
189  inline const Aws::String& GetVodSourceName() const{ return m_vodSourceName; }
190 
194  inline bool VodSourceNameHasBeenSet() const { return m_vodSourceNameHasBeenSet; }
195 
199  inline void SetVodSourceName(const Aws::String& value) { m_vodSourceNameHasBeenSet = true; m_vodSourceName = value; }
200 
204  inline void SetVodSourceName(Aws::String&& value) { m_vodSourceNameHasBeenSet = true; m_vodSourceName = std::move(value); }
205 
209  inline void SetVodSourceName(const char* value) { m_vodSourceNameHasBeenSet = true; m_vodSourceName.assign(value); }
210 
214  inline CreateVodSourceRequest& WithVodSourceName(const Aws::String& value) { SetVodSourceName(value); return *this;}
215 
219  inline CreateVodSourceRequest& WithVodSourceName(Aws::String&& value) { SetVodSourceName(std::move(value)); return *this;}
220 
224  inline CreateVodSourceRequest& WithVodSourceName(const char* value) { SetVodSourceName(value); return *this;}
225 
226  private:
227 
228  Aws::Vector<HttpPackageConfiguration> m_httpPackageConfigurations;
229  bool m_httpPackageConfigurationsHasBeenSet;
230 
231  Aws::String m_sourceLocationName;
232  bool m_sourceLocationNameHasBeenSet;
233 
235  bool m_tagsHasBeenSet;
236 
237  Aws::String m_vodSourceName;
238  bool m_vodSourceNameHasBeenSet;
239  };
240 
241 } // namespace Model
242 } // namespace MediaTailor
243 } // namespace Aws
Aws::MediaTailor::Model::CreateVodSourceRequest::SetSourceLocationName
void SetSourceLocationName(Aws::String &&value)
Definition: CreateVodSourceRequest.h:97
Aws::MediaTailor::Model::CreateVodSourceRequest::SetVodSourceName
void SetVodSourceName(const Aws::String &value)
Definition: CreateVodSourceRequest.h:199
Aws::MediaTailor::Model::CreateVodSourceRequest::AddHttpPackageConfigurations
CreateVodSourceRequest & AddHttpPackageConfigurations(const HttpPackageConfiguration &value)
Definition: CreateVodSourceRequest.h:71
Aws::MediaTailor::Model::CreateVodSourceRequest::WithSourceLocationName
CreateVodSourceRequest & WithSourceLocationName(const char *value)
Definition: CreateVodSourceRequest.h:117
AWS_MEDIATAILOR_API
#define AWS_MEDIATAILOR_API
Definition: MediaTailor_EXPORTS.h:28
Aws::MediaTailor::Model::CreateVodSourceRequest::WithSourceLocationName
CreateVodSourceRequest & WithSourceLocationName(const Aws::String &value)
Definition: CreateVodSourceRequest.h:107
Aws::MediaTailor::Model::CreateVodSourceRequest::SetSourceLocationName
void SetSourceLocationName(const char *value)
Definition: CreateVodSourceRequest.h:102
Aws::MediaTailor::Model::CreateVodSourceRequest::WithTags
CreateVodSourceRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition: CreateVodSourceRequest.h:143
Aws::MediaTailor::Model::CreateVodSourceRequest::AddTags
CreateVodSourceRequest & AddTags(Aws::String &&key, const Aws::String &value)
Definition: CreateVodSourceRequest.h:158
Aws::MediaTailor::Model::CreateVodSourceRequest::AddHttpPackageConfigurations
CreateVodSourceRequest & AddHttpPackageConfigurations(HttpPackageConfiguration &&value)
Definition: CreateVodSourceRequest.h:76
HttpPackageConfiguration.h
Aws::MediaTailor::Model::CreateVodSourceRequest::SetHttpPackageConfigurations
void SetHttpPackageConfigurations(const Aws::Vector< HttpPackageConfiguration > &value)
Definition: CreateVodSourceRequest.h:51
Aws::MediaTailor::Model::CreateVodSourceRequest::SetTags
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition: CreateVodSourceRequest.h:133
Aws::MediaTailor::Model::CreateVodSourceRequest::AddTags
CreateVodSourceRequest & AddTags(const Aws::String &key, const Aws::String &value)
Definition: CreateVodSourceRequest.h:153
Aws::MediaTailor::Model::CreateVodSourceRequest::SetVodSourceName
void SetVodSourceName(const char *value)
Definition: CreateVodSourceRequest.h:209
Aws::MediaTailor::Model::CreateVodSourceRequest::GetSourceLocationName
const Aws::String & GetSourceLocationName() const
Definition: CreateVodSourceRequest.h:82
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::MediaTailor::Model::CreateVodSourceRequest::WithVodSourceName
CreateVodSourceRequest & WithVodSourceName(Aws::String &&value)
Definition: CreateVodSourceRequest.h:219
Aws::MediaTailor::Model::CreateVodSourceRequest::WithTags
CreateVodSourceRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition: CreateVodSourceRequest.h:148
Aws::MediaTailor::Model::HttpPackageConfiguration
Definition: HttpPackageConfiguration.h:34
AWSVector.h
Aws::MediaTailor::Model::CreateVodSourceRequest::WithVodSourceName
CreateVodSourceRequest & WithVodSourceName(const Aws::String &value)
Definition: CreateVodSourceRequest.h:214
Aws::MediaTailor::Model::CreateVodSourceRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateVodSourceRequest.h:33
Aws::MediaTailor::Model::CreateVodSourceRequest::AddTags
CreateVodSourceRequest & AddTags(Aws::String &&key, const char *value)
Definition: CreateVodSourceRequest.h:178
Aws::MediaTailor::Model::CreateVodSourceRequest::WithHttpPackageConfigurations
CreateVodSourceRequest & WithHttpPackageConfigurations(const Aws::Vector< HttpPackageConfiguration > &value)
Definition: CreateVodSourceRequest.h:61
Aws::MediaTailor::Model::CreateVodSourceRequest::CreateVodSourceRequest
CreateVodSourceRequest()
Aws::MediaTailor::Model::CreateVodSourceRequest::SetVodSourceName
void SetVodSourceName(Aws::String &&value)
Definition: CreateVodSourceRequest.h:204
Aws::MediaTailor::Model::CreateVodSourceRequest::SourceLocationNameHasBeenSet
bool SourceLocationNameHasBeenSet() const
Definition: CreateVodSourceRequest.h:87
Aws::MediaTailor::Model::CreateVodSourceRequest::GetHttpPackageConfigurations
const Aws::Vector< HttpPackageConfiguration > & GetHttpPackageConfigurations() const
Definition: CreateVodSourceRequest.h:41
Aws::MediaTailor::Model::CreateVodSourceRequest
Definition: CreateVodSourceRequest.h:25
Aws::MediaTailor::Model::CreateVodSourceRequest::SetTags
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition: CreateVodSourceRequest.h:138
Aws::MediaTailor::Model::CreateVodSourceRequest::SetHttpPackageConfigurations
void SetHttpPackageConfigurations(Aws::Vector< HttpPackageConfiguration > &&value)
Definition: CreateVodSourceRequest.h:56
Aws::MediaTailor::Model::CreateVodSourceRequest::HttpPackageConfigurationsHasBeenSet
bool HttpPackageConfigurationsHasBeenSet() const
Definition: CreateVodSourceRequest.h:46
Aws::MediaTailor::MediaTailorRequest
Definition: MediaTailorRequest.h:17
Aws::MediaTailor::Model::CreateVodSourceRequest::GetVodSourceName
const Aws::String & GetVodSourceName() const
Definition: CreateVodSourceRequest.h:189
AWSString.h
MediaTailorRequest.h
Aws::MediaTailor::Model::CreateVodSourceRequest::AddTags
CreateVodSourceRequest & AddTags(Aws::String &&key, Aws::String &&value)
Definition: CreateVodSourceRequest.h:168
Aws::MediaTailor::Model::CreateVodSourceRequest::AddTags
CreateVodSourceRequest & AddTags(const Aws::String &key, Aws::String &&value)
Definition: CreateVodSourceRequest.h:163
MediaTailor_EXPORTS.h
Aws::MediaTailor::Model::CreateVodSourceRequest::WithHttpPackageConfigurations
CreateVodSourceRequest & WithHttpPackageConfigurations(Aws::Vector< HttpPackageConfiguration > &&value)
Definition: CreateVodSourceRequest.h:66
Aws::MediaTailor::Model::CreateVodSourceRequest::WithVodSourceName
CreateVodSourceRequest & WithVodSourceName(const char *value)
Definition: CreateVodSourceRequest.h:224
Aws::MediaTailor::Model::CreateVodSourceRequest::AddTags
CreateVodSourceRequest & AddTags(const char *key, const char *value)
Definition: CreateVodSourceRequest.h:183
Aws::MediaTailor::Model::CreateVodSourceRequest::AddTags
CreateVodSourceRequest & AddTags(const char *key, Aws::String &&value)
Definition: CreateVodSourceRequest.h:173
Aws::MediaTailor::Model::CreateVodSourceRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::MediaTailor::Model::CreateVodSourceRequest::VodSourceNameHasBeenSet
bool VodSourceNameHasBeenSet() const
Definition: CreateVodSourceRequest.h:194
Aws
Definition: AccessManagementClient.h:15
Aws::MediaTailor::Model::CreateVodSourceRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateVodSourceRequest.h:128
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::MediaTailor::Model::CreateVodSourceRequest::WithSourceLocationName
CreateVodSourceRequest & WithSourceLocationName(Aws::String &&value)
Definition: CreateVodSourceRequest.h:112
Aws::MediaTailor::Model::CreateVodSourceRequest::SetSourceLocationName
void SetSourceLocationName(const Aws::String &value)
Definition: CreateVodSourceRequest.h:92
AWSMap.h
Aws::MediaTailor::Model::CreateVodSourceRequest::GetTags
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition: CreateVodSourceRequest.h:123
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19