AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateLiveSourceRequest.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 CreateLiveSourceRequest();
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 "CreateLiveSource"; }
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 CreateLiveSourceRequest& AddHttpPackageConfigurations(const HttpPackageConfiguration& value) { m_httpPackageConfigurationsHasBeenSet = true; m_httpPackageConfigurations.push_back(value); return *this; }
49 inline CreateLiveSourceRequest& AddHttpPackageConfigurations(HttpPackageConfiguration&& value) { m_httpPackageConfigurationsHasBeenSet = true; m_httpPackageConfigurations.push_back(std::move(value)); return *this; }
51
53
56 inline const Aws::String& GetLiveSourceName() const{ return m_liveSourceName; }
57 inline bool LiveSourceNameHasBeenSet() const { return m_liveSourceNameHasBeenSet; }
58 inline void SetLiveSourceName(const Aws::String& value) { m_liveSourceNameHasBeenSet = true; m_liveSourceName = value; }
59 inline void SetLiveSourceName(Aws::String&& value) { m_liveSourceNameHasBeenSet = true; m_liveSourceName = std::move(value); }
60 inline void SetLiveSourceName(const char* value) { m_liveSourceNameHasBeenSet = true; m_liveSourceName.assign(value); }
61 inline CreateLiveSourceRequest& WithLiveSourceName(const Aws::String& value) { SetLiveSourceName(value); return *this;}
62 inline CreateLiveSourceRequest& WithLiveSourceName(Aws::String&& value) { SetLiveSourceName(std::move(value)); return *this;}
63 inline CreateLiveSourceRequest& WithLiveSourceName(const char* value) { SetLiveSourceName(value); return *this;}
65
67
70 inline const Aws::String& GetSourceLocationName() const{ return m_sourceLocationName; }
71 inline bool SourceLocationNameHasBeenSet() const { return m_sourceLocationNameHasBeenSet; }
72 inline void SetSourceLocationName(const Aws::String& value) { m_sourceLocationNameHasBeenSet = true; m_sourceLocationName = value; }
73 inline void SetSourceLocationName(Aws::String&& value) { m_sourceLocationNameHasBeenSet = true; m_sourceLocationName = std::move(value); }
74 inline void SetSourceLocationName(const char* value) { m_sourceLocationNameHasBeenSet = true; m_sourceLocationName.assign(value); }
76 inline CreateLiveSourceRequest& WithSourceLocationName(Aws::String&& value) { SetSourceLocationName(std::move(value)); return *this;}
77 inline CreateLiveSourceRequest& WithSourceLocationName(const char* value) { SetSourceLocationName(value); return *this;}
79
81
88 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
89 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
90 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
91 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
92 inline CreateLiveSourceRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
93 inline CreateLiveSourceRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
94 inline CreateLiveSourceRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
95 inline CreateLiveSourceRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
96 inline CreateLiveSourceRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
97 inline CreateLiveSourceRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
98 inline CreateLiveSourceRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
99 inline CreateLiveSourceRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
100 inline CreateLiveSourceRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
102 private:
103
104 Aws::Vector<HttpPackageConfiguration> m_httpPackageConfigurations;
105 bool m_httpPackageConfigurationsHasBeenSet = false;
106
107 Aws::String m_liveSourceName;
108 bool m_liveSourceNameHasBeenSet = false;
109
110 Aws::String m_sourceLocationName;
111 bool m_sourceLocationNameHasBeenSet = false;
112
114 bool m_tagsHasBeenSet = false;
115 };
116
117} // namespace Model
118} // namespace MediaTailor
119} // namespace Aws
CreateLiveSourceRequest & WithSourceLocationName(Aws::String &&value)
CreateLiveSourceRequest & WithSourceLocationName(const Aws::String &value)
CreateLiveSourceRequest & AddTags(const Aws::String &key, const Aws::String &value)
CreateLiveSourceRequest & WithLiveSourceName(Aws::String &&value)
CreateLiveSourceRequest & WithHttpPackageConfigurations(const Aws::Vector< HttpPackageConfiguration > &value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateLiveSourceRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateLiveSourceRequest & WithHttpPackageConfigurations(Aws::Vector< HttpPackageConfiguration > &&value)
void SetHttpPackageConfigurations(const Aws::Vector< HttpPackageConfiguration > &value)
CreateLiveSourceRequest & AddTags(Aws::String &&key, Aws::String &&value)
void SetHttpPackageConfigurations(Aws::Vector< HttpPackageConfiguration > &&value)
CreateLiveSourceRequest & AddTags(const char *key, Aws::String &&value)
CreateLiveSourceRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateLiveSourceRequest & WithSourceLocationName(const char *value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateLiveSourceRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateLiveSourceRequest & AddTags(const Aws::String &key, Aws::String &&value)
AWS_MEDIATAILOR_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
const Aws::Vector< HttpPackageConfiguration > & GetHttpPackageConfigurations() const
CreateLiveSourceRequest & AddHttpPackageConfigurations(const HttpPackageConfiguration &value)
CreateLiveSourceRequest & AddTags(const char *key, const char *value)
CreateLiveSourceRequest & AddTags(Aws::String &&key, const char *value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateLiveSourceRequest & AddHttpPackageConfigurations(HttpPackageConfiguration &&value)
CreateLiveSourceRequest & WithLiveSourceName(const char *value)
CreateLiveSourceRequest & WithLiveSourceName(const Aws::String &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