AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Update.h
1
6#pragma once
7#include <aws/eks/EKS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/eks/model/UpdateStatus.h>
10#include <aws/eks/model/UpdateType.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/eks/model/UpdateParam.h>
14#include <aws/eks/model/ErrorDetail.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace EKS
28{
29namespace Model
30{
31
37 class Update
38 {
39 public:
40 AWS_EKS_API Update() = default;
41 AWS_EKS_API Update(Aws::Utils::Json::JsonView jsonValue);
44
45
47
50 inline const Aws::String& GetId() const { return m_id; }
51 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
52 template<typename IdT = Aws::String>
53 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
54 template<typename IdT = Aws::String>
55 Update& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
57
59
62 inline UpdateStatus GetStatus() const { return m_status; }
63 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
64 inline void SetStatus(UpdateStatus value) { m_statusHasBeenSet = true; m_status = value; }
65 inline Update& WithStatus(UpdateStatus value) { SetStatus(value); return *this;}
67
69
72 inline UpdateType GetType() const { return m_type; }
73 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
74 inline void SetType(UpdateType value) { m_typeHasBeenSet = true; m_type = value; }
75 inline Update& WithType(UpdateType value) { SetType(value); return *this;}
77
79
82 inline const Aws::Vector<UpdateParam>& GetParams() const { return m_params; }
83 inline bool ParamsHasBeenSet() const { return m_paramsHasBeenSet; }
84 template<typename ParamsT = Aws::Vector<UpdateParam>>
85 void SetParams(ParamsT&& value) { m_paramsHasBeenSet = true; m_params = std::forward<ParamsT>(value); }
86 template<typename ParamsT = Aws::Vector<UpdateParam>>
87 Update& WithParams(ParamsT&& value) { SetParams(std::forward<ParamsT>(value)); return *this;}
88 template<typename ParamsT = UpdateParam>
89 Update& AddParams(ParamsT&& value) { m_paramsHasBeenSet = true; m_params.emplace_back(std::forward<ParamsT>(value)); return *this; }
91
93
96 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
97 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
98 template<typename CreatedAtT = Aws::Utils::DateTime>
99 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
100 template<typename CreatedAtT = Aws::Utils::DateTime>
101 Update& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
103
105
108 inline const Aws::Vector<ErrorDetail>& GetErrors() const { return m_errors; }
109 inline bool ErrorsHasBeenSet() const { return m_errorsHasBeenSet; }
110 template<typename ErrorsT = Aws::Vector<ErrorDetail>>
111 void SetErrors(ErrorsT&& value) { m_errorsHasBeenSet = true; m_errors = std::forward<ErrorsT>(value); }
112 template<typename ErrorsT = Aws::Vector<ErrorDetail>>
113 Update& WithErrors(ErrorsT&& value) { SetErrors(std::forward<ErrorsT>(value)); return *this;}
114 template<typename ErrorsT = ErrorDetail>
115 Update& AddErrors(ErrorsT&& value) { m_errorsHasBeenSet = true; m_errors.emplace_back(std::forward<ErrorsT>(value)); return *this; }
117 private:
118
119 Aws::String m_id;
120 bool m_idHasBeenSet = false;
121
123 bool m_statusHasBeenSet = false;
124
126 bool m_typeHasBeenSet = false;
127
129 bool m_paramsHasBeenSet = false;
130
131 Aws::Utils::DateTime m_createdAt{};
132 bool m_createdAtHasBeenSet = false;
133
135 bool m_errorsHasBeenSet = false;
136 };
137
138} // namespace Model
139} // namespace EKS
140} // namespace Aws
Update & WithId(IdT &&value)
Definition Update.h:55
const Aws::String & GetId() const
Definition Update.h:50
Update & WithType(UpdateType value)
Definition Update.h:75
const Aws::Vector< UpdateParam > & GetParams() const
Definition Update.h:82
bool IdHasBeenSet() const
Definition Update.h:51
bool StatusHasBeenSet() const
Definition Update.h:63
Update & AddParams(ParamsT &&value)
Definition Update.h:89
void SetStatus(UpdateStatus value)
Definition Update.h:64
Update & WithErrors(ErrorsT &&value)
Definition Update.h:113
AWS_EKS_API Update & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetCreatedAt() const
Definition Update.h:96
bool ParamsHasBeenSet() const
Definition Update.h:83
Update & AddErrors(ErrorsT &&value)
Definition Update.h:115
AWS_EKS_API Update()=default
UpdateType GetType() const
Definition Update.h:72
void SetType(UpdateType value)
Definition Update.h:74
Update & WithStatus(UpdateStatus value)
Definition Update.h:65
Update & WithParams(ParamsT &&value)
Definition Update.h:87
void SetCreatedAt(CreatedAtT &&value)
Definition Update.h:99
AWS_EKS_API Aws::Utils::Json::JsonValue Jsonize() const
bool TypeHasBeenSet() const
Definition Update.h:73
void SetErrors(ErrorsT &&value)
Definition Update.h:111
AWS_EKS_API Update(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< ErrorDetail > & GetErrors() const
Definition Update.h:108
UpdateStatus GetStatus() const
Definition Update.h:62
bool CreatedAtHasBeenSet() const
Definition Update.h:97
Update & WithCreatedAt(CreatedAtT &&value)
Definition Update.h:101
bool ErrorsHasBeenSet() const
Definition Update.h:109
void SetParams(ParamsT &&value)
Definition Update.h:85
void SetId(IdT &&value)
Definition Update.h:53
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue