AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
SlaConfiguration.h
1
6#pragma once
7#include <aws/connectcases/ConnectCases_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/connectcases/model/SlaStatus.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/connectcases/model/SlaType.h>
13#include <aws/connectcases/model/FieldValueUnion.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace ConnectCases
27{
28namespace Model
29{
30
37 {
38 public:
39 AWS_CONNECTCASES_API SlaConfiguration() = default;
40 AWS_CONNECTCASES_API SlaConfiguration(Aws::Utils::Json::JsonView jsonValue);
41 AWS_CONNECTCASES_API SlaConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_CONNECTCASES_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::Utils::DateTime& GetCompletionTime() const { return m_completionTime; }
50 inline bool CompletionTimeHasBeenSet() const { return m_completionTimeHasBeenSet; }
51 template<typename CompletionTimeT = Aws::Utils::DateTime>
52 void SetCompletionTime(CompletionTimeT&& value) { m_completionTimeHasBeenSet = true; m_completionTime = std::forward<CompletionTimeT>(value); }
53 template<typename CompletionTimeT = Aws::Utils::DateTime>
54 SlaConfiguration& WithCompletionTime(CompletionTimeT&& value) { SetCompletionTime(std::forward<CompletionTimeT>(value)); return *this;}
56
58
61 inline const Aws::String& GetFieldId() const { return m_fieldId; }
62 inline bool FieldIdHasBeenSet() const { return m_fieldIdHasBeenSet; }
63 template<typename FieldIdT = Aws::String>
64 void SetFieldId(FieldIdT&& value) { m_fieldIdHasBeenSet = true; m_fieldId = std::forward<FieldIdT>(value); }
65 template<typename FieldIdT = Aws::String>
66 SlaConfiguration& WithFieldId(FieldIdT&& value) { SetFieldId(std::forward<FieldIdT>(value)); return *this;}
68
70
73 inline const Aws::String& GetName() const { return m_name; }
74 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
75 template<typename NameT = Aws::String>
76 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
77 template<typename NameT = Aws::String>
78 SlaConfiguration& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
80
82
85 inline SlaStatus GetStatus() const { return m_status; }
86 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
87 inline void SetStatus(SlaStatus value) { m_statusHasBeenSet = true; m_status = value; }
88 inline SlaConfiguration& WithStatus(SlaStatus value) { SetStatus(value); return *this;}
90
92
96 inline const Aws::Vector<FieldValueUnion>& GetTargetFieldValues() const { return m_targetFieldValues; }
97 inline bool TargetFieldValuesHasBeenSet() const { return m_targetFieldValuesHasBeenSet; }
98 template<typename TargetFieldValuesT = Aws::Vector<FieldValueUnion>>
99 void SetTargetFieldValues(TargetFieldValuesT&& value) { m_targetFieldValuesHasBeenSet = true; m_targetFieldValues = std::forward<TargetFieldValuesT>(value); }
100 template<typename TargetFieldValuesT = Aws::Vector<FieldValueUnion>>
101 SlaConfiguration& WithTargetFieldValues(TargetFieldValuesT&& value) { SetTargetFieldValues(std::forward<TargetFieldValuesT>(value)); return *this;}
102 template<typename TargetFieldValuesT = FieldValueUnion>
103 SlaConfiguration& AddTargetFieldValues(TargetFieldValuesT&& value) { m_targetFieldValuesHasBeenSet = true; m_targetFieldValues.emplace_back(std::forward<TargetFieldValuesT>(value)); return *this; }
105
107
110 inline const Aws::Utils::DateTime& GetTargetTime() const { return m_targetTime; }
111 inline bool TargetTimeHasBeenSet() const { return m_targetTimeHasBeenSet; }
112 template<typename TargetTimeT = Aws::Utils::DateTime>
113 void SetTargetTime(TargetTimeT&& value) { m_targetTimeHasBeenSet = true; m_targetTime = std::forward<TargetTimeT>(value); }
114 template<typename TargetTimeT = Aws::Utils::DateTime>
115 SlaConfiguration& WithTargetTime(TargetTimeT&& value) { SetTargetTime(std::forward<TargetTimeT>(value)); return *this;}
117
119
122 inline SlaType GetType() const { return m_type; }
123 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
124 inline void SetType(SlaType value) { m_typeHasBeenSet = true; m_type = value; }
125 inline SlaConfiguration& WithType(SlaType value) { SetType(value); return *this;}
127 private:
128
129 Aws::Utils::DateTime m_completionTime{};
130 bool m_completionTimeHasBeenSet = false;
131
132 Aws::String m_fieldId;
133 bool m_fieldIdHasBeenSet = false;
134
135 Aws::String m_name;
136 bool m_nameHasBeenSet = false;
137
139 bool m_statusHasBeenSet = false;
140
141 Aws::Vector<FieldValueUnion> m_targetFieldValues;
142 bool m_targetFieldValuesHasBeenSet = false;
143
144 Aws::Utils::DateTime m_targetTime{};
145 bool m_targetTimeHasBeenSet = false;
146
148 bool m_typeHasBeenSet = false;
149 };
150
151} // namespace Model
152} // namespace ConnectCases
153} // 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