AWS SDK for C++

AWS SDK for C++ Version 1.11.787

Loading...
Searching...
No Matches
Association.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/devops-agent/DevOpsAgent_EXPORTS.h>
10#include <aws/devops-agent/model/ServiceConfiguration.h>
11#include <aws/devops-agent/model/ValidationStatus.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace DevOpsAgent {
23namespace Model {
24
32 public:
33 AWS_DEVOPSAGENT_API Association() = default;
34 AWS_DEVOPSAGENT_API Association(Aws::Utils::Json::JsonView jsonValue);
35 AWS_DEVOPSAGENT_API Association& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_DEVOPSAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetAgentSpaceId() const { return m_agentSpaceId; }
43 inline bool AgentSpaceIdHasBeenSet() const { return m_agentSpaceIdHasBeenSet; }
44 template <typename AgentSpaceIdT = Aws::String>
45 void SetAgentSpaceId(AgentSpaceIdT&& value) {
46 m_agentSpaceIdHasBeenSet = true;
47 m_agentSpaceId = std::forward<AgentSpaceIdT>(value);
48 }
49 template <typename AgentSpaceIdT = Aws::String>
50 Association& WithAgentSpaceId(AgentSpaceIdT&& value) {
51 SetAgentSpaceId(std::forward<AgentSpaceIdT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
61 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
62 template <typename CreatedAtT = Aws::Utils::DateTime>
63 void SetCreatedAt(CreatedAtT&& value) {
64 m_createdAtHasBeenSet = true;
65 m_createdAt = std::forward<CreatedAtT>(value);
66 }
67 template <typename CreatedAtT = Aws::Utils::DateTime>
68 Association& WithCreatedAt(CreatedAtT&& value) {
69 SetCreatedAt(std::forward<CreatedAtT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
79 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
80 template <typename UpdatedAtT = Aws::Utils::DateTime>
81 void SetUpdatedAt(UpdatedAtT&& value) {
82 m_updatedAtHasBeenSet = true;
83 m_updatedAt = std::forward<UpdatedAtT>(value);
84 }
85 template <typename UpdatedAtT = Aws::Utils::DateTime>
86 Association& WithUpdatedAt(UpdatedAtT&& value) {
87 SetUpdatedAt(std::forward<UpdatedAtT>(value));
88 return *this;
89 }
91
93
96 inline ValidationStatus GetStatus() const { return m_status; }
97 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
98 inline void SetStatus(ValidationStatus value) {
99 m_statusHasBeenSet = true;
100 m_status = value;
101 }
103 SetStatus(value);
104 return *this;
105 }
107
109
112 inline const Aws::String& GetAssociationId() const { return m_associationId; }
113 inline bool AssociationIdHasBeenSet() const { return m_associationIdHasBeenSet; }
114 template <typename AssociationIdT = Aws::String>
115 void SetAssociationId(AssociationIdT&& value) {
116 m_associationIdHasBeenSet = true;
117 m_associationId = std::forward<AssociationIdT>(value);
118 }
119 template <typename AssociationIdT = Aws::String>
120 Association& WithAssociationId(AssociationIdT&& value) {
121 SetAssociationId(std::forward<AssociationIdT>(value));
122 return *this;
123 }
125
127
130 inline const Aws::String& GetServiceId() const { return m_serviceId; }
131 inline bool ServiceIdHasBeenSet() const { return m_serviceIdHasBeenSet; }
132 template <typename ServiceIdT = Aws::String>
133 void SetServiceId(ServiceIdT&& value) {
134 m_serviceIdHasBeenSet = true;
135 m_serviceId = std::forward<ServiceIdT>(value);
136 }
137 template <typename ServiceIdT = Aws::String>
138 Association& WithServiceId(ServiceIdT&& value) {
139 SetServiceId(std::forward<ServiceIdT>(value));
140 return *this;
141 }
143
145
149 inline const ServiceConfiguration& GetConfiguration() const { return m_configuration; }
150 inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
151 template <typename ConfigurationT = ServiceConfiguration>
152 void SetConfiguration(ConfigurationT&& value) {
153 m_configurationHasBeenSet = true;
154 m_configuration = std::forward<ConfigurationT>(value);
155 }
156 template <typename ConfigurationT = ServiceConfiguration>
157 Association& WithConfiguration(ConfigurationT&& value) {
158 SetConfiguration(std::forward<ConfigurationT>(value));
159 return *this;
160 }
162 private:
163 Aws::String m_agentSpaceId;
164
165 Aws::Utils::DateTime m_createdAt{};
166
167 Aws::Utils::DateTime m_updatedAt{};
168
170
171 Aws::String m_associationId;
172
173 Aws::String m_serviceId;
174
175 ServiceConfiguration m_configuration;
176 bool m_agentSpaceIdHasBeenSet = false;
177 bool m_createdAtHasBeenSet = false;
178 bool m_updatedAtHasBeenSet = false;
179 bool m_statusHasBeenSet = false;
180 bool m_associationIdHasBeenSet = false;
181 bool m_serviceIdHasBeenSet = false;
182 bool m_configurationHasBeenSet = false;
183};
184
185} // namespace Model
186} // namespace DevOpsAgent
187} // namespace Aws
AWS_DEVOPSAGENT_API Association(Aws::Utils::Json::JsonView jsonValue)
Association & WithConfiguration(ConfigurationT &&value)
void SetConfiguration(ConfigurationT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
Definition Association.h:60
void SetCreatedAt(CreatedAtT &&value)
Definition Association.h:63
void SetUpdatedAt(UpdatedAtT &&value)
Definition Association.h:81
ValidationStatus GetStatus() const
Definition Association.h:96
void SetServiceId(ServiceIdT &&value)
AWS_DEVOPSAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetAgentSpaceId(AgentSpaceIdT &&value)
Definition Association.h:45
Association & WithAgentSpaceId(AgentSpaceIdT &&value)
Definition Association.h:50
const Aws::String & GetAssociationId() const
const Aws::String & GetAgentSpaceId() const
Definition Association.h:42
Association & WithStatus(ValidationStatus value)
Association & WithAssociationId(AssociationIdT &&value)
void SetAssociationId(AssociationIdT &&value)
void SetStatus(ValidationStatus value)
Definition Association.h:98
const Aws::Utils::DateTime & GetUpdatedAt() const
Definition Association.h:78
AWS_DEVOPSAGENT_API Association & operator=(Aws::Utils::Json::JsonView jsonValue)
const ServiceConfiguration & GetConfiguration() const
Association & WithUpdatedAt(UpdatedAtT &&value)
Definition Association.h:86
const Aws::String & GetServiceId() const
Association & WithCreatedAt(CreatedAtT &&value)
Definition Association.h:68
AWS_DEVOPSAGENT_API Association()=default
Association & WithServiceId(ServiceIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue