AWS SDK for C++

AWS SDK for C++ Version 1.11.924

Loading...
Searching...
No Matches
AssociatedEnvironment.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
32 public:
33 AWS_CONTINUUM_API AssociatedEnvironment() = default;
36 AWS_CONTINUUM_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetEnvironmentId() const { return m_environmentId; }
43 inline bool EnvironmentIdHasBeenSet() const { return m_environmentIdHasBeenSet; }
44 template <typename EnvironmentIdT = Aws::String>
45 void SetEnvironmentId(EnvironmentIdT&& value) {
46 m_environmentIdHasBeenSet = true;
47 m_environmentId = std::forward<EnvironmentIdT>(value);
48 }
49 template <typename EnvironmentIdT = Aws::String>
50 AssociatedEnvironment& WithEnvironmentId(EnvironmentIdT&& value) {
51 SetEnvironmentId(std::forward<EnvironmentIdT>(value));
52 return *this;
53 }
55
57
62 inline const Aws::String& GetEnvironmentArn() const { return m_environmentArn; }
63 inline bool EnvironmentArnHasBeenSet() const { return m_environmentArnHasBeenSet; }
64 template <typename EnvironmentArnT = Aws::String>
65 void SetEnvironmentArn(EnvironmentArnT&& value) {
66 m_environmentArnHasBeenSet = true;
67 m_environmentArn = std::forward<EnvironmentArnT>(value);
68 }
69 template <typename EnvironmentArnT = Aws::String>
70 AssociatedEnvironment& WithEnvironmentArn(EnvironmentArnT&& value) {
71 SetEnvironmentArn(std::forward<EnvironmentArnT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetName() const { return m_name; }
81 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
82 template <typename NameT = Aws::String>
83 void SetName(NameT&& value) {
84 m_nameHasBeenSet = true;
85 m_name = std::forward<NameT>(value);
86 }
87 template <typename NameT = Aws::String>
89 SetName(std::forward<NameT>(value));
90 return *this;
91 }
93
95
98 inline EnvironmentStatus GetStatus() const { return m_status; }
99 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
100 inline void SetStatus(EnvironmentStatus value) {
101 m_statusHasBeenSet = true;
102 m_status = value;
103 }
105 SetStatus(value);
106 return *this;
107 }
109
111
114 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
115 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
116 template <typename CreatedAtT = Aws::Utils::DateTime>
117 void SetCreatedAt(CreatedAtT&& value) {
118 m_createdAtHasBeenSet = true;
119 m_createdAt = std::forward<CreatedAtT>(value);
120 }
121 template <typename CreatedAtT = Aws::Utils::DateTime>
123 SetCreatedAt(std::forward<CreatedAtT>(value));
124 return *this;
125 }
127 private:
128 Aws::String m_environmentId;
129
130 Aws::String m_environmentArn;
131
132 Aws::String m_name;
133
135
136 Aws::Utils::DateTime m_createdAt{};
137 bool m_environmentIdHasBeenSet = false;
138 bool m_environmentArnHasBeenSet = false;
139 bool m_nameHasBeenSet = false;
140 bool m_statusHasBeenSet = false;
141 bool m_createdAtHasBeenSet = false;
142};
143
144} // namespace Model
145} // namespace Continuum
146} // namespace Aws
AWS_CONTINUUM_API AssociatedEnvironment()=default
AssociatedEnvironment & WithName(NameT &&value)
AssociatedEnvironment & WithEnvironmentArn(EnvironmentArnT &&value)
AWS_CONTINUUM_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CONTINUUM_API AssociatedEnvironment(Aws::Utils::Json::JsonView jsonValue)
AssociatedEnvironment & WithStatus(EnvironmentStatus value)
AssociatedEnvironment & WithEnvironmentId(EnvironmentIdT &&value)
AWS_CONTINUUM_API AssociatedEnvironment & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetCreatedAt() const
AssociatedEnvironment & WithCreatedAt(CreatedAtT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue