AWS SDK for C++

AWS SDK for C++ Version 1.11.924

Loading...
Searching...
No Matches
EnvironmentListEntry.h
1
6#pragma once
7#include <aws/continuum/Continuum_EXPORTS.h>
8#include <aws/continuum/model/EnvironmentStatus.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Continuum {
22namespace Model {
23
31 public:
32 AWS_CONTINUUM_API EnvironmentListEntry() = default;
35 AWS_CONTINUUM_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetEnvironmentId() const { return m_environmentId; }
42 inline bool EnvironmentIdHasBeenSet() const { return m_environmentIdHasBeenSet; }
43 template <typename EnvironmentIdT = Aws::String>
44 void SetEnvironmentId(EnvironmentIdT&& value) {
45 m_environmentIdHasBeenSet = true;
46 m_environmentId = std::forward<EnvironmentIdT>(value);
47 }
48 template <typename EnvironmentIdT = Aws::String>
49 EnvironmentListEntry& WithEnvironmentId(EnvironmentIdT&& value) {
50 SetEnvironmentId(std::forward<EnvironmentIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetEnvironmentArn() const { return m_environmentArn; }
60 inline bool EnvironmentArnHasBeenSet() const { return m_environmentArnHasBeenSet; }
61 template <typename EnvironmentArnT = Aws::String>
62 void SetEnvironmentArn(EnvironmentArnT&& value) {
63 m_environmentArnHasBeenSet = true;
64 m_environmentArn = std::forward<EnvironmentArnT>(value);
65 }
66 template <typename EnvironmentArnT = Aws::String>
67 EnvironmentListEntry& WithEnvironmentArn(EnvironmentArnT&& value) {
68 SetEnvironmentArn(std::forward<EnvironmentArnT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetName() const { return m_name; }
78 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
79 template <typename NameT = Aws::String>
80 void SetName(NameT&& value) {
81 m_nameHasBeenSet = true;
82 m_name = std::forward<NameT>(value);
83 }
84 template <typename NameT = Aws::String>
86 SetName(std::forward<NameT>(value));
87 return *this;
88 }
90
92
95 inline EnvironmentStatus GetStatus() const { return m_status; }
96 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
97 inline void SetStatus(EnvironmentStatus value) {
98 m_statusHasBeenSet = true;
99 m_status = value;
100 }
102 SetStatus(value);
103 return *this;
104 }
106
108
112 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
113 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
114 template <typename CreatedAtT = Aws::Utils::DateTime>
115 void SetCreatedAt(CreatedAtT&& value) {
116 m_createdAtHasBeenSet = true;
117 m_createdAt = std::forward<CreatedAtT>(value);
118 }
119 template <typename CreatedAtT = Aws::Utils::DateTime>
120 EnvironmentListEntry& WithCreatedAt(CreatedAtT&& value) {
121 SetCreatedAt(std::forward<CreatedAtT>(value));
122 return *this;
123 }
125 private:
126 Aws::String m_environmentId;
127
128 Aws::String m_environmentArn;
129
130 Aws::String m_name;
131
133
134 Aws::Utils::DateTime m_createdAt{};
135 bool m_environmentIdHasBeenSet = false;
136 bool m_environmentArnHasBeenSet = false;
137 bool m_nameHasBeenSet = false;
138 bool m_statusHasBeenSet = false;
139 bool m_createdAtHasBeenSet = false;
140};
141
142} // namespace Model
143} // namespace Continuum
144} // namespace Aws
EnvironmentListEntry & WithEnvironmentId(EnvironmentIdT &&value)
EnvironmentListEntry & WithStatus(EnvironmentStatus value)
const Aws::String & GetEnvironmentArn() const
EnvironmentListEntry & WithName(NameT &&value)
const Aws::String & GetName() const
AWS_CONTINUUM_API Aws::Utils::Json::JsonValue Jsonize() const
bool EnvironmentIdHasBeenSet() const
void SetEnvironmentArn(EnvironmentArnT &&value)
void SetName(NameT &&value)
AWS_CONTINUUM_API EnvironmentListEntry & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetEnvironmentId() const
EnvironmentStatus GetStatus() const
void SetCreatedAt(CreatedAtT &&value)
bool EnvironmentArnHasBeenSet() const
AWS_CONTINUUM_API EnvironmentListEntry()=default
void SetStatus(EnvironmentStatus value)
bool CreatedAtHasBeenSet() const
AWS_CONTINUUM_API EnvironmentListEntry(Aws::Utils::Json::JsonView jsonValue)
void SetEnvironmentId(EnvironmentIdT &&value)
EnvironmentListEntry & WithCreatedAt(CreatedAtT &&value)
bool StatusHasBeenSet() const
bool NameHasBeenSet() const
const Aws::Utils::DateTime & GetCreatedAt() const
EnvironmentListEntry & WithEnvironmentArn(EnvironmentArnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue