AWS SDK for C++

AWS SDK for C++ Version 1.11.787

Loading...
Searching...
No Matches
ConfigureAgentResult.h
1
6#pragma once
7#include <aws/codeguruprofiler/CodeGuruProfiler_EXPORTS.h>
8#include <aws/codeguruprofiler/model/AgentConfiguration.h>
9#include <aws/core/http/HttpResponse.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Json {
20class JsonValue;
21} // namespace Json
22} // namespace Utils
23namespace CodeGuruProfiler {
24namespace Model {
32 public:
33 AWS_CODEGURUPROFILER_API ConfigureAgentResult() = default;
36
38
44 inline const AgentConfiguration& GetConfiguration() const { return m_configuration; }
45 template <typename ConfigurationT = AgentConfiguration>
46 void SetConfiguration(ConfigurationT&& value) {
47 m_configurationHasBeenSet = true;
48 m_configuration = std::forward<ConfigurationT>(value);
49 }
50 template <typename ConfigurationT = AgentConfiguration>
51 ConfigureAgentResult& WithConfiguration(ConfigurationT&& value) {
52 SetConfiguration(std::forward<ConfigurationT>(value));
53 return *this;
54 }
56
58
59 inline const Aws::String& GetRequestId() const { return m_requestId; }
60 template <typename RequestIdT = Aws::String>
61 void SetRequestId(RequestIdT&& value) {
62 m_requestIdHasBeenSet = true;
63 m_requestId = std::forward<RequestIdT>(value);
64 }
65 template <typename RequestIdT = Aws::String>
66 ConfigureAgentResult& WithRequestId(RequestIdT&& value) {
67 SetRequestId(std::forward<RequestIdT>(value));
68 return *this;
69 }
71 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
72
73 private:
74 AgentConfiguration m_configuration;
75
76 Aws::String m_requestId;
77 Aws::Http::HttpResponseCode m_HttpResponseCode;
78 bool m_configurationHasBeenSet = false;
79 bool m_requestIdHasBeenSet = false;
80};
81
82} // namespace Model
83} // namespace CodeGuruProfiler
84} // namespace Aws
ConfigureAgentResult & WithConfiguration(ConfigurationT &&value)
AWS_CODEGURUPROFILER_API ConfigureAgentResult()=default
AWS_CODEGURUPROFILER_API ConfigureAgentResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_CODEGURUPROFILER_API ConfigureAgentResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
const AgentConfiguration & GetConfiguration() const
ConfigureAgentResult & WithRequestId(RequestIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue