AWS SDK for C++

AWS SDK for C++ Version 1.11.846

Loading...
Searching...
No Matches
GetAssetContentRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/devops-agent/DevOpsAgentRequest.h>
9#include <aws/devops-agent/DevOpsAgent_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Http {
15class URI;
16} // namespace Http
17namespace DevOpsAgent {
18namespace Model {
19
27 public:
28 AWS_DEVOPSAGENT_API GetAssetContentRequest() = 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 "GetAssetContent"; }
35
36 AWS_DEVOPSAGENT_API Aws::String SerializePayload() const override;
37
38 AWS_DEVOPSAGENT_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
39
41
44 inline const Aws::String& GetAgentSpaceId() const { return m_agentSpaceId; }
45 inline bool AgentSpaceIdHasBeenSet() const { return m_agentSpaceIdHasBeenSet; }
46 template <typename AgentSpaceIdT = Aws::String>
47 void SetAgentSpaceId(AgentSpaceIdT&& value) {
48 m_agentSpaceIdHasBeenSet = true;
49 m_agentSpaceId = std::forward<AgentSpaceIdT>(value);
50 }
51 template <typename AgentSpaceIdT = Aws::String>
52 GetAssetContentRequest& WithAgentSpaceId(AgentSpaceIdT&& value) {
53 SetAgentSpaceId(std::forward<AgentSpaceIdT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetAssetId() const { return m_assetId; }
63 inline bool AssetIdHasBeenSet() const { return m_assetIdHasBeenSet; }
64 template <typename AssetIdT = Aws::String>
65 void SetAssetId(AssetIdT&& value) {
66 m_assetIdHasBeenSet = true;
67 m_assetId = std::forward<AssetIdT>(value);
68 }
69 template <typename AssetIdT = Aws::String>
71 SetAssetId(std::forward<AssetIdT>(value));
72 return *this;
73 }
75
77
81 inline int GetAssetVersion() const { return m_assetVersion; }
82 inline bool AssetVersionHasBeenSet() const { return m_assetVersionHasBeenSet; }
83 inline void SetAssetVersion(int value) {
84 m_assetVersionHasBeenSet = true;
85 m_assetVersion = value;
86 }
88 SetAssetVersion(value);
89 return *this;
90 }
92 private:
93 Aws::String m_agentSpaceId;
94
95 Aws::String m_assetId;
96
97 int m_assetVersion{0};
98 bool m_agentSpaceIdHasBeenSet = false;
99 bool m_assetIdHasBeenSet = false;
100 bool m_assetVersionHasBeenSet = false;
101};
102
103} // namespace Model
104} // namespace DevOpsAgent
105} // namespace Aws
AWS_DEVOPSAGENT_API GetAssetContentRequest()=default
GetAssetContentRequest & WithAssetVersion(int value)
AWS_DEVOPSAGENT_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
AWS_DEVOPSAGENT_API Aws::String SerializePayload() const override
GetAssetContentRequest & WithAgentSpaceId(AgentSpaceIdT &&value)
virtual const char * GetServiceRequestName() const override
GetAssetContentRequest & WithAssetId(AssetIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String