AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
VodSource.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 VodSource() = default;
39 AWS_MEDIATAILOR_API VodSource(Aws::Utils::Json::JsonView jsonValue);
40 AWS_MEDIATAILOR_API VodSource& 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 VodSource& 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 VodSource& 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 VodSource& WithHttpPackageConfigurations(HttpPackageConfigurationsT&& value) { SetHttpPackageConfigurations(std::forward<HttpPackageConfigurationsT>(value)); return *this;}
78 template<typename HttpPackageConfigurationsT = HttpPackageConfiguration>
79 VodSource& 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 VodSource& WithLastModifiedTime(LastModifiedTimeT&& value) { SetLastModifiedTime(std::forward<LastModifiedTimeT>(value)); return *this;}
93
95
98 inline const Aws::String& GetSourceLocationName() const { return m_sourceLocationName; }
99 inline bool SourceLocationNameHasBeenSet() const { return m_sourceLocationNameHasBeenSet; }
100 template<typename SourceLocationNameT = Aws::String>
101 void SetSourceLocationName(SourceLocationNameT&& value) { m_sourceLocationNameHasBeenSet = true; m_sourceLocationName = std::forward<SourceLocationNameT>(value); }
102 template<typename SourceLocationNameT = Aws::String>
103 VodSource& WithSourceLocationName(SourceLocationNameT&& value) { SetSourceLocationName(std::forward<SourceLocationNameT>(value)); return *this;}
105
107
114 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
115 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
116 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
117 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
118 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
119 VodSource& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
120 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
121 VodSource& AddTags(TagsKeyT&& key, TagsValueT&& value) {
122 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
123 }
125
127
130 inline const Aws::String& GetVodSourceName() const { return m_vodSourceName; }
131 inline bool VodSourceNameHasBeenSet() const { return m_vodSourceNameHasBeenSet; }
132 template<typename VodSourceNameT = Aws::String>
133 void SetVodSourceName(VodSourceNameT&& value) { m_vodSourceNameHasBeenSet = true; m_vodSourceName = std::forward<VodSourceNameT>(value); }
134 template<typename VodSourceNameT = Aws::String>
135 VodSource& WithVodSourceName(VodSourceNameT&& value) { SetVodSourceName(std::forward<VodSourceNameT>(value)); return *this;}
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_sourceLocationName;
152 bool m_sourceLocationNameHasBeenSet = false;
153
155 bool m_tagsHasBeenSet = false;
156
157 Aws::String m_vodSourceName;
158 bool m_vodSourceNameHasBeenSet = false;
159 };
160
161} // namespace Model
162} // namespace MediaTailor
163} // namespace Aws
void SetSourceLocationName(SourceLocationNameT &&value)
Definition VodSource.h:101
VodSource & WithCreationTime(CreationTimeT &&value)
Definition VodSource.h:65
AWS_MEDIATAILOR_API Aws::Utils::Json::JsonValue Jsonize() const
bool HttpPackageConfigurationsHasBeenSet() const
Definition VodSource.h:73
VodSource & WithHttpPackageConfigurations(HttpPackageConfigurationsT &&value)
Definition VodSource.h:77
VodSource & WithTags(TagsT &&value)
Definition VodSource.h:119
const Aws::String & GetVodSourceName() const
Definition VodSource.h:130
VodSource & WithArn(ArnT &&value)
Definition VodSource.h:53
const Aws::String & GetArn() const
Definition VodSource.h:48
void SetCreationTime(CreationTimeT &&value)
Definition VodSource.h:63
bool SourceLocationNameHasBeenSet() const
Definition VodSource.h:99
VodSource & WithLastModifiedTime(LastModifiedTimeT &&value)
Definition VodSource.h:91
VodSource & AddTags(TagsKeyT &&key, TagsValueT &&value)
Definition VodSource.h:121
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition VodSource.h:114
VodSource & WithSourceLocationName(SourceLocationNameT &&value)
Definition VodSource.h:103
void SetHttpPackageConfigurations(HttpPackageConfigurationsT &&value)
Definition VodSource.h:75
const Aws::Utils::DateTime & GetLastModifiedTime() const
Definition VodSource.h:86
const Aws::Vector< HttpPackageConfiguration > & GetHttpPackageConfigurations() const
Definition VodSource.h:72
VodSource & WithVodSourceName(VodSourceNameT &&value)
Definition VodSource.h:135
VodSource & AddHttpPackageConfigurations(HttpPackageConfigurationsT &&value)
Definition VodSource.h:79
AWS_MEDIATAILOR_API VodSource(Aws::Utils::Json::JsonView jsonValue)
void SetVodSourceName(VodSourceNameT &&value)
Definition VodSource.h:133
void SetLastModifiedTime(LastModifiedTimeT &&value)
Definition VodSource.h:89
const Aws::Utils::DateTime & GetCreationTime() const
Definition VodSource.h:60
AWS_MEDIATAILOR_API VodSource()=default
AWS_MEDIATAILOR_API VodSource & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetSourceLocationName() const
Definition VodSource.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