AWS SDK for C++

AWS SDK for C++ Version 1.11.845

Loading...
Searching...
No Matches
GetAssetFileRequest.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
26 public:
27 AWS_DEVOPSAGENT_API GetAssetFileRequest() = 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 "GetAssetFile"; }
34
35 AWS_DEVOPSAGENT_API Aws::String SerializePayload() const override;
36
37 AWS_DEVOPSAGENT_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
38
40
43 inline const Aws::String& GetAgentSpaceId() const { return m_agentSpaceId; }
44 inline bool AgentSpaceIdHasBeenSet() const { return m_agentSpaceIdHasBeenSet; }
45 template <typename AgentSpaceIdT = Aws::String>
46 void SetAgentSpaceId(AgentSpaceIdT&& value) {
47 m_agentSpaceIdHasBeenSet = true;
48 m_agentSpaceId = std::forward<AgentSpaceIdT>(value);
49 }
50 template <typename AgentSpaceIdT = Aws::String>
51 GetAssetFileRequest& WithAgentSpaceId(AgentSpaceIdT&& value) {
52 SetAgentSpaceId(std::forward<AgentSpaceIdT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetAssetId() const { return m_assetId; }
62 inline bool AssetIdHasBeenSet() const { return m_assetIdHasBeenSet; }
63 template <typename AssetIdT = Aws::String>
64 void SetAssetId(AssetIdT&& value) {
65 m_assetIdHasBeenSet = true;
66 m_assetId = std::forward<AssetIdT>(value);
67 }
68 template <typename AssetIdT = Aws::String>
69 GetAssetFileRequest& WithAssetId(AssetIdT&& value) {
70 SetAssetId(std::forward<AssetIdT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetPath() const { return m_path; }
80 inline bool PathHasBeenSet() const { return m_pathHasBeenSet; }
81 template <typename PathT = Aws::String>
82 void SetPath(PathT&& value) {
83 m_pathHasBeenSet = true;
84 m_path = std::forward<PathT>(value);
85 }
86 template <typename PathT = Aws::String>
87 GetAssetFileRequest& WithPath(PathT&& value) {
88 SetPath(std::forward<PathT>(value));
89 return *this;
90 }
92
94
98 inline int GetAssetVersion() const { return m_assetVersion; }
99 inline bool AssetVersionHasBeenSet() const { return m_assetVersionHasBeenSet; }
100 inline void SetAssetVersion(int value) {
101 m_assetVersionHasBeenSet = true;
102 m_assetVersion = value;
103 }
105 SetAssetVersion(value);
106 return *this;
107 }
109 private:
110 Aws::String m_agentSpaceId;
111
112 Aws::String m_assetId;
113
114 Aws::String m_path;
115
116 int m_assetVersion{0};
117 bool m_agentSpaceIdHasBeenSet = false;
118 bool m_assetIdHasBeenSet = false;
119 bool m_pathHasBeenSet = false;
120 bool m_assetVersionHasBeenSet = false;
121};
122
123} // namespace Model
124} // namespace DevOpsAgent
125} // namespace Aws
GetAssetFileRequest & WithAgentSpaceId(AgentSpaceIdT &&value)
GetAssetFileRequest & WithPath(PathT &&value)
AWS_DEVOPSAGENT_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
AWS_DEVOPSAGENT_API Aws::String SerializePayload() const override
AWS_DEVOPSAGENT_API GetAssetFileRequest()=default
virtual const char * GetServiceRequestName() const override
GetAssetFileRequest & WithAssetVersion(int value)
GetAssetFileRequest & WithAssetId(AssetIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String