AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
SourceLocation.h
1
6#pragma once
7#include <aws/mediatailor/MediaTailor_EXPORTS.h>
8#include <aws/mediatailor/model/AccessConfiguration.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/mediatailor/model/DefaultSegmentDeliveryConfiguration.h>
12#include <aws/mediatailor/model/HttpConfiguration.h>
13#include <aws/core/utils/memory/stl/AWSVector.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 Utils
21{
22namespace Json
23{
24 class JsonValue;
25 class JsonView;
26} // namespace Json
27} // namespace Utils
28namespace MediaTailor
29{
30namespace Model
31{
32
43 {
44 public:
45 AWS_MEDIATAILOR_API SourceLocation() = default;
46 AWS_MEDIATAILOR_API SourceLocation(Aws::Utils::Json::JsonView jsonValue);
47 AWS_MEDIATAILOR_API SourceLocation& operator=(Aws::Utils::Json::JsonView jsonValue);
48 AWS_MEDIATAILOR_API Aws::Utils::Json::JsonValue Jsonize() const;
49
50
52
55 inline const AccessConfiguration& GetAccessConfiguration() const { return m_accessConfiguration; }
56 inline bool AccessConfigurationHasBeenSet() const { return m_accessConfigurationHasBeenSet; }
57 template<typename AccessConfigurationT = AccessConfiguration>
58 void SetAccessConfiguration(AccessConfigurationT&& value) { m_accessConfigurationHasBeenSet = true; m_accessConfiguration = std::forward<AccessConfigurationT>(value); }
59 template<typename AccessConfigurationT = AccessConfiguration>
60 SourceLocation& WithAccessConfiguration(AccessConfigurationT&& value) { SetAccessConfiguration(std::forward<AccessConfigurationT>(value)); return *this;}
62
64
67 inline const Aws::String& GetArn() const { return m_arn; }
68 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
69 template<typename ArnT = Aws::String>
70 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
71 template<typename ArnT = Aws::String>
72 SourceLocation& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
74
76
79 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
80 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
81 template<typename CreationTimeT = Aws::Utils::DateTime>
82 void SetCreationTime(CreationTimeT&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::forward<CreationTimeT>(value); }
83 template<typename CreationTimeT = Aws::Utils::DateTime>
84 SourceLocation& WithCreationTime(CreationTimeT&& value) { SetCreationTime(std::forward<CreationTimeT>(value)); return *this;}
86
88
91 inline const DefaultSegmentDeliveryConfiguration& GetDefaultSegmentDeliveryConfiguration() const { return m_defaultSegmentDeliveryConfiguration; }
92 inline bool DefaultSegmentDeliveryConfigurationHasBeenSet() const { return m_defaultSegmentDeliveryConfigurationHasBeenSet; }
93 template<typename DefaultSegmentDeliveryConfigurationT = DefaultSegmentDeliveryConfiguration>
94 void SetDefaultSegmentDeliveryConfiguration(DefaultSegmentDeliveryConfigurationT&& value) { m_defaultSegmentDeliveryConfigurationHasBeenSet = true; m_defaultSegmentDeliveryConfiguration = std::forward<DefaultSegmentDeliveryConfigurationT>(value); }
95 template<typename DefaultSegmentDeliveryConfigurationT = DefaultSegmentDeliveryConfiguration>
96 SourceLocation& WithDefaultSegmentDeliveryConfiguration(DefaultSegmentDeliveryConfigurationT&& value) { SetDefaultSegmentDeliveryConfiguration(std::forward<DefaultSegmentDeliveryConfigurationT>(value)); return *this;}
98
100
103 inline const HttpConfiguration& GetHttpConfiguration() const { return m_httpConfiguration; }
104 inline bool HttpConfigurationHasBeenSet() const { return m_httpConfigurationHasBeenSet; }
105 template<typename HttpConfigurationT = HttpConfiguration>
106 void SetHttpConfiguration(HttpConfigurationT&& value) { m_httpConfigurationHasBeenSet = true; m_httpConfiguration = std::forward<HttpConfigurationT>(value); }
107 template<typename HttpConfigurationT = HttpConfiguration>
108 SourceLocation& WithHttpConfiguration(HttpConfigurationT&& value) { SetHttpConfiguration(std::forward<HttpConfigurationT>(value)); return *this;}
110
112
115 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
116 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
117 template<typename LastModifiedTimeT = Aws::Utils::DateTime>
118 void SetLastModifiedTime(LastModifiedTimeT&& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = std::forward<LastModifiedTimeT>(value); }
119 template<typename LastModifiedTimeT = Aws::Utils::DateTime>
120 SourceLocation& WithLastModifiedTime(LastModifiedTimeT&& value) { SetLastModifiedTime(std::forward<LastModifiedTimeT>(value)); return *this;}
122
124
127 inline const Aws::Vector<SegmentDeliveryConfiguration>& GetSegmentDeliveryConfigurations() const { return m_segmentDeliveryConfigurations; }
128 inline bool SegmentDeliveryConfigurationsHasBeenSet() const { return m_segmentDeliveryConfigurationsHasBeenSet; }
129 template<typename SegmentDeliveryConfigurationsT = Aws::Vector<SegmentDeliveryConfiguration>>
130 void SetSegmentDeliveryConfigurations(SegmentDeliveryConfigurationsT&& value) { m_segmentDeliveryConfigurationsHasBeenSet = true; m_segmentDeliveryConfigurations = std::forward<SegmentDeliveryConfigurationsT>(value); }
131 template<typename SegmentDeliveryConfigurationsT = Aws::Vector<SegmentDeliveryConfiguration>>
132 SourceLocation& WithSegmentDeliveryConfigurations(SegmentDeliveryConfigurationsT&& value) { SetSegmentDeliveryConfigurations(std::forward<SegmentDeliveryConfigurationsT>(value)); return *this;}
133 template<typename SegmentDeliveryConfigurationsT = SegmentDeliveryConfiguration>
134 SourceLocation& AddSegmentDeliveryConfigurations(SegmentDeliveryConfigurationsT&& value) { m_segmentDeliveryConfigurationsHasBeenSet = true; m_segmentDeliveryConfigurations.emplace_back(std::forward<SegmentDeliveryConfigurationsT>(value)); return *this; }
136
138
141 inline const Aws::String& GetSourceLocationName() const { return m_sourceLocationName; }
142 inline bool SourceLocationNameHasBeenSet() const { return m_sourceLocationNameHasBeenSet; }
143 template<typename SourceLocationNameT = Aws::String>
144 void SetSourceLocationName(SourceLocationNameT&& value) { m_sourceLocationNameHasBeenSet = true; m_sourceLocationName = std::forward<SourceLocationNameT>(value); }
145 template<typename SourceLocationNameT = Aws::String>
146 SourceLocation& WithSourceLocationName(SourceLocationNameT&& value) { SetSourceLocationName(std::forward<SourceLocationNameT>(value)); return *this;}
148
150
157 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
158 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
159 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
160 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
161 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
162 SourceLocation& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
163 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
164 SourceLocation& AddTags(TagsKeyT&& key, TagsValueT&& value) {
165 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
166 }
168 private:
169
170 AccessConfiguration m_accessConfiguration;
171 bool m_accessConfigurationHasBeenSet = false;
172
173 Aws::String m_arn;
174 bool m_arnHasBeenSet = false;
175
176 Aws::Utils::DateTime m_creationTime{};
177 bool m_creationTimeHasBeenSet = false;
178
179 DefaultSegmentDeliveryConfiguration m_defaultSegmentDeliveryConfiguration;
180 bool m_defaultSegmentDeliveryConfigurationHasBeenSet = false;
181
182 HttpConfiguration m_httpConfiguration;
183 bool m_httpConfigurationHasBeenSet = false;
184
185 Aws::Utils::DateTime m_lastModifiedTime{};
186 bool m_lastModifiedTimeHasBeenSet = false;
187
188 Aws::Vector<SegmentDeliveryConfiguration> m_segmentDeliveryConfigurations;
189 bool m_segmentDeliveryConfigurationsHasBeenSet = false;
190
191 Aws::String m_sourceLocationName;
192 bool m_sourceLocationNameHasBeenSet = false;
193
195 bool m_tagsHasBeenSet = false;
196 };
197
198} // namespace Model
199} // namespace MediaTailor
200} // namespace Aws
SourceLocation & WithArn(ArnT &&value)
void SetHttpConfiguration(HttpConfigurationT &&value)
AWS_MEDIATAILOR_API SourceLocation & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_MEDIATAILOR_API SourceLocation()=default
void SetAccessConfiguration(AccessConfigurationT &&value)
const Aws::Utils::DateTime & GetLastModifiedTime() const
const DefaultSegmentDeliveryConfiguration & GetDefaultSegmentDeliveryConfiguration() const
void SetSourceLocationName(SourceLocationNameT &&value)
const Aws::Vector< SegmentDeliveryConfiguration > & GetSegmentDeliveryConfigurations() const
const AccessConfiguration & GetAccessConfiguration() const
SourceLocation & WithSourceLocationName(SourceLocationNameT &&value)
const Aws::String & GetSourceLocationName() const
SourceLocation & WithCreationTime(CreationTimeT &&value)
void SetCreationTime(CreationTimeT &&value)
SourceLocation & AddSegmentDeliveryConfigurations(SegmentDeliveryConfigurationsT &&value)
SourceLocation & WithHttpConfiguration(HttpConfigurationT &&value)
SourceLocation & WithDefaultSegmentDeliveryConfiguration(DefaultSegmentDeliveryConfigurationT &&value)
SourceLocation & AddTags(TagsKeyT &&key, TagsValueT &&value)
const HttpConfiguration & GetHttpConfiguration() const
const Aws::Utils::DateTime & GetCreationTime() const
void SetLastModifiedTime(LastModifiedTimeT &&value)
AWS_MEDIATAILOR_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
SourceLocation & WithAccessConfiguration(AccessConfigurationT &&value)
SourceLocation & WithLastModifiedTime(LastModifiedTimeT &&value)
AWS_MEDIATAILOR_API SourceLocation(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetArn() const
SourceLocation & WithTags(TagsT &&value)
void SetSegmentDeliveryConfigurations(SegmentDeliveryConfigurationsT &&value)
void SetDefaultSegmentDeliveryConfiguration(DefaultSegmentDeliveryConfigurationT &&value)
SourceLocation & WithSegmentDeliveryConfigurations(SegmentDeliveryConfigurationsT &&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
Aws::Utils::Json::JsonValue JsonValue