AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetAccessConfiguration(const AccessConfiguration& value) { m_accessConfigurationHasBeenSet = true; m_accessConfiguration = value; }
49 inline void SetAccessConfiguration(AccessConfiguration&& value) { m_accessConfigurationHasBeenSet = true; m_accessConfiguration = std::move(value); }
53
55
58 inline const DefaultSegmentDeliveryConfiguration& GetDefaultSegmentDeliveryConfiguration() const{ return m_defaultSegmentDeliveryConfiguration; }
59 inline bool DefaultSegmentDeliveryConfigurationHasBeenSet() const { return m_defaultSegmentDeliveryConfigurationHasBeenSet; }
60 inline void SetDefaultSegmentDeliveryConfiguration(const DefaultSegmentDeliveryConfiguration& value) { m_defaultSegmentDeliveryConfigurationHasBeenSet = true; m_defaultSegmentDeliveryConfiguration = value; }
61 inline void SetDefaultSegmentDeliveryConfiguration(DefaultSegmentDeliveryConfiguration&& value) { m_defaultSegmentDeliveryConfigurationHasBeenSet = true; m_defaultSegmentDeliveryConfiguration = std::move(value); }
65
67
70 inline const HttpConfiguration& GetHttpConfiguration() const{ return m_httpConfiguration; }
71 inline bool HttpConfigurationHasBeenSet() const { return m_httpConfigurationHasBeenSet; }
72 inline void SetHttpConfiguration(const HttpConfiguration& value) { m_httpConfigurationHasBeenSet = true; m_httpConfiguration = value; }
73 inline void SetHttpConfiguration(HttpConfiguration&& value) { m_httpConfigurationHasBeenSet = true; m_httpConfiguration = std::move(value); }
77
79
83 inline const Aws::Vector<SegmentDeliveryConfiguration>& GetSegmentDeliveryConfigurations() const{ return m_segmentDeliveryConfigurations; }
84 inline bool SegmentDeliveryConfigurationsHasBeenSet() const { return m_segmentDeliveryConfigurationsHasBeenSet; }
85 inline void SetSegmentDeliveryConfigurations(const Aws::Vector<SegmentDeliveryConfiguration>& value) { m_segmentDeliveryConfigurationsHasBeenSet = true; m_segmentDeliveryConfigurations = value; }
86 inline void SetSegmentDeliveryConfigurations(Aws::Vector<SegmentDeliveryConfiguration>&& value) { m_segmentDeliveryConfigurationsHasBeenSet = true; m_segmentDeliveryConfigurations = std::move(value); }
89 inline CreateSourceLocationRequest& AddSegmentDeliveryConfigurations(const SegmentDeliveryConfiguration& value) { m_segmentDeliveryConfigurationsHasBeenSet = true; m_segmentDeliveryConfigurations.push_back(value); return *this; }
90 inline CreateSourceLocationRequest& AddSegmentDeliveryConfigurations(SegmentDeliveryConfiguration&& value) { m_segmentDeliveryConfigurationsHasBeenSet = true; m_segmentDeliveryConfigurations.push_back(std::move(value)); return *this; }
92
94
97 inline const Aws::String& GetSourceLocationName() const{ return m_sourceLocationName; }
98 inline bool SourceLocationNameHasBeenSet() const { return m_sourceLocationNameHasBeenSet; }
99 inline void SetSourceLocationName(const Aws::String& value) { m_sourceLocationNameHasBeenSet = true; m_sourceLocationName = value; }
100 inline void SetSourceLocationName(Aws::String&& value) { m_sourceLocationNameHasBeenSet = true; m_sourceLocationName = std::move(value); }
101 inline void SetSourceLocationName(const char* value) { m_sourceLocationNameHasBeenSet = true; m_sourceLocationName.assign(value); }
103 inline CreateSourceLocationRequest& WithSourceLocationName(Aws::String&& value) { SetSourceLocationName(std::move(value)); return *this;}
104 inline CreateSourceLocationRequest& WithSourceLocationName(const char* value) { SetSourceLocationName(value); return *this;}
106
108
115 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
116 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
117 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
118 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
120 inline CreateSourceLocationRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
121 inline CreateSourceLocationRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
122 inline CreateSourceLocationRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
123 inline CreateSourceLocationRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
124 inline CreateSourceLocationRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
125 inline CreateSourceLocationRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
126 inline CreateSourceLocationRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
127 inline CreateSourceLocationRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
129 private:
130
131 AccessConfiguration m_accessConfiguration;
132 bool m_accessConfigurationHasBeenSet = false;
133
134 DefaultSegmentDeliveryConfiguration m_defaultSegmentDeliveryConfiguration;
135 bool m_defaultSegmentDeliveryConfigurationHasBeenSet = false;
136
137 HttpConfiguration m_httpConfiguration;
138 bool m_httpConfigurationHasBeenSet = false;
139
140 Aws::Vector<SegmentDeliveryConfiguration> m_segmentDeliveryConfigurations;
141 bool m_segmentDeliveryConfigurationsHasBeenSet = false;
142
143 Aws::String m_sourceLocationName;
144 bool m_sourceLocationNameHasBeenSet = false;
145
147 bool m_tagsHasBeenSet = false;
148 };
149
150} // namespace Model
151} // namespace MediaTailor
152} // namespace Aws
CreateSourceLocationRequest & WithHttpConfiguration(HttpConfiguration &&value)
const DefaultSegmentDeliveryConfiguration & GetDefaultSegmentDeliveryConfiguration() const
CreateSourceLocationRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateSourceLocationRequest & AddTags(const char *key, Aws::String &&value)
CreateSourceLocationRequest & WithDefaultSegmentDeliveryConfiguration(DefaultSegmentDeliveryConfiguration &&value)
CreateSourceLocationRequest & WithAccessConfiguration(const AccessConfiguration &value)
CreateSourceLocationRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
AWS_MEDIATAILOR_API Aws::String SerializePayload() const override
CreateSourceLocationRequest & WithSegmentDeliveryConfigurations(Aws::Vector< SegmentDeliveryConfiguration > &&value)
CreateSourceLocationRequest & WithSourceLocationName(const Aws::String &value)
CreateSourceLocationRequest & AddTags(Aws::String &&key, const char *value)
CreateSourceLocationRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateSourceLocationRequest & AddTags(const Aws::String &key, const Aws::String &value)
CreateSourceLocationRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreateSourceLocationRequest & WithSourceLocationName(const char *value)
void SetDefaultSegmentDeliveryConfiguration(DefaultSegmentDeliveryConfiguration &&value)
CreateSourceLocationRequest & WithDefaultSegmentDeliveryConfiguration(const DefaultSegmentDeliveryConfiguration &value)
CreateSourceLocationRequest & WithSourceLocationName(Aws::String &&value)
CreateSourceLocationRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreateSourceLocationRequest & AddTags(const char *key, const char *value)
CreateSourceLocationRequest & WithSegmentDeliveryConfigurations(const Aws::Vector< SegmentDeliveryConfiguration > &value)
void SetAccessConfiguration(const AccessConfiguration &value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
void SetSegmentDeliveryConfigurations(Aws::Vector< SegmentDeliveryConfiguration > &&value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
const Aws::Vector< SegmentDeliveryConfiguration > & GetSegmentDeliveryConfigurations() const
CreateSourceLocationRequest & AddSegmentDeliveryConfigurations(SegmentDeliveryConfiguration &&value)
void SetSegmentDeliveryConfigurations(const Aws::Vector< SegmentDeliveryConfiguration > &value)
CreateSourceLocationRequest & WithAccessConfiguration(AccessConfiguration &&value)
CreateSourceLocationRequest & WithHttpConfiguration(const HttpConfiguration &value)
CreateSourceLocationRequest & AddSegmentDeliveryConfigurations(const SegmentDeliveryConfiguration &value)
void SetDefaultSegmentDeliveryConfiguration(const DefaultSegmentDeliveryConfiguration &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