AWS SDK for C++

AWS SDK for C++ Version 1.11.751

Loading...
Searching...
No Matches
SlaConfiguration.h
1
6#pragma once
7#include <aws/connectcases/ConnectCases_EXPORTS.h>
8#include <aws/connectcases/model/FieldValueUnion.h>
9#include <aws/connectcases/model/SlaStatus.h>
10#include <aws/connectcases/model/SlaType.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace ConnectCases {
25namespace Model {
26
33 public:
34 AWS_CONNECTCASES_API SlaConfiguration() = default;
35 AWS_CONNECTCASES_API SlaConfiguration(Aws::Utils::Json::JsonView jsonValue);
36 AWS_CONNECTCASES_API SlaConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_CONNECTCASES_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetName() const { return m_name; }
44 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
45 template <typename NameT = Aws::String>
46 void SetName(NameT&& value) {
47 m_nameHasBeenSet = true;
48 m_name = std::forward<NameT>(value);
49 }
50 template <typename NameT = Aws::String>
51 SlaConfiguration& WithName(NameT&& value) {
52 SetName(std::forward<NameT>(value));
53 return *this;
54 }
56
58
61 inline SlaType GetType() const { return m_type; }
62 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
63 inline void SetType(SlaType value) {
64 m_typeHasBeenSet = true;
65 m_type = value;
66 }
68 SetType(value);
69 return *this;
70 }
72
74
77 inline SlaStatus GetStatus() const { return m_status; }
78 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
79 inline void SetStatus(SlaStatus value) {
80 m_statusHasBeenSet = true;
81 m_status = value;
82 }
84 SetStatus(value);
85 return *this;
86 }
88
90
93 inline const Aws::String& GetFieldId() const { return m_fieldId; }
94 inline bool FieldIdHasBeenSet() const { return m_fieldIdHasBeenSet; }
95 template <typename FieldIdT = Aws::String>
96 void SetFieldId(FieldIdT&& value) {
97 m_fieldIdHasBeenSet = true;
98 m_fieldId = std::forward<FieldIdT>(value);
99 }
100 template <typename FieldIdT = Aws::String>
101 SlaConfiguration& WithFieldId(FieldIdT&& value) {
102 SetFieldId(std::forward<FieldIdT>(value));
103 return *this;
104 }
106
108
112 inline const Aws::Vector<FieldValueUnion>& GetTargetFieldValues() const { return m_targetFieldValues; }
113 inline bool TargetFieldValuesHasBeenSet() const { return m_targetFieldValuesHasBeenSet; }
114 template <typename TargetFieldValuesT = Aws::Vector<FieldValueUnion>>
115 void SetTargetFieldValues(TargetFieldValuesT&& value) {
116 m_targetFieldValuesHasBeenSet = true;
117 m_targetFieldValues = std::forward<TargetFieldValuesT>(value);
118 }
119 template <typename TargetFieldValuesT = Aws::Vector<FieldValueUnion>>
120 SlaConfiguration& WithTargetFieldValues(TargetFieldValuesT&& value) {
121 SetTargetFieldValues(std::forward<TargetFieldValuesT>(value));
122 return *this;
123 }
124 template <typename TargetFieldValuesT = FieldValueUnion>
125 SlaConfiguration& AddTargetFieldValues(TargetFieldValuesT&& value) {
126 m_targetFieldValuesHasBeenSet = true;
127 m_targetFieldValues.emplace_back(std::forward<TargetFieldValuesT>(value));
128 return *this;
129 }
131
133
136 inline const Aws::Utils::DateTime& GetTargetTime() const { return m_targetTime; }
137 inline bool TargetTimeHasBeenSet() const { return m_targetTimeHasBeenSet; }
138 template <typename TargetTimeT = Aws::Utils::DateTime>
139 void SetTargetTime(TargetTimeT&& value) {
140 m_targetTimeHasBeenSet = true;
141 m_targetTime = std::forward<TargetTimeT>(value);
142 }
143 template <typename TargetTimeT = Aws::Utils::DateTime>
144 SlaConfiguration& WithTargetTime(TargetTimeT&& value) {
145 SetTargetTime(std::forward<TargetTimeT>(value));
146 return *this;
147 }
149
151
154 inline const Aws::Utils::DateTime& GetCompletionTime() const { return m_completionTime; }
155 inline bool CompletionTimeHasBeenSet() const { return m_completionTimeHasBeenSet; }
156 template <typename CompletionTimeT = Aws::Utils::DateTime>
157 void SetCompletionTime(CompletionTimeT&& value) {
158 m_completionTimeHasBeenSet = true;
159 m_completionTime = std::forward<CompletionTimeT>(value);
160 }
161 template <typename CompletionTimeT = Aws::Utils::DateTime>
162 SlaConfiguration& WithCompletionTime(CompletionTimeT&& value) {
163 SetCompletionTime(std::forward<CompletionTimeT>(value));
164 return *this;
165 }
167 private:
168 Aws::String m_name;
169
171
173
174 Aws::String m_fieldId;
175
176 Aws::Vector<FieldValueUnion> m_targetFieldValues;
177
178 Aws::Utils::DateTime m_targetTime{};
179
180 Aws::Utils::DateTime m_completionTime{};
181 bool m_nameHasBeenSet = false;
182 bool m_typeHasBeenSet = false;
183 bool m_statusHasBeenSet = false;
184 bool m_fieldIdHasBeenSet = false;
185 bool m_targetFieldValuesHasBeenSet = false;
186 bool m_targetTimeHasBeenSet = false;
187 bool m_completionTimeHasBeenSet = false;
188};
189
190} // namespace Model
191} // namespace ConnectCases
192} // namespace Aws
SlaConfiguration & AddTargetFieldValues(TargetFieldValuesT &&value)
SlaConfiguration & WithType(SlaType value)
AWS_CONNECTCASES_API SlaConfiguration(Aws::Utils::Json::JsonView jsonValue)
AWS_CONNECTCASES_API Aws::Utils::Json::JsonValue Jsonize() const
void SetTargetFieldValues(TargetFieldValuesT &&value)
AWS_CONNECTCASES_API SlaConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetTargetTime() const
SlaConfiguration & WithTargetFieldValues(TargetFieldValuesT &&value)
void SetCompletionTime(CompletionTimeT &&value)
const Aws::Vector< FieldValueUnion > & GetTargetFieldValues() const
SlaConfiguration & WithCompletionTime(CompletionTimeT &&value)
AWS_CONNECTCASES_API SlaConfiguration()=default
SlaConfiguration & WithName(NameT &&value)
SlaConfiguration & WithStatus(SlaStatus value)
SlaConfiguration & WithTargetTime(TargetTimeT &&value)
SlaConfiguration & WithFieldId(FieldIdT &&value)
const Aws::Utils::DateTime & GetCompletionTime() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue