AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CreateSourceLocationRequest.h
1
6#pragma once
7#include <aws/mediatailor/MediaTailor_EXPORTS.h>
8#include <aws/mediatailor/MediaTailorRequest.h>
9#include <aws/mediatailor/model/AccessConfiguration.h>
10#include <aws/mediatailor/model/DefaultSegmentDeliveryConfiguration.h>
11#include <aws/mediatailor/model/HttpConfiguration.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14#include <aws/core/utils/memory/stl/AWSMap.h>
15#include <aws/mediatailor/model/SegmentDeliveryConfiguration.h>
16#include <utility>
17
18namespace Aws
19{
20namespace MediaTailor
21{
22namespace Model
23{
24
28 {
29 public:
30 AWS_MEDIATAILOR_API CreateSourceLocationRequest() = default;
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "CreateSourceLocation"; }
37
38 AWS_MEDIATAILOR_API Aws::String SerializePayload() const override;
39
40
42
46 inline const AccessConfiguration& GetAccessConfiguration() const { return m_accessConfiguration; }
47 inline bool AccessConfigurationHasBeenSet() const { return m_accessConfigurationHasBeenSet; }
48 template<typename AccessConfigurationT = AccessConfiguration>
49 void SetAccessConfiguration(AccessConfigurationT&& value) { m_accessConfigurationHasBeenSet = true; m_accessConfiguration = std::forward<AccessConfigurationT>(value); }
50 template<typename AccessConfigurationT = AccessConfiguration>
51 CreateSourceLocationRequest& WithAccessConfiguration(AccessConfigurationT&& value) { SetAccessConfiguration(std::forward<AccessConfigurationT>(value)); return *this;}
53
55
58 inline const DefaultSegmentDeliveryConfiguration& GetDefaultSegmentDeliveryConfiguration() const { return m_defaultSegmentDeliveryConfiguration; }
59 inline bool DefaultSegmentDeliveryConfigurationHasBeenSet() const { return m_defaultSegmentDeliveryConfigurationHasBeenSet; }
60 template<typename DefaultSegmentDeliveryConfigurationT = DefaultSegmentDeliveryConfiguration>
61 void SetDefaultSegmentDeliveryConfiguration(DefaultSegmentDeliveryConfigurationT&& value) { m_defaultSegmentDeliveryConfigurationHasBeenSet = true; m_defaultSegmentDeliveryConfiguration = std::forward<DefaultSegmentDeliveryConfigurationT>(value); }
62 template<typename DefaultSegmentDeliveryConfigurationT = DefaultSegmentDeliveryConfiguration>
63 CreateSourceLocationRequest& WithDefaultSegmentDeliveryConfiguration(DefaultSegmentDeliveryConfigurationT&& value) { SetDefaultSegmentDeliveryConfiguration(std::forward<DefaultSegmentDeliveryConfigurationT>(value)); return *this;}
65
67
70 inline const HttpConfiguration& GetHttpConfiguration() const { return m_httpConfiguration; }
71 inline bool HttpConfigurationHasBeenSet() const { return m_httpConfigurationHasBeenSet; }
72 template<typename HttpConfigurationT = HttpConfiguration>
73 void SetHttpConfiguration(HttpConfigurationT&& value) { m_httpConfigurationHasBeenSet = true; m_httpConfiguration = std::forward<HttpConfigurationT>(value); }
74 template<typename HttpConfigurationT = HttpConfiguration>
75 CreateSourceLocationRequest& WithHttpConfiguration(HttpConfigurationT&& value) { SetHttpConfiguration(std::forward<HttpConfigurationT>(value)); return *this;}
77
79
83 inline const Aws::Vector<SegmentDeliveryConfiguration>& GetSegmentDeliveryConfigurations() const { return m_segmentDeliveryConfigurations; }
84 inline bool SegmentDeliveryConfigurationsHasBeenSet() const { return m_segmentDeliveryConfigurationsHasBeenSet; }
85 template<typename SegmentDeliveryConfigurationsT = Aws::Vector<SegmentDeliveryConfiguration>>
86 void SetSegmentDeliveryConfigurations(SegmentDeliveryConfigurationsT&& value) { m_segmentDeliveryConfigurationsHasBeenSet = true; m_segmentDeliveryConfigurations = std::forward<SegmentDeliveryConfigurationsT>(value); }
87 template<typename SegmentDeliveryConfigurationsT = Aws::Vector<SegmentDeliveryConfiguration>>
88 CreateSourceLocationRequest& WithSegmentDeliveryConfigurations(SegmentDeliveryConfigurationsT&& value) { SetSegmentDeliveryConfigurations(std::forward<SegmentDeliveryConfigurationsT>(value)); return *this;}
89 template<typename SegmentDeliveryConfigurationsT = SegmentDeliveryConfiguration>
90 CreateSourceLocationRequest& AddSegmentDeliveryConfigurations(SegmentDeliveryConfigurationsT&& value) { m_segmentDeliveryConfigurationsHasBeenSet = true; m_segmentDeliveryConfigurations.emplace_back(std::forward<SegmentDeliveryConfigurationsT>(value)); return *this; }
92
94
97 inline const Aws::String& GetSourceLocationName() const { return m_sourceLocationName; }
98 inline bool SourceLocationNameHasBeenSet() const { return m_sourceLocationNameHasBeenSet; }
99 template<typename SourceLocationNameT = Aws::String>
100 void SetSourceLocationName(SourceLocationNameT&& value) { m_sourceLocationNameHasBeenSet = true; m_sourceLocationName = std::forward<SourceLocationNameT>(value); }
101 template<typename SourceLocationNameT = Aws::String>
102 CreateSourceLocationRequest& WithSourceLocationName(SourceLocationNameT&& value) { SetSourceLocationName(std::forward<SourceLocationNameT>(value)); return *this;}
104
106
113 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
114 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
115 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
116 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
117 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
118 CreateSourceLocationRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
119 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
120 CreateSourceLocationRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
121 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
122 }
124 private:
125
126 AccessConfiguration m_accessConfiguration;
127 bool m_accessConfigurationHasBeenSet = false;
128
129 DefaultSegmentDeliveryConfiguration m_defaultSegmentDeliveryConfiguration;
130 bool m_defaultSegmentDeliveryConfigurationHasBeenSet = false;
131
132 HttpConfiguration m_httpConfiguration;
133 bool m_httpConfigurationHasBeenSet = false;
134
135 Aws::Vector<SegmentDeliveryConfiguration> m_segmentDeliveryConfigurations;
136 bool m_segmentDeliveryConfigurationsHasBeenSet = false;
137
138 Aws::String m_sourceLocationName;
139 bool m_sourceLocationNameHasBeenSet = false;
140
142 bool m_tagsHasBeenSet = false;
143 };
144
145} // namespace Model
146} // namespace MediaTailor
147} // namespace Aws
CreateSourceLocationRequest & WithSegmentDeliveryConfigurations(SegmentDeliveryConfigurationsT &&value)
const DefaultSegmentDeliveryConfiguration & GetDefaultSegmentDeliveryConfiguration() const
CreateSourceLocationRequest & WithSourceLocationName(SourceLocationNameT &&value)
AWS_MEDIATAILOR_API CreateSourceLocationRequest()=default
CreateSourceLocationRequest & WithHttpConfiguration(HttpConfigurationT &&value)
AWS_MEDIATAILOR_API Aws::String SerializePayload() const override
CreateSourceLocationRequest & WithAccessConfiguration(AccessConfigurationT &&value)
void SetDefaultSegmentDeliveryConfiguration(DefaultSegmentDeliveryConfigurationT &&value)
CreateSourceLocationRequest & WithTags(TagsT &&value)
void SetSegmentDeliveryConfigurations(SegmentDeliveryConfigurationsT &&value)
CreateSourceLocationRequest & WithDefaultSegmentDeliveryConfiguration(DefaultSegmentDeliveryConfigurationT &&value)
CreateSourceLocationRequest & AddSegmentDeliveryConfigurations(SegmentDeliveryConfigurationsT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
const Aws::Vector< SegmentDeliveryConfiguration > & GetSegmentDeliveryConfigurations() const
CreateSourceLocationRequest & AddTags(TagsKeyT &&key, TagsValueT &&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