AWS SDK for C++

AWS SDK for C++ Version 1.11.920

Loading...
Searching...
No Matches
CreateGatewayResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ecs/ECS_EXPORTS.h>
10#include <aws/ecs/model/GatewayStatus.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 ECS {
24namespace Model {
26 public:
27 AWS_ECS_API CreateGatewayResult() = default;
30
32
35 inline const Aws::String& GetGatewayArn() const { return m_gatewayArn; }
36 template <typename GatewayArnT = Aws::String>
37 void SetGatewayArn(GatewayArnT&& value) {
38 m_gatewayArnHasBeenSet = true;
39 m_gatewayArn = std::forward<GatewayArnT>(value);
40 }
41 template <typename GatewayArnT = Aws::String>
42 CreateGatewayResult& WithGatewayArn(GatewayArnT&& value) {
43 SetGatewayArn(std::forward<GatewayArnT>(value));
44 return *this;
45 }
47
49
52 inline const Aws::String& GetName() const { return m_name; }
53 template <typename NameT = Aws::String>
54 void SetName(NameT&& value) {
55 m_nameHasBeenSet = true;
56 m_name = std::forward<NameT>(value);
57 }
58 template <typename NameT = Aws::String>
59 CreateGatewayResult& WithName(NameT&& value) {
60 SetName(std::forward<NameT>(value));
61 return *this;
62 }
64
66
70 inline GatewayStatus GetStatus() const { return m_status; }
71 inline void SetStatus(GatewayStatus value) {
72 m_statusHasBeenSet = true;
73 m_status = value;
74 }
76 SetStatus(value);
77 return *this;
78 }
80
82
83 inline const Aws::String& GetRequestId() const { return m_requestId; }
84 template <typename RequestIdT = Aws::String>
85 void SetRequestId(RequestIdT&& value) {
86 m_requestIdHasBeenSet = true;
87 m_requestId = std::forward<RequestIdT>(value);
88 }
89 template <typename RequestIdT = Aws::String>
90 CreateGatewayResult& WithRequestId(RequestIdT&& value) {
91 SetRequestId(std::forward<RequestIdT>(value));
92 return *this;
93 }
95 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
96
97 private:
98 Aws::String m_gatewayArn;
99
100 Aws::String m_name;
101
103
104 Aws::String m_requestId;
105 Aws::Http::HttpResponseCode m_HttpResponseCode;
106 bool m_gatewayArnHasBeenSet = false;
107 bool m_nameHasBeenSet = false;
108 bool m_statusHasBeenSet = false;
109 bool m_requestIdHasBeenSet = false;
110};
111
112} // namespace Model
113} // namespace ECS
114} // namespace Aws
const Aws::String & GetGatewayArn() const
AWS_ECS_API CreateGatewayResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_ECS_API CreateGatewayResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_ECS_API CreateGatewayResult()=default
const Aws::String & GetName() const
CreateGatewayResult & WithName(NameT &&value)
CreateGatewayResult & WithRequestId(RequestIdT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
CreateGatewayResult & WithGatewayArn(GatewayArnT &&value)
void SetGatewayArn(GatewayArnT &&value)
const Aws::String & GetRequestId() const
CreateGatewayResult & WithStatus(GatewayStatus value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue