AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
46 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
47 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
48 inline CreateAssetRequest& WithId(const Aws::String& value) { SetId(value); return *this;}
49 inline CreateAssetRequest& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
50 inline CreateAssetRequest& WithId(const char* value) { SetId(value); return *this;}
52
54
57 inline const Aws::String& GetPackagingGroupId() const{ return m_packagingGroupId; }
58 inline bool PackagingGroupIdHasBeenSet() const { return m_packagingGroupIdHasBeenSet; }
59 inline void SetPackagingGroupId(const Aws::String& value) { m_packagingGroupIdHasBeenSet = true; m_packagingGroupId = value; }
60 inline void SetPackagingGroupId(Aws::String&& value) { m_packagingGroupIdHasBeenSet = true; m_packagingGroupId = std::move(value); }
61 inline void SetPackagingGroupId(const char* value) { m_packagingGroupIdHasBeenSet = true; m_packagingGroupId.assign(value); }
62 inline CreateAssetRequest& WithPackagingGroupId(const Aws::String& value) { SetPackagingGroupId(value); return *this;}
63 inline CreateAssetRequest& WithPackagingGroupId(Aws::String&& value) { SetPackagingGroupId(std::move(value)); return *this;}
64 inline CreateAssetRequest& WithPackagingGroupId(const char* value) { SetPackagingGroupId(value); return *this;}
66
68
71 inline const Aws::String& GetResourceId() const{ return m_resourceId; }
72 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
73 inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
74 inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
75 inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
76 inline CreateAssetRequest& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
77 inline CreateAssetRequest& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
78 inline CreateAssetRequest& WithResourceId(const char* value) { SetResourceId(value); return *this;}
80
82
85 inline const Aws::String& GetSourceArn() const{ return m_sourceArn; }
86 inline bool SourceArnHasBeenSet() const { return m_sourceArnHasBeenSet; }
87 inline void SetSourceArn(const Aws::String& value) { m_sourceArnHasBeenSet = true; m_sourceArn = value; }
88 inline void SetSourceArn(Aws::String&& value) { m_sourceArnHasBeenSet = true; m_sourceArn = std::move(value); }
89 inline void SetSourceArn(const char* value) { m_sourceArnHasBeenSet = true; m_sourceArn.assign(value); }
90 inline CreateAssetRequest& WithSourceArn(const Aws::String& value) { SetSourceArn(value); return *this;}
91 inline CreateAssetRequest& WithSourceArn(Aws::String&& value) { SetSourceArn(std::move(value)); return *this;}
92 inline CreateAssetRequest& WithSourceArn(const char* value) { SetSourceArn(value); return *this;}
94
96
99 inline const Aws::String& GetSourceRoleArn() const{ return m_sourceRoleArn; }
100 inline bool SourceRoleArnHasBeenSet() const { return m_sourceRoleArnHasBeenSet; }
101 inline void SetSourceRoleArn(const Aws::String& value) { m_sourceRoleArnHasBeenSet = true; m_sourceRoleArn = value; }
102 inline void SetSourceRoleArn(Aws::String&& value) { m_sourceRoleArnHasBeenSet = true; m_sourceRoleArn = std::move(value); }
103 inline void SetSourceRoleArn(const char* value) { m_sourceRoleArnHasBeenSet = true; m_sourceRoleArn.assign(value); }
104 inline CreateAssetRequest& WithSourceRoleArn(const Aws::String& value) { SetSourceRoleArn(value); return *this;}
105 inline CreateAssetRequest& WithSourceRoleArn(Aws::String&& value) { SetSourceRoleArn(std::move(value)); return *this;}
106 inline CreateAssetRequest& WithSourceRoleArn(const char* value) { SetSourceRoleArn(value); return *this;}
108
110
111 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
112 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
113 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
114 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
115 inline CreateAssetRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
116 inline CreateAssetRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
117 inline CreateAssetRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
118 inline CreateAssetRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
119 inline CreateAssetRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
120 inline CreateAssetRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
121 inline CreateAssetRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
122 inline CreateAssetRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
123 inline CreateAssetRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
125 private:
126
127 Aws::String m_id;
128 bool m_idHasBeenSet = false;
129
130 Aws::String m_packagingGroupId;
131 bool m_packagingGroupIdHasBeenSet = false;
132
133 Aws::String m_resourceId;
134 bool m_resourceIdHasBeenSet = false;
135
136 Aws::String m_sourceArn;
137 bool m_sourceArnHasBeenSet = false;
138
139 Aws::String m_sourceRoleArn;
140 bool m_sourceRoleArnHasBeenSet = false;
141
143 bool m_tagsHasBeenSet = false;
144 };
145
146} // namespace Model
147} // namespace MediaPackageVod
148} // namespace Aws
CreateAssetRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateAssetRequest & AddTags(Aws::String &&key, const char *value)
CreateAssetRequest & WithId(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateAssetRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreateAssetRequest & WithPackagingGroupId(const Aws::String &value)
CreateAssetRequest & WithResourceId(const char *value)
CreateAssetRequest & WithSourceRoleArn(Aws::String &&value)
CreateAssetRequest & WithResourceId(const Aws::String &value)
CreateAssetRequest & AddTags(const char *key, const char *value)
CreateAssetRequest & AddTags(const char *key, Aws::String &&value)
CreateAssetRequest & WithSourceArn(Aws::String &&value)
CreateAssetRequest & WithId(Aws::String &&value)
CreateAssetRequest & AddTags(const Aws::String &key, const Aws::String &value)
CreateAssetRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreateAssetRequest & WithSourceRoleArn(const char *value)
void SetPackagingGroupId(const Aws::String &value)
CreateAssetRequest & WithPackagingGroupId(Aws::String &&value)
CreateAssetRequest & WithPackagingGroupId(const char *value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateAssetRequest & WithSourceArn(const char *value)
CreateAssetRequest & WithResourceId(Aws::String &&value)
CreateAssetRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateAssetRequest & WithSourceArn(const Aws::String &value)
CreateAssetRequest & WithSourceRoleArn(const Aws::String &value)
AWS_MEDIAPACKAGEVOD_API Aws::String SerializePayload() const override
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateAssetRequest & WithId(const char *value)
CreateAssetRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&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