AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateVodSourceRequest.h
1
6#pragma once
7#include <aws/mediatailor/MediaTailor_EXPORTS.h>
8#include <aws/mediatailor/MediaTailorRequest.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 <aws/mediatailor/model/HttpPackageConfiguration.h>
13#include <utility>
14
15namespace Aws
16{
17namespace MediaTailor
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_MEDIATAILOR_API CreateVodSourceRequest();
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_MEDIATAILOR_API Aws::String SerializePayload() const override;
36
37
39
42 inline const Aws::Vector<HttpPackageConfiguration>& GetHttpPackageConfigurations() const{ return m_httpPackageConfigurations; }
43 inline bool HttpPackageConfigurationsHasBeenSet() const { return m_httpPackageConfigurationsHasBeenSet; }
44 inline void SetHttpPackageConfigurations(const Aws::Vector<HttpPackageConfiguration>& value) { m_httpPackageConfigurationsHasBeenSet = true; m_httpPackageConfigurations = value; }
45 inline void SetHttpPackageConfigurations(Aws::Vector<HttpPackageConfiguration>&& value) { m_httpPackageConfigurationsHasBeenSet = true; m_httpPackageConfigurations = std::move(value); }
48 inline CreateVodSourceRequest& AddHttpPackageConfigurations(const HttpPackageConfiguration& value) { m_httpPackageConfigurationsHasBeenSet = true; m_httpPackageConfigurations.push_back(value); return *this; }
49 inline CreateVodSourceRequest& AddHttpPackageConfigurations(HttpPackageConfiguration&& value) { m_httpPackageConfigurationsHasBeenSet = true; m_httpPackageConfigurations.push_back(std::move(value)); return *this; }
51
53
56 inline const Aws::String& GetSourceLocationName() const{ return m_sourceLocationName; }
57 inline bool SourceLocationNameHasBeenSet() const { return m_sourceLocationNameHasBeenSet; }
58 inline void SetSourceLocationName(const Aws::String& value) { m_sourceLocationNameHasBeenSet = true; m_sourceLocationName = value; }
59 inline void SetSourceLocationName(Aws::String&& value) { m_sourceLocationNameHasBeenSet = true; m_sourceLocationName = std::move(value); }
60 inline void SetSourceLocationName(const char* value) { m_sourceLocationNameHasBeenSet = true; m_sourceLocationName.assign(value); }
62 inline CreateVodSourceRequest& WithSourceLocationName(Aws::String&& value) { SetSourceLocationName(std::move(value)); return *this;}
63 inline CreateVodSourceRequest& WithSourceLocationName(const char* value) { SetSourceLocationName(value); return *this;}
65
67
74 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
75 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
76 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
77 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
78 inline CreateVodSourceRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
79 inline CreateVodSourceRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
80 inline CreateVodSourceRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
81 inline CreateVodSourceRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
82 inline CreateVodSourceRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
83 inline CreateVodSourceRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
84 inline CreateVodSourceRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
85 inline CreateVodSourceRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
86 inline CreateVodSourceRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
88
90
93 inline const Aws::String& GetVodSourceName() const{ return m_vodSourceName; }
94 inline bool VodSourceNameHasBeenSet() const { return m_vodSourceNameHasBeenSet; }
95 inline void SetVodSourceName(const Aws::String& value) { m_vodSourceNameHasBeenSet = true; m_vodSourceName = value; }
96 inline void SetVodSourceName(Aws::String&& value) { m_vodSourceNameHasBeenSet = true; m_vodSourceName = std::move(value); }
97 inline void SetVodSourceName(const char* value) { m_vodSourceNameHasBeenSet = true; m_vodSourceName.assign(value); }
98 inline CreateVodSourceRequest& WithVodSourceName(const Aws::String& value) { SetVodSourceName(value); return *this;}
99 inline CreateVodSourceRequest& WithVodSourceName(Aws::String&& value) { SetVodSourceName(std::move(value)); return *this;}
100 inline CreateVodSourceRequest& WithVodSourceName(const char* value) { SetVodSourceName(value); return *this;}
102 private:
103
104 Aws::Vector<HttpPackageConfiguration> m_httpPackageConfigurations;
105 bool m_httpPackageConfigurationsHasBeenSet = false;
106
107 Aws::String m_sourceLocationName;
108 bool m_sourceLocationNameHasBeenSet = false;
109
111 bool m_tagsHasBeenSet = false;
112
113 Aws::String m_vodSourceName;
114 bool m_vodSourceNameHasBeenSet = false;
115 };
116
117} // namespace Model
118} // namespace MediaTailor
119} // namespace Aws
CreateVodSourceRequest & WithVodSourceName(Aws::String &&value)
CreateVodSourceRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateVodSourceRequest & WithSourceLocationName(Aws::String &&value)
AWS_MEDIATAILOR_API Aws::String SerializePayload() const override
CreateVodSourceRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateVodSourceRequest & AddHttpPackageConfigurations(HttpPackageConfiguration &&value)
const Aws::Vector< HttpPackageConfiguration > & GetHttpPackageConfigurations() const
CreateVodSourceRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreateVodSourceRequest & WithHttpPackageConfigurations(Aws::Vector< HttpPackageConfiguration > &&value)
void SetHttpPackageConfigurations(const Aws::Vector< HttpPackageConfiguration > &value)
CreateVodSourceRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreateVodSourceRequest & AddTags(Aws::String &&key, const char *value)
void SetHttpPackageConfigurations(Aws::Vector< HttpPackageConfiguration > &&value)
CreateVodSourceRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateVodSourceRequest & AddHttpPackageConfigurations(const HttpPackageConfiguration &value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateVodSourceRequest & AddTags(const Aws::String &key, const Aws::String &value)
CreateVodSourceRequest & WithVodSourceName(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
CreateVodSourceRequest & WithHttpPackageConfigurations(const Aws::Vector< HttpPackageConfiguration > &value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateVodSourceRequest & WithVodSourceName(const char *value)
CreateVodSourceRequest & WithSourceLocationName(const Aws::String &value)
CreateVodSourceRequest & AddTags(const char *key, const char *value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateVodSourceRequest & AddTags(const char *key, Aws::String &&value)
CreateVodSourceRequest & WithSourceLocationName(const char *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