AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename HttpPackageConfigurationsT = Aws::Vector<HttpPackageConfiguration>>
45 void SetHttpPackageConfigurations(HttpPackageConfigurationsT&& value) { m_httpPackageConfigurationsHasBeenSet = true; m_httpPackageConfigurations = std::forward<HttpPackageConfigurationsT>(value); }
46 template<typename HttpPackageConfigurationsT = Aws::Vector<HttpPackageConfiguration>>
47 CreateVodSourceRequest& WithHttpPackageConfigurations(HttpPackageConfigurationsT&& value) { SetHttpPackageConfigurations(std::forward<HttpPackageConfigurationsT>(value)); return *this;}
48 template<typename HttpPackageConfigurationsT = HttpPackageConfiguration>
49 CreateVodSourceRequest& AddHttpPackageConfigurations(HttpPackageConfigurationsT&& value) { m_httpPackageConfigurationsHasBeenSet = true; m_httpPackageConfigurations.emplace_back(std::forward<HttpPackageConfigurationsT>(value)); return *this; }
51
53
56 inline const Aws::String& GetSourceLocationName() const { return m_sourceLocationName; }
57 inline bool SourceLocationNameHasBeenSet() const { return m_sourceLocationNameHasBeenSet; }
58 template<typename SourceLocationNameT = Aws::String>
59 void SetSourceLocationName(SourceLocationNameT&& value) { m_sourceLocationNameHasBeenSet = true; m_sourceLocationName = std::forward<SourceLocationNameT>(value); }
60 template<typename SourceLocationNameT = Aws::String>
61 CreateVodSourceRequest& WithSourceLocationName(SourceLocationNameT&& value) { SetSourceLocationName(std::forward<SourceLocationNameT>(value)); return *this;}
63
65
72 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
73 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
74 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
75 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
76 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
77 CreateVodSourceRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
78 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
79 CreateVodSourceRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
80 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
81 }
83
85
88 inline const Aws::String& GetVodSourceName() const { return m_vodSourceName; }
89 inline bool VodSourceNameHasBeenSet() const { return m_vodSourceNameHasBeenSet; }
90 template<typename VodSourceNameT = Aws::String>
91 void SetVodSourceName(VodSourceNameT&& value) { m_vodSourceNameHasBeenSet = true; m_vodSourceName = std::forward<VodSourceNameT>(value); }
92 template<typename VodSourceNameT = Aws::String>
93 CreateVodSourceRequest& WithVodSourceName(VodSourceNameT&& value) { SetVodSourceName(std::forward<VodSourceNameT>(value)); return *this;}
95 private:
96
97 Aws::Vector<HttpPackageConfiguration> m_httpPackageConfigurations;
98 bool m_httpPackageConfigurationsHasBeenSet = false;
99
100 Aws::String m_sourceLocationName;
101 bool m_sourceLocationNameHasBeenSet = false;
102
104 bool m_tagsHasBeenSet = false;
105
106 Aws::String m_vodSourceName;
107 bool m_vodSourceNameHasBeenSet = false;
108 };
109
110} // namespace Model
111} // namespace MediaTailor
112} // namespace Aws
CreateVodSourceRequest & WithHttpPackageConfigurations(HttpPackageConfigurationsT &&value)
AWS_MEDIATAILOR_API Aws::String SerializePayload() const override
const Aws::Vector< HttpPackageConfiguration > & GetHttpPackageConfigurations() const
void SetHttpPackageConfigurations(HttpPackageConfigurationsT &&value)
CreateVodSourceRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateVodSourceRequest & AddHttpPackageConfigurations(HttpPackageConfigurationsT &&value)
void SetSourceLocationName(SourceLocationNameT &&value)
virtual const char * GetServiceRequestName() const override
CreateVodSourceRequest & WithTags(TagsT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateVodSourceRequest & WithVodSourceName(VodSourceNameT &&value)
CreateVodSourceRequest & WithSourceLocationName(SourceLocationNameT &&value)
AWS_MEDIATAILOR_API CreateVodSourceRequest()=default
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