AWS SDK for C++

AWS SDK for C++ Version 1.11.846

Loading...
Searching...
No Matches
CreateAssetRequest.h
1
6#pragma once
7#include <aws/core/utils/Document.h>
8#include <aws/core/utils/UUID.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/devops-agent/DevOpsAgentRequest.h>
11#include <aws/devops-agent/DevOpsAgent_EXPORTS.h>
12#include <aws/devops-agent/model/AssetContent.h>
13
14#include <utility>
15
16namespace Aws {
17namespace DevOpsAgent {
18namespace Model {
19
26 public:
27 AWS_DEVOPSAGENT_API CreateAssetRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateAsset"; }
34
35 AWS_DEVOPSAGENT_API Aws::String SerializePayload() const override;
36
38
41 inline const Aws::String& GetAgentSpaceId() const { return m_agentSpaceId; }
42 inline bool AgentSpaceIdHasBeenSet() const { return m_agentSpaceIdHasBeenSet; }
43 template <typename AgentSpaceIdT = Aws::String>
44 void SetAgentSpaceId(AgentSpaceIdT&& value) {
45 m_agentSpaceIdHasBeenSet = true;
46 m_agentSpaceId = std::forward<AgentSpaceIdT>(value);
47 }
48 template <typename AgentSpaceIdT = Aws::String>
49 CreateAssetRequest& WithAgentSpaceId(AgentSpaceIdT&& value) {
50 SetAgentSpaceId(std::forward<AgentSpaceIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetAssetType() const { return m_assetType; }
60 inline bool AssetTypeHasBeenSet() const { return m_assetTypeHasBeenSet; }
61 template <typename AssetTypeT = Aws::String>
62 void SetAssetType(AssetTypeT&& value) {
63 m_assetTypeHasBeenSet = true;
64 m_assetType = std::forward<AssetTypeT>(value);
65 }
66 template <typename AssetTypeT = Aws::String>
67 CreateAssetRequest& WithAssetType(AssetTypeT&& value) {
68 SetAssetType(std::forward<AssetTypeT>(value));
69 return *this;
70 }
72
74
77 inline Aws::Utils::DocumentView GetMetadata() const { return m_metadata; }
78 inline bool MetadataHasBeenSet() const { return m_metadataHasBeenSet; }
79 template <typename MetadataT = Aws::Utils::Document>
80 void SetMetadata(MetadataT&& value) {
81 m_metadataHasBeenSet = true;
82 m_metadata = std::forward<MetadataT>(value);
83 }
84 template <typename MetadataT = Aws::Utils::Document>
85 CreateAssetRequest& WithMetadata(MetadataT&& value) {
86 SetMetadata(std::forward<MetadataT>(value));
87 return *this;
88 }
90
92
96 inline const AssetContent& GetContent() const { return m_content; }
97 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
98 template <typename ContentT = AssetContent>
99 void SetContent(ContentT&& value) {
100 m_contentHasBeenSet = true;
101 m_content = std::forward<ContentT>(value);
102 }
103 template <typename ContentT = AssetContent>
104 CreateAssetRequest& WithContent(ContentT&& value) {
105 SetContent(std::forward<ContentT>(value));
106 return *this;
107 }
109
111
114 inline const Aws::String& GetClientToken() const { return m_clientToken; }
115 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
116 template <typename ClientTokenT = Aws::String>
117 void SetClientToken(ClientTokenT&& value) {
118 m_clientTokenHasBeenSet = true;
119 m_clientToken = std::forward<ClientTokenT>(value);
120 }
121 template <typename ClientTokenT = Aws::String>
122 CreateAssetRequest& WithClientToken(ClientTokenT&& value) {
123 SetClientToken(std::forward<ClientTokenT>(value));
124 return *this;
125 }
127 private:
128 Aws::String m_agentSpaceId;
129
130 Aws::String m_assetType;
131
132 Aws::Utils::Document m_metadata;
133
134 AssetContent m_content;
135
137 bool m_agentSpaceIdHasBeenSet = false;
138 bool m_assetTypeHasBeenSet = false;
139 bool m_metadataHasBeenSet = false;
140 bool m_contentHasBeenSet = false;
141 bool m_clientTokenHasBeenSet = true;
142};
143
144} // namespace Model
145} // namespace DevOpsAgent
146} // namespace Aws
CreateAssetRequest & WithClientToken(ClientTokenT &&value)
CreateAssetRequest & WithAgentSpaceId(AgentSpaceIdT &&value)
virtual const char * GetServiceRequestName() const override
AWS_DEVOPSAGENT_API CreateAssetRequest()=default
AWS_DEVOPSAGENT_API Aws::String SerializePayload() const override
CreateAssetRequest & WithContent(ContentT &&value)
CreateAssetRequest & WithAssetType(AssetTypeT &&value)
Aws::Utils::DocumentView GetMetadata() const
CreateAssetRequest & WithMetadata(MetadataT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String