AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CreateAssetRequest.h
1
6#pragma once
7#include <aws/mediapackage-vod/MediaPackageVod_EXPORTS.h>
8#include <aws/mediapackage-vod/MediaPackageVodRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <utility>
12
13namespace Aws
14{
15namespace MediaPackageVod
16{
17namespace Model
18{
19
26 {
27 public:
28 AWS_MEDIAPACKAGEVOD_API CreateAssetRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateAsset"; }
35
36 AWS_MEDIAPACKAGEVOD_API Aws::String SerializePayload() const override;
37
38
40
43 inline const Aws::String& GetId() const { return m_id; }
44 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
45 template<typename IdT = Aws::String>
46 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
47 template<typename IdT = Aws::String>
48 CreateAssetRequest& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
50
52
55 inline const Aws::String& GetPackagingGroupId() const { return m_packagingGroupId; }
56 inline bool PackagingGroupIdHasBeenSet() const { return m_packagingGroupIdHasBeenSet; }
57 template<typename PackagingGroupIdT = Aws::String>
58 void SetPackagingGroupId(PackagingGroupIdT&& value) { m_packagingGroupIdHasBeenSet = true; m_packagingGroupId = std::forward<PackagingGroupIdT>(value); }
59 template<typename PackagingGroupIdT = Aws::String>
60 CreateAssetRequest& WithPackagingGroupId(PackagingGroupIdT&& value) { SetPackagingGroupId(std::forward<PackagingGroupIdT>(value)); return *this;}
62
64
67 inline const Aws::String& GetResourceId() const { return m_resourceId; }
68 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
69 template<typename ResourceIdT = Aws::String>
70 void SetResourceId(ResourceIdT&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::forward<ResourceIdT>(value); }
71 template<typename ResourceIdT = Aws::String>
72 CreateAssetRequest& WithResourceId(ResourceIdT&& value) { SetResourceId(std::forward<ResourceIdT>(value)); return *this;}
74
76
79 inline const Aws::String& GetSourceArn() const { return m_sourceArn; }
80 inline bool SourceArnHasBeenSet() const { return m_sourceArnHasBeenSet; }
81 template<typename SourceArnT = Aws::String>
82 void SetSourceArn(SourceArnT&& value) { m_sourceArnHasBeenSet = true; m_sourceArn = std::forward<SourceArnT>(value); }
83 template<typename SourceArnT = Aws::String>
84 CreateAssetRequest& WithSourceArn(SourceArnT&& value) { SetSourceArn(std::forward<SourceArnT>(value)); return *this;}
86
88
91 inline const Aws::String& GetSourceRoleArn() const { return m_sourceRoleArn; }
92 inline bool SourceRoleArnHasBeenSet() const { return m_sourceRoleArnHasBeenSet; }
93 template<typename SourceRoleArnT = Aws::String>
94 void SetSourceRoleArn(SourceRoleArnT&& value) { m_sourceRoleArnHasBeenSet = true; m_sourceRoleArn = std::forward<SourceRoleArnT>(value); }
95 template<typename SourceRoleArnT = Aws::String>
96 CreateAssetRequest& WithSourceRoleArn(SourceRoleArnT&& value) { SetSourceRoleArn(std::forward<SourceRoleArnT>(value)); return *this;}
98
100
101 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
102 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
103 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
104 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
105 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
106 CreateAssetRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
107 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
108 CreateAssetRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
109 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
110 }
112 private:
113
114 Aws::String m_id;
115 bool m_idHasBeenSet = false;
116
117 Aws::String m_packagingGroupId;
118 bool m_packagingGroupIdHasBeenSet = false;
119
120 Aws::String m_resourceId;
121 bool m_resourceIdHasBeenSet = false;
122
123 Aws::String m_sourceArn;
124 bool m_sourceArnHasBeenSet = false;
125
126 Aws::String m_sourceRoleArn;
127 bool m_sourceRoleArnHasBeenSet = false;
128
130 bool m_tagsHasBeenSet = false;
131 };
132
133} // namespace Model
134} // namespace MediaPackageVod
135} // 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