AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
UpdateSourceLocationRequest.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/mediatailor/model/SegmentDeliveryConfiguration.h>
15#include <utility>
16
17namespace Aws
18{
19namespace MediaTailor
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_MEDIATAILOR_API UpdateSourceLocationRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "UpdateSourceLocation"; }
36
37 AWS_MEDIATAILOR_API Aws::String SerializePayload() const override;
38
39
41
45 inline const AccessConfiguration& GetAccessConfiguration() const { return m_accessConfiguration; }
46 inline bool AccessConfigurationHasBeenSet() const { return m_accessConfigurationHasBeenSet; }
47 template<typename AccessConfigurationT = AccessConfiguration>
48 void SetAccessConfiguration(AccessConfigurationT&& value) { m_accessConfigurationHasBeenSet = true; m_accessConfiguration = std::forward<AccessConfigurationT>(value); }
49 template<typename AccessConfigurationT = AccessConfiguration>
50 UpdateSourceLocationRequest& WithAccessConfiguration(AccessConfigurationT&& value) { SetAccessConfiguration(std::forward<AccessConfigurationT>(value)); return *this;}
52
54
57 inline const DefaultSegmentDeliveryConfiguration& GetDefaultSegmentDeliveryConfiguration() const { return m_defaultSegmentDeliveryConfiguration; }
58 inline bool DefaultSegmentDeliveryConfigurationHasBeenSet() const { return m_defaultSegmentDeliveryConfigurationHasBeenSet; }
59 template<typename DefaultSegmentDeliveryConfigurationT = DefaultSegmentDeliveryConfiguration>
60 void SetDefaultSegmentDeliveryConfiguration(DefaultSegmentDeliveryConfigurationT&& value) { m_defaultSegmentDeliveryConfigurationHasBeenSet = true; m_defaultSegmentDeliveryConfiguration = std::forward<DefaultSegmentDeliveryConfigurationT>(value); }
61 template<typename DefaultSegmentDeliveryConfigurationT = DefaultSegmentDeliveryConfiguration>
62 UpdateSourceLocationRequest& WithDefaultSegmentDeliveryConfiguration(DefaultSegmentDeliveryConfigurationT&& value) { SetDefaultSegmentDeliveryConfiguration(std::forward<DefaultSegmentDeliveryConfigurationT>(value)); return *this;}
64
66
69 inline const HttpConfiguration& GetHttpConfiguration() const { return m_httpConfiguration; }
70 inline bool HttpConfigurationHasBeenSet() const { return m_httpConfigurationHasBeenSet; }
71 template<typename HttpConfigurationT = HttpConfiguration>
72 void SetHttpConfiguration(HttpConfigurationT&& value) { m_httpConfigurationHasBeenSet = true; m_httpConfiguration = std::forward<HttpConfigurationT>(value); }
73 template<typename HttpConfigurationT = HttpConfiguration>
74 UpdateSourceLocationRequest& WithHttpConfiguration(HttpConfigurationT&& value) { SetHttpConfiguration(std::forward<HttpConfigurationT>(value)); return *this;}
76
78
82 inline const Aws::Vector<SegmentDeliveryConfiguration>& GetSegmentDeliveryConfigurations() const { return m_segmentDeliveryConfigurations; }
83 inline bool SegmentDeliveryConfigurationsHasBeenSet() const { return m_segmentDeliveryConfigurationsHasBeenSet; }
84 template<typename SegmentDeliveryConfigurationsT = Aws::Vector<SegmentDeliveryConfiguration>>
85 void SetSegmentDeliveryConfigurations(SegmentDeliveryConfigurationsT&& value) { m_segmentDeliveryConfigurationsHasBeenSet = true; m_segmentDeliveryConfigurations = std::forward<SegmentDeliveryConfigurationsT>(value); }
86 template<typename SegmentDeliveryConfigurationsT = Aws::Vector<SegmentDeliveryConfiguration>>
87 UpdateSourceLocationRequest& WithSegmentDeliveryConfigurations(SegmentDeliveryConfigurationsT&& value) { SetSegmentDeliveryConfigurations(std::forward<SegmentDeliveryConfigurationsT>(value)); return *this;}
88 template<typename SegmentDeliveryConfigurationsT = SegmentDeliveryConfiguration>
89 UpdateSourceLocationRequest& AddSegmentDeliveryConfigurations(SegmentDeliveryConfigurationsT&& value) { m_segmentDeliveryConfigurationsHasBeenSet = true; m_segmentDeliveryConfigurations.emplace_back(std::forward<SegmentDeliveryConfigurationsT>(value)); return *this; }
91
93
96 inline const Aws::String& GetSourceLocationName() const { return m_sourceLocationName; }
97 inline bool SourceLocationNameHasBeenSet() const { return m_sourceLocationNameHasBeenSet; }
98 template<typename SourceLocationNameT = Aws::String>
99 void SetSourceLocationName(SourceLocationNameT&& value) { m_sourceLocationNameHasBeenSet = true; m_sourceLocationName = std::forward<SourceLocationNameT>(value); }
100 template<typename SourceLocationNameT = Aws::String>
101 UpdateSourceLocationRequest& WithSourceLocationName(SourceLocationNameT&& value) { SetSourceLocationName(std::forward<SourceLocationNameT>(value)); return *this;}
103 private:
104
105 AccessConfiguration m_accessConfiguration;
106 bool m_accessConfigurationHasBeenSet = false;
107
108 DefaultSegmentDeliveryConfiguration m_defaultSegmentDeliveryConfiguration;
109 bool m_defaultSegmentDeliveryConfigurationHasBeenSet = false;
110
111 HttpConfiguration m_httpConfiguration;
112 bool m_httpConfigurationHasBeenSet = false;
113
114 Aws::Vector<SegmentDeliveryConfiguration> m_segmentDeliveryConfigurations;
115 bool m_segmentDeliveryConfigurationsHasBeenSet = false;
116
117 Aws::String m_sourceLocationName;
118 bool m_sourceLocationNameHasBeenSet = false;
119 };
120
121} // namespace Model
122} // namespace MediaTailor
123} // namespace Aws
UpdateSourceLocationRequest & WithSourceLocationName(SourceLocationNameT &&value)
UpdateSourceLocationRequest & WithSegmentDeliveryConfigurations(SegmentDeliveryConfigurationsT &&value)
UpdateSourceLocationRequest & WithHttpConfiguration(HttpConfigurationT &&value)
void SetDefaultSegmentDeliveryConfiguration(DefaultSegmentDeliveryConfigurationT &&value)
UpdateSourceLocationRequest & WithAccessConfiguration(AccessConfigurationT &&value)
UpdateSourceLocationRequest & AddSegmentDeliveryConfigurations(SegmentDeliveryConfigurationsT &&value)
AWS_MEDIATAILOR_API UpdateSourceLocationRequest()=default
const Aws::Vector< SegmentDeliveryConfiguration > & GetSegmentDeliveryConfigurations() const
void SetSegmentDeliveryConfigurations(SegmentDeliveryConfigurationsT &&value)
UpdateSourceLocationRequest & WithDefaultSegmentDeliveryConfiguration(DefaultSegmentDeliveryConfigurationT &&value)
const DefaultSegmentDeliveryConfiguration & GetDefaultSegmentDeliveryConfiguration() const
AWS_MEDIATAILOR_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector