AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AssetShallow.h
1
6#pragma once
7#include <aws/mediapackage-vod/MediaPackageVod_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace MediaPackageVod
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_MEDIAPACKAGEVOD_API AssetShallow() = default;
36 AWS_MEDIAPACKAGEVOD_API AssetShallow(Aws::Utils::Json::JsonView jsonValue);
37 AWS_MEDIAPACKAGEVOD_API AssetShallow& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_MEDIAPACKAGEVOD_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetArn() const { return m_arn; }
46 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
47 template<typename ArnT = Aws::String>
48 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
49 template<typename ArnT = Aws::String>
50 AssetShallow& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
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) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
61 template<typename CreatedAtT = Aws::String>
62 AssetShallow& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
64
66
69 inline const Aws::String& GetId() const { return m_id; }
70 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
71 template<typename IdT = Aws::String>
72 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
73 template<typename IdT = Aws::String>
74 AssetShallow& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
76
78
81 inline const Aws::String& GetPackagingGroupId() const { return m_packagingGroupId; }
82 inline bool PackagingGroupIdHasBeenSet() const { return m_packagingGroupIdHasBeenSet; }
83 template<typename PackagingGroupIdT = Aws::String>
84 void SetPackagingGroupId(PackagingGroupIdT&& value) { m_packagingGroupIdHasBeenSet = true; m_packagingGroupId = std::forward<PackagingGroupIdT>(value); }
85 template<typename PackagingGroupIdT = Aws::String>
86 AssetShallow& WithPackagingGroupId(PackagingGroupIdT&& value) { SetPackagingGroupId(std::forward<PackagingGroupIdT>(value)); return *this;}
88
90
93 inline const Aws::String& GetResourceId() const { return m_resourceId; }
94 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
95 template<typename ResourceIdT = Aws::String>
96 void SetResourceId(ResourceIdT&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::forward<ResourceIdT>(value); }
97 template<typename ResourceIdT = Aws::String>
98 AssetShallow& WithResourceId(ResourceIdT&& value) { SetResourceId(std::forward<ResourceIdT>(value)); return *this;}
100
102
105 inline const Aws::String& GetSourceArn() const { return m_sourceArn; }
106 inline bool SourceArnHasBeenSet() const { return m_sourceArnHasBeenSet; }
107 template<typename SourceArnT = Aws::String>
108 void SetSourceArn(SourceArnT&& value) { m_sourceArnHasBeenSet = true; m_sourceArn = std::forward<SourceArnT>(value); }
109 template<typename SourceArnT = Aws::String>
110 AssetShallow& WithSourceArn(SourceArnT&& value) { SetSourceArn(std::forward<SourceArnT>(value)); return *this;}
112
114
117 inline const Aws::String& GetSourceRoleArn() const { return m_sourceRoleArn; }
118 inline bool SourceRoleArnHasBeenSet() const { return m_sourceRoleArnHasBeenSet; }
119 template<typename SourceRoleArnT = Aws::String>
120 void SetSourceRoleArn(SourceRoleArnT&& value) { m_sourceRoleArnHasBeenSet = true; m_sourceRoleArn = std::forward<SourceRoleArnT>(value); }
121 template<typename SourceRoleArnT = Aws::String>
122 AssetShallow& WithSourceRoleArn(SourceRoleArnT&& value) { SetSourceRoleArn(std::forward<SourceRoleArnT>(value)); return *this;}
124
126
127 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
128 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
129 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
130 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
131 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
132 AssetShallow& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
133 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
134 AssetShallow& AddTags(TagsKeyT&& key, TagsValueT&& value) {
135 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
136 }
138 private:
139
140 Aws::String m_arn;
141 bool m_arnHasBeenSet = false;
142
143 Aws::String m_createdAt;
144 bool m_createdAtHasBeenSet = false;
145
146 Aws::String m_id;
147 bool m_idHasBeenSet = false;
148
149 Aws::String m_packagingGroupId;
150 bool m_packagingGroupIdHasBeenSet = false;
151
152 Aws::String m_resourceId;
153 bool m_resourceIdHasBeenSet = false;
154
155 Aws::String m_sourceArn;
156 bool m_sourceArnHasBeenSet = false;
157
158 Aws::String m_sourceRoleArn;
159 bool m_sourceRoleArnHasBeenSet = false;
160
162 bool m_tagsHasBeenSet = false;
163 };
164
165} // namespace Model
166} // namespace MediaPackageVod
167} // 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