AWS SDK for C++

AWS SDK for C++ Version 1.11.787

Loading...
Searching...
No Matches
GetAgentSpaceResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/devops-agent/DevOpsAgent_EXPORTS.h>
11#include <aws/devops-agent/model/AgentSpace.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace DevOpsAgent {
25namespace Model {
33 public:
34 AWS_DEVOPSAGENT_API GetAgentSpaceResult() = default;
37
39
40 inline const AgentSpace& GetAgentSpace() const { return m_agentSpace; }
41 template <typename AgentSpaceT = AgentSpace>
42 void SetAgentSpace(AgentSpaceT&& value) {
43 m_agentSpaceHasBeenSet = true;
44 m_agentSpace = std::forward<AgentSpaceT>(value);
45 }
46 template <typename AgentSpaceT = AgentSpace>
47 GetAgentSpaceResult& WithAgentSpace(AgentSpaceT&& value) {
48 SetAgentSpace(std::forward<AgentSpaceT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
58 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
59 void SetTags(TagsT&& value) {
60 m_tagsHasBeenSet = true;
61 m_tags = std::forward<TagsT>(value);
62 }
63 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
64 GetAgentSpaceResult& WithTags(TagsT&& value) {
65 SetTags(std::forward<TagsT>(value));
66 return *this;
67 }
68 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
69 GetAgentSpaceResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
70 m_tagsHasBeenSet = true;
71 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
72 return *this;
73 }
75
77
78 inline const Aws::String& GetRequestId() const { return m_requestId; }
79 template <typename RequestIdT = Aws::String>
80 void SetRequestId(RequestIdT&& value) {
81 m_requestIdHasBeenSet = true;
82 m_requestId = std::forward<RequestIdT>(value);
83 }
84 template <typename RequestIdT = Aws::String>
85 GetAgentSpaceResult& WithRequestId(RequestIdT&& value) {
86 SetRequestId(std::forward<RequestIdT>(value));
87 return *this;
88 }
90 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
91
92 private:
93 AgentSpace m_agentSpace;
94
96
97 Aws::String m_requestId;
98 Aws::Http::HttpResponseCode m_HttpResponseCode;
99 bool m_agentSpaceHasBeenSet = false;
100 bool m_tagsHasBeenSet = false;
101 bool m_requestIdHasBeenSet = false;
102};
103
104} // namespace Model
105} // namespace DevOpsAgent
106} // namespace Aws
GetAgentSpaceResult & WithRequestId(RequestIdT &&value)
AWS_DEVOPSAGENT_API GetAgentSpaceResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetAgentSpaceResult & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_DEVOPSAGENT_API GetAgentSpaceResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_DEVOPSAGENT_API GetAgentSpaceResult()=default
Aws::Http::HttpResponseCode GetHttpResponseCode() const
GetAgentSpaceResult & WithTags(TagsT &&value)
GetAgentSpaceResult & WithAgentSpace(AgentSpaceT &&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
Aws::Utils::Json::JsonValue JsonValue