AWS SDK for C++

AWS SDK for C++ Version 1.11.918

Loading...
Searching...
No Matches
GatewaySummary.h
1
6#pragma once
7#include <aws/core/utils/DateTime.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 {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace ECS {
22namespace Model {
23
31 public:
32 AWS_ECS_API GatewaySummary() = default;
36
38
41 inline const Aws::String& GetGatewayArn() const { return m_gatewayArn; }
42 inline bool GatewayArnHasBeenSet() const { return m_gatewayArnHasBeenSet; }
43 template <typename GatewayArnT = Aws::String>
44 void SetGatewayArn(GatewayArnT&& value) {
45 m_gatewayArnHasBeenSet = true;
46 m_gatewayArn = std::forward<GatewayArnT>(value);
47 }
48 template <typename GatewayArnT = Aws::String>
49 GatewaySummary& WithGatewayArn(GatewayArnT&& value) {
50 SetGatewayArn(std::forward<GatewayArnT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetName() const { return m_name; }
60 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
61 template <typename NameT = Aws::String>
62 void SetName(NameT&& value) {
63 m_nameHasBeenSet = true;
64 m_name = std::forward<NameT>(value);
65 }
66 template <typename NameT = Aws::String>
67 GatewaySummary& WithName(NameT&& value) {
68 SetName(std::forward<NameT>(value));
69 return *this;
70 }
72
74
77 inline GatewayStatus GetStatus() const { return m_status; }
78 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
79 inline void SetStatus(GatewayStatus value) {
80 m_statusHasBeenSet = true;
81 m_status = value;
82 }
84 SetStatus(value);
85 return *this;
86 }
88
90
93 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
94 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
95 template <typename CreatedAtT = Aws::Utils::DateTime>
96 void SetCreatedAt(CreatedAtT&& value) {
97 m_createdAtHasBeenSet = true;
98 m_createdAt = std::forward<CreatedAtT>(value);
99 }
100 template <typename CreatedAtT = Aws::Utils::DateTime>
101 GatewaySummary& WithCreatedAt(CreatedAtT&& value) {
102 SetCreatedAt(std::forward<CreatedAtT>(value));
103 return *this;
104 }
106 private:
107 Aws::String m_gatewayArn;
108
109 Aws::String m_name;
110
112
113 Aws::Utils::DateTime m_createdAt{};
114 bool m_gatewayArnHasBeenSet = false;
115 bool m_nameHasBeenSet = false;
116 bool m_statusHasBeenSet = false;
117 bool m_createdAtHasBeenSet = false;
118};
119
120} // namespace Model
121} // namespace ECS
122} // namespace Aws
const Aws::String & GetGatewayArn() const
AWS_ECS_API GatewaySummary(Aws::Utils::Json::JsonView jsonValue)
void SetStatus(GatewayStatus value)
void SetCreatedAt(CreatedAtT &&value)
const Aws::String & GetName() const
GatewayStatus GetStatus() const
GatewaySummary & WithCreatedAt(CreatedAtT &&value)
GatewaySummary & WithName(NameT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
AWS_ECS_API GatewaySummary()=default
AWS_ECS_API GatewaySummary & operator=(Aws::Utils::Json::JsonView jsonValue)
GatewaySummary & WithStatus(GatewayStatus value)
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetGatewayArn(GatewayArnT &&value)
GatewaySummary & WithGatewayArn(GatewayArnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue