AWS SDK for C++

AWS SDK for C++ Version 1.11.757

Loading...
Searching...
No Matches
CreateAssetRequest.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/MediaPackageVodRequest.h>
10#include <aws/mediapackage-vod/MediaPackageVod_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace MediaPackageVod {
16namespace Model {
17
24 public:
25 AWS_MEDIAPACKAGEVOD_API CreateAssetRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "CreateAsset"; }
32
33 AWS_MEDIAPACKAGEVOD_API Aws::String SerializePayload() const override;
34
36
39 inline const Aws::String& GetId() const { return m_id; }
40 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
41 template <typename IdT = Aws::String>
42 void SetId(IdT&& value) {
43 m_idHasBeenSet = true;
44 m_id = std::forward<IdT>(value);
45 }
46 template <typename IdT = Aws::String>
47 CreateAssetRequest& WithId(IdT&& value) {
48 SetId(std::forward<IdT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetPackagingGroupId() const { return m_packagingGroupId; }
58 inline bool PackagingGroupIdHasBeenSet() const { return m_packagingGroupIdHasBeenSet; }
59 template <typename PackagingGroupIdT = Aws::String>
60 void SetPackagingGroupId(PackagingGroupIdT&& value) {
61 m_packagingGroupIdHasBeenSet = true;
62 m_packagingGroupId = std::forward<PackagingGroupIdT>(value);
63 }
64 template <typename PackagingGroupIdT = Aws::String>
65 CreateAssetRequest& WithPackagingGroupId(PackagingGroupIdT&& value) {
66 SetPackagingGroupId(std::forward<PackagingGroupIdT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetResourceId() const { return m_resourceId; }
76 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
77 template <typename ResourceIdT = Aws::String>
78 void SetResourceId(ResourceIdT&& value) {
79 m_resourceIdHasBeenSet = true;
80 m_resourceId = std::forward<ResourceIdT>(value);
81 }
82 template <typename ResourceIdT = Aws::String>
83 CreateAssetRequest& WithResourceId(ResourceIdT&& value) {
84 SetResourceId(std::forward<ResourceIdT>(value));
85 return *this;
86 }
88
90
93 inline const Aws::String& GetSourceArn() const { return m_sourceArn; }
94 inline bool SourceArnHasBeenSet() const { return m_sourceArnHasBeenSet; }
95 template <typename SourceArnT = Aws::String>
96 void SetSourceArn(SourceArnT&& value) {
97 m_sourceArnHasBeenSet = true;
98 m_sourceArn = std::forward<SourceArnT>(value);
99 }
100 template <typename SourceArnT = Aws::String>
101 CreateAssetRequest& WithSourceArn(SourceArnT&& value) {
102 SetSourceArn(std::forward<SourceArnT>(value));
103 return *this;
104 }
106
108
111 inline const Aws::String& GetSourceRoleArn() const { return m_sourceRoleArn; }
112 inline bool SourceRoleArnHasBeenSet() const { return m_sourceRoleArnHasBeenSet; }
113 template <typename SourceRoleArnT = Aws::String>
114 void SetSourceRoleArn(SourceRoleArnT&& value) {
115 m_sourceRoleArnHasBeenSet = true;
116 m_sourceRoleArn = std::forward<SourceRoleArnT>(value);
117 }
118 template <typename SourceRoleArnT = Aws::String>
119 CreateAssetRequest& WithSourceRoleArn(SourceRoleArnT&& value) {
120 SetSourceRoleArn(std::forward<SourceRoleArnT>(value));
121 return *this;
122 }
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) {
131 m_tagsHasBeenSet = true;
132 m_tags = std::forward<TagsT>(value);
133 }
134 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
135 CreateAssetRequest& WithTags(TagsT&& value) {
136 SetTags(std::forward<TagsT>(value));
137 return *this;
138 }
139 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
140 CreateAssetRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
141 m_tagsHasBeenSet = true;
142 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
143 return *this;
144 }
146 private:
147 Aws::String m_id;
148
149 Aws::String m_packagingGroupId;
150
151 Aws::String m_resourceId;
152
153 Aws::String m_sourceArn;
154
155 Aws::String m_sourceRoleArn;
156
158 bool m_idHasBeenSet = false;
159 bool m_packagingGroupIdHasBeenSet = false;
160 bool m_resourceIdHasBeenSet = false;
161 bool m_sourceArnHasBeenSet = false;
162 bool m_sourceRoleArnHasBeenSet = false;
163 bool m_tagsHasBeenSet = false;
164};
165
166} // namespace Model
167} // namespace MediaPackageVod
168} // namespace Aws
CreateAssetRequest & WithPackagingGroupId(PackagingGroupIdT &&value)
CreateAssetRequest & WithSourceRoleArn(SourceRoleArnT &&value)
virtual const char * GetServiceRequestName() const override
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_MEDIAPACKAGEVOD_API CreateAssetRequest()=default
CreateAssetRequest & WithTags(TagsT &&value)
CreateAssetRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_MEDIAPACKAGEVOD_API Aws::String SerializePayload() const override
void SetPackagingGroupId(PackagingGroupIdT &&value)
CreateAssetRequest & WithSourceArn(SourceArnT &&value)
CreateAssetRequest & WithResourceId(ResourceIdT &&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