AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
LiveSource.h
1
6#pragma once
7#include <aws/mediatailor/MediaTailor_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSVector.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 Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace MediaTailor
26{
27namespace Model
28{
29
36 {
37 public:
38 AWS_MEDIATAILOR_API LiveSource() = default;
39 AWS_MEDIATAILOR_API LiveSource(Aws::Utils::Json::JsonView jsonValue);
40 AWS_MEDIATAILOR_API LiveSource& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_MEDIATAILOR_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetArn() const { return m_arn; }
49 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
50 template<typename ArnT = Aws::String>
51 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
52 template<typename ArnT = Aws::String>
53 LiveSource& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
55
57
60 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
61 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
62 template<typename CreationTimeT = Aws::Utils::DateTime>
63 void SetCreationTime(CreationTimeT&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::forward<CreationTimeT>(value); }
64 template<typename CreationTimeT = Aws::Utils::DateTime>
65 LiveSource& WithCreationTime(CreationTimeT&& value) { SetCreationTime(std::forward<CreationTimeT>(value)); return *this;}
67
69
72 inline const Aws::Vector<HttpPackageConfiguration>& GetHttpPackageConfigurations() const { return m_httpPackageConfigurations; }
73 inline bool HttpPackageConfigurationsHasBeenSet() const { return m_httpPackageConfigurationsHasBeenSet; }
74 template<typename HttpPackageConfigurationsT = Aws::Vector<HttpPackageConfiguration>>
75 void SetHttpPackageConfigurations(HttpPackageConfigurationsT&& value) { m_httpPackageConfigurationsHasBeenSet = true; m_httpPackageConfigurations = std::forward<HttpPackageConfigurationsT>(value); }
76 template<typename HttpPackageConfigurationsT = Aws::Vector<HttpPackageConfiguration>>
77 LiveSource& WithHttpPackageConfigurations(HttpPackageConfigurationsT&& value) { SetHttpPackageConfigurations(std::forward<HttpPackageConfigurationsT>(value)); return *this;}
78 template<typename HttpPackageConfigurationsT = HttpPackageConfiguration>
79 LiveSource& AddHttpPackageConfigurations(HttpPackageConfigurationsT&& value) { m_httpPackageConfigurationsHasBeenSet = true; m_httpPackageConfigurations.emplace_back(std::forward<HttpPackageConfigurationsT>(value)); return *this; }
81
83
86 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
87 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
88 template<typename LastModifiedTimeT = Aws::Utils::DateTime>
89 void SetLastModifiedTime(LastModifiedTimeT&& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = std::forward<LastModifiedTimeT>(value); }
90 template<typename LastModifiedTimeT = Aws::Utils::DateTime>
91 LiveSource& WithLastModifiedTime(LastModifiedTimeT&& value) { SetLastModifiedTime(std::forward<LastModifiedTimeT>(value)); return *this;}
93
95
98 inline const Aws::String& GetLiveSourceName() const { return m_liveSourceName; }
99 inline bool LiveSourceNameHasBeenSet() const { return m_liveSourceNameHasBeenSet; }
100 template<typename LiveSourceNameT = Aws::String>
101 void SetLiveSourceName(LiveSourceNameT&& value) { m_liveSourceNameHasBeenSet = true; m_liveSourceName = std::forward<LiveSourceNameT>(value); }
102 template<typename LiveSourceNameT = Aws::String>
103 LiveSource& WithLiveSourceName(LiveSourceNameT&& value) { SetLiveSourceName(std::forward<LiveSourceNameT>(value)); return *this;}
105
107
110 inline const Aws::String& GetSourceLocationName() const { return m_sourceLocationName; }
111 inline bool SourceLocationNameHasBeenSet() const { return m_sourceLocationNameHasBeenSet; }
112 template<typename SourceLocationNameT = Aws::String>
113 void SetSourceLocationName(SourceLocationNameT&& value) { m_sourceLocationNameHasBeenSet = true; m_sourceLocationName = std::forward<SourceLocationNameT>(value); }
114 template<typename SourceLocationNameT = Aws::String>
115 LiveSource& WithSourceLocationName(SourceLocationNameT&& value) { SetSourceLocationName(std::forward<SourceLocationNameT>(value)); return *this;}
117
119
126 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
127 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
128 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
129 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
130 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
131 LiveSource& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
132 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
133 LiveSource& AddTags(TagsKeyT&& key, TagsValueT&& value) {
134 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
135 }
137 private:
138
139 Aws::String m_arn;
140 bool m_arnHasBeenSet = false;
141
142 Aws::Utils::DateTime m_creationTime{};
143 bool m_creationTimeHasBeenSet = false;
144
145 Aws::Vector<HttpPackageConfiguration> m_httpPackageConfigurations;
146 bool m_httpPackageConfigurationsHasBeenSet = false;
147
148 Aws::Utils::DateTime m_lastModifiedTime{};
149 bool m_lastModifiedTimeHasBeenSet = false;
150
151 Aws::String m_liveSourceName;
152 bool m_liveSourceNameHasBeenSet = false;
153
154 Aws::String m_sourceLocationName;
155 bool m_sourceLocationNameHasBeenSet = false;
156
158 bool m_tagsHasBeenSet = false;
159 };
160
161} // namespace Model
162} // namespace MediaTailor
163} // namespace Aws
const Aws::String & GetSourceLocationName() const
Definition LiveSource.h:110
LiveSource & WithHttpPackageConfigurations(HttpPackageConfigurationsT &&value)
Definition LiveSource.h:77
void SetSourceLocationName(SourceLocationNameT &&value)
Definition LiveSource.h:113
void SetCreationTime(CreationTimeT &&value)
Definition LiveSource.h:63
bool HttpPackageConfigurationsHasBeenSet() const
Definition LiveSource.h:73
void SetLiveSourceName(LiveSourceNameT &&value)
Definition LiveSource.h:101
LiveSource & WithLastModifiedTime(LastModifiedTimeT &&value)
Definition LiveSource.h:91
void SetHttpPackageConfigurations(HttpPackageConfigurationsT &&value)
Definition LiveSource.h:75
AWS_MEDIATAILOR_API LiveSource(Aws::Utils::Json::JsonView jsonValue)
LiveSource & WithLiveSourceName(LiveSourceNameT &&value)
Definition LiveSource.h:103
AWS_MEDIATAILOR_API Aws::Utils::Json::JsonValue Jsonize() const
LiveSource & AddTags(TagsKeyT &&key, TagsValueT &&value)
Definition LiveSource.h:133
const Aws::Utils::DateTime & GetCreationTime() const
Definition LiveSource.h:60
void SetLastModifiedTime(LastModifiedTimeT &&value)
Definition LiveSource.h:89
LiveSource & WithTags(TagsT &&value)
Definition LiveSource.h:131
LiveSource & WithSourceLocationName(SourceLocationNameT &&value)
Definition LiveSource.h:115
LiveSource & WithArn(ArnT &&value)
Definition LiveSource.h:53
AWS_MEDIATAILOR_API LiveSource()=default
LiveSource & AddHttpPackageConfigurations(HttpPackageConfigurationsT &&value)
Definition LiveSource.h:79
const Aws::Vector< HttpPackageConfiguration > & GetHttpPackageConfigurations() const
Definition LiveSource.h:72
const Aws::Utils::DateTime & GetLastModifiedTime() const
Definition LiveSource.h:86
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition LiveSource.h:126
LiveSource & WithCreationTime(CreationTimeT &&value)
Definition LiveSource.h:65
AWS_MEDIATAILOR_API LiveSource & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetArn() const
Definition LiveSource.h:48
const Aws::String & GetLiveSourceName() const
Definition LiveSource.h:98
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