AWS SDK for C++

AWS SDK for C++ Version 1.11.765

Loading...
Searching...
No Matches
AssetShallow.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/mediapackage-vod/MediaPackageVod_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace MediaPackageVod {
21namespace Model {
22
29 public:
30 AWS_MEDIAPACKAGEVOD_API AssetShallow() = default;
31 AWS_MEDIAPACKAGEVOD_API AssetShallow(Aws::Utils::Json::JsonView jsonValue);
32 AWS_MEDIAPACKAGEVOD_API AssetShallow& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_MEDIAPACKAGEVOD_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetArn() const { return m_arn; }
40 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
41 template <typename ArnT = Aws::String>
42 void SetArn(ArnT&& value) {
43 m_arnHasBeenSet = true;
44 m_arn = std::forward<ArnT>(value);
45 }
46 template <typename ArnT = Aws::String>
47 AssetShallow& WithArn(ArnT&& value) {
48 SetArn(std::forward<ArnT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetCreatedAt() const { return m_createdAt; }
58 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
59 template <typename CreatedAtT = Aws::String>
60 void SetCreatedAt(CreatedAtT&& value) {
61 m_createdAtHasBeenSet = true;
62 m_createdAt = std::forward<CreatedAtT>(value);
63 }
64 template <typename CreatedAtT = Aws::String>
65 AssetShallow& WithCreatedAt(CreatedAtT&& value) {
66 SetCreatedAt(std::forward<CreatedAtT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetId() const { return m_id; }
76 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
77 template <typename IdT = Aws::String>
78 void SetId(IdT&& value) {
79 m_idHasBeenSet = true;
80 m_id = std::forward<IdT>(value);
81 }
82 template <typename IdT = Aws::String>
83 AssetShallow& WithId(IdT&& value) {
84 SetId(std::forward<IdT>(value));
85 return *this;
86 }
88
90
93 inline const Aws::String& GetPackagingGroupId() const { return m_packagingGroupId; }
94 inline bool PackagingGroupIdHasBeenSet() const { return m_packagingGroupIdHasBeenSet; }
95 template <typename PackagingGroupIdT = Aws::String>
96 void SetPackagingGroupId(PackagingGroupIdT&& value) {
97 m_packagingGroupIdHasBeenSet = true;
98 m_packagingGroupId = std::forward<PackagingGroupIdT>(value);
99 }
100 template <typename PackagingGroupIdT = Aws::String>
101 AssetShallow& WithPackagingGroupId(PackagingGroupIdT&& value) {
102 SetPackagingGroupId(std::forward<PackagingGroupIdT>(value));
103 return *this;
104 }
106
108
111 inline const Aws::String& GetResourceId() const { return m_resourceId; }
112 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
113 template <typename ResourceIdT = Aws::String>
114 void SetResourceId(ResourceIdT&& value) {
115 m_resourceIdHasBeenSet = true;
116 m_resourceId = std::forward<ResourceIdT>(value);
117 }
118 template <typename ResourceIdT = Aws::String>
119 AssetShallow& WithResourceId(ResourceIdT&& value) {
120 SetResourceId(std::forward<ResourceIdT>(value));
121 return *this;
122 }
124
126
129 inline const Aws::String& GetSourceArn() const { return m_sourceArn; }
130 inline bool SourceArnHasBeenSet() const { return m_sourceArnHasBeenSet; }
131 template <typename SourceArnT = Aws::String>
132 void SetSourceArn(SourceArnT&& value) {
133 m_sourceArnHasBeenSet = true;
134 m_sourceArn = std::forward<SourceArnT>(value);
135 }
136 template <typename SourceArnT = Aws::String>
137 AssetShallow& WithSourceArn(SourceArnT&& value) {
138 SetSourceArn(std::forward<SourceArnT>(value));
139 return *this;
140 }
142
144
147 inline const Aws::String& GetSourceRoleArn() const { return m_sourceRoleArn; }
148 inline bool SourceRoleArnHasBeenSet() const { return m_sourceRoleArnHasBeenSet; }
149 template <typename SourceRoleArnT = Aws::String>
150 void SetSourceRoleArn(SourceRoleArnT&& value) {
151 m_sourceRoleArnHasBeenSet = true;
152 m_sourceRoleArn = std::forward<SourceRoleArnT>(value);
153 }
154 template <typename SourceRoleArnT = Aws::String>
155 AssetShallow& WithSourceRoleArn(SourceRoleArnT&& value) {
156 SetSourceRoleArn(std::forward<SourceRoleArnT>(value));
157 return *this;
158 }
160
162
163 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
164 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
165 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
166 void SetTags(TagsT&& value) {
167 m_tagsHasBeenSet = true;
168 m_tags = std::forward<TagsT>(value);
169 }
170 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
171 AssetShallow& WithTags(TagsT&& value) {
172 SetTags(std::forward<TagsT>(value));
173 return *this;
174 }
175 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
176 AssetShallow& AddTags(TagsKeyT&& key, TagsValueT&& value) {
177 m_tagsHasBeenSet = true;
178 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
179 return *this;
180 }
182 private:
183 Aws::String m_arn;
184
185 Aws::String m_createdAt;
186
187 Aws::String m_id;
188
189 Aws::String m_packagingGroupId;
190
191 Aws::String m_resourceId;
192
193 Aws::String m_sourceArn;
194
195 Aws::String m_sourceRoleArn;
196
198 bool m_arnHasBeenSet = false;
199 bool m_createdAtHasBeenSet = false;
200 bool m_idHasBeenSet = false;
201 bool m_packagingGroupIdHasBeenSet = false;
202 bool m_resourceIdHasBeenSet = false;
203 bool m_sourceArnHasBeenSet = false;
204 bool m_sourceRoleArnHasBeenSet = false;
205 bool m_tagsHasBeenSet = false;
206};
207
208} // namespace Model
209} // namespace MediaPackageVod
210} // namespace Aws
AssetShallow & WithArn(ArnT &&value)
void SetCreatedAt(CreatedAtT &&value)
void SetPackagingGroupId(PackagingGroupIdT &&value)
AssetShallow & WithId(IdT &&value)
const Aws::String & GetCreatedAt() const
const Aws::String & GetResourceId() const
void SetResourceId(ResourceIdT &&value)
AssetShallow & WithSourceRoleArn(SourceRoleArnT &&value)
const Aws::String & GetSourceArn() const
AWS_MEDIAPACKAGEVOD_API Aws::Utils::Json::JsonValue Jsonize() const
void SetSourceRoleArn(SourceRoleArnT &&value)
const Aws::String & GetArn() const
const Aws::String & GetPackagingGroupId() const
AWS_MEDIAPACKAGEVOD_API AssetShallow(Aws::Utils::Json::JsonView jsonValue)
AssetShallow & WithResourceId(ResourceIdT &&value)
const Aws::String & GetSourceRoleArn() const
const Aws::String & GetId() const
AssetShallow & WithTags(TagsT &&value)
AWS_MEDIAPACKAGEVOD_API AssetShallow & operator=(Aws::Utils::Json::JsonView jsonValue)
AssetShallow & WithCreatedAt(CreatedAtT &&value)
AssetShallow & WithSourceArn(SourceArnT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_MEDIAPACKAGEVOD_API AssetShallow()=default
AssetShallow & WithPackagingGroupId(PackagingGroupIdT &&value)
AssetShallow & AddTags(TagsKeyT &&key, TagsValueT &&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
Aws::Utils::Json::JsonValue JsonValue