AWS SDK for C++

AWS SDK for C++ Version 1.11.787

Loading...
Searching...
No Matches
CreateAgentSpaceResult.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 {
32 public:
33 AWS_DEVOPSAGENT_API CreateAgentSpaceResult() = default;
36
38
39 inline const AgentSpace& GetAgentSpace() const { return m_agentSpace; }
40 template <typename AgentSpaceT = AgentSpace>
41 void SetAgentSpace(AgentSpaceT&& value) {
42 m_agentSpaceHasBeenSet = true;
43 m_agentSpace = std::forward<AgentSpaceT>(value);
44 }
45 template <typename AgentSpaceT = AgentSpace>
46 CreateAgentSpaceResult& WithAgentSpace(AgentSpaceT&& value) {
47 SetAgentSpace(std::forward<AgentSpaceT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
57 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
58 void SetTags(TagsT&& value) {
59 m_tagsHasBeenSet = true;
60 m_tags = std::forward<TagsT>(value);
61 }
62 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
64 SetTags(std::forward<TagsT>(value));
65 return *this;
66 }
67 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
68 CreateAgentSpaceResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
69 m_tagsHasBeenSet = true;
70 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
71 return *this;
72 }
74
76
77 inline const Aws::String& GetRequestId() const { return m_requestId; }
78 template <typename RequestIdT = Aws::String>
79 void SetRequestId(RequestIdT&& value) {
80 m_requestIdHasBeenSet = true;
81 m_requestId = std::forward<RequestIdT>(value);
82 }
83 template <typename RequestIdT = Aws::String>
85 SetRequestId(std::forward<RequestIdT>(value));
86 return *this;
87 }
89 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
90
91 private:
92 AgentSpace m_agentSpace;
93
95
96 Aws::String m_requestId;
97 Aws::Http::HttpResponseCode m_HttpResponseCode;
98 bool m_agentSpaceHasBeenSet = false;
99 bool m_tagsHasBeenSet = false;
100 bool m_requestIdHasBeenSet = false;
101};
102
103} // namespace Model
104} // namespace DevOpsAgent
105} // namespace Aws
AWS_DEVOPSAGENT_API CreateAgentSpaceResult()=default
CreateAgentSpaceResult & WithRequestId(RequestIdT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
CreateAgentSpaceResult & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateAgentSpaceResult & WithAgentSpace(AgentSpaceT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateAgentSpaceResult & WithTags(TagsT &&value)
AWS_DEVOPSAGENT_API CreateAgentSpaceResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_DEVOPSAGENT_API CreateAgentSpaceResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
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