AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
EntryViolation.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/fms/FMS_EXPORTS.h>
10#include <aws/fms/model/EntryDescription.h>
11#include <aws/fms/model/EntryViolationReason.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace FMS {
23namespace Model {
24
34 public:
35 AWS_FMS_API EntryViolation() = default;
39
41
45 inline const EntryDescription& GetExpectedEntry() const { return m_expectedEntry; }
46 inline bool ExpectedEntryHasBeenSet() const { return m_expectedEntryHasBeenSet; }
47 template <typename ExpectedEntryT = EntryDescription>
48 void SetExpectedEntry(ExpectedEntryT&& value) {
49 m_expectedEntryHasBeenSet = true;
50 m_expectedEntry = std::forward<ExpectedEntryT>(value);
51 }
52 template <typename ExpectedEntryT = EntryDescription>
53 EntryViolation& WithExpectedEntry(ExpectedEntryT&& value) {
54 SetExpectedEntry(std::forward<ExpectedEntryT>(value));
55 return *this;
56 }
58
60
65 inline const Aws::String& GetExpectedEvaluationOrder() const { return m_expectedEvaluationOrder; }
66 inline bool ExpectedEvaluationOrderHasBeenSet() const { return m_expectedEvaluationOrderHasBeenSet; }
67 template <typename ExpectedEvaluationOrderT = Aws::String>
68 void SetExpectedEvaluationOrder(ExpectedEvaluationOrderT&& value) {
69 m_expectedEvaluationOrderHasBeenSet = true;
70 m_expectedEvaluationOrder = std::forward<ExpectedEvaluationOrderT>(value);
71 }
72 template <typename ExpectedEvaluationOrderT = Aws::String>
73 EntryViolation& WithExpectedEvaluationOrder(ExpectedEvaluationOrderT&& value) {
74 SetExpectedEvaluationOrder(std::forward<ExpectedEvaluationOrderT>(value));
75 return *this;
76 }
78
80
84 inline const Aws::String& GetActualEvaluationOrder() const { return m_actualEvaluationOrder; }
85 inline bool ActualEvaluationOrderHasBeenSet() const { return m_actualEvaluationOrderHasBeenSet; }
86 template <typename ActualEvaluationOrderT = Aws::String>
87 void SetActualEvaluationOrder(ActualEvaluationOrderT&& value) {
88 m_actualEvaluationOrderHasBeenSet = true;
89 m_actualEvaluationOrder = std::forward<ActualEvaluationOrderT>(value);
90 }
91 template <typename ActualEvaluationOrderT = Aws::String>
92 EntryViolation& WithActualEvaluationOrder(ActualEvaluationOrderT&& value) {
93 SetActualEvaluationOrder(std::forward<ActualEvaluationOrderT>(value));
94 return *this;
95 }
97
99
103 inline const EntryDescription& GetEntryAtExpectedEvaluationOrder() const { return m_entryAtExpectedEvaluationOrder; }
104 inline bool EntryAtExpectedEvaluationOrderHasBeenSet() const { return m_entryAtExpectedEvaluationOrderHasBeenSet; }
105 template <typename EntryAtExpectedEvaluationOrderT = EntryDescription>
106 void SetEntryAtExpectedEvaluationOrder(EntryAtExpectedEvaluationOrderT&& value) {
107 m_entryAtExpectedEvaluationOrderHasBeenSet = true;
108 m_entryAtExpectedEvaluationOrder = std::forward<EntryAtExpectedEvaluationOrderT>(value);
109 }
110 template <typename EntryAtExpectedEvaluationOrderT = EntryDescription>
111 EntryViolation& WithEntryAtExpectedEvaluationOrder(EntryAtExpectedEvaluationOrderT&& value) {
112 SetEntryAtExpectedEvaluationOrder(std::forward<EntryAtExpectedEvaluationOrderT>(value));
113 return *this;
114 }
116
118
122 inline const Aws::Vector<EntryDescription>& GetEntriesWithConflicts() const { return m_entriesWithConflicts; }
123 inline bool EntriesWithConflictsHasBeenSet() const { return m_entriesWithConflictsHasBeenSet; }
124 template <typename EntriesWithConflictsT = Aws::Vector<EntryDescription>>
125 void SetEntriesWithConflicts(EntriesWithConflictsT&& value) {
126 m_entriesWithConflictsHasBeenSet = true;
127 m_entriesWithConflicts = std::forward<EntriesWithConflictsT>(value);
128 }
129 template <typename EntriesWithConflictsT = Aws::Vector<EntryDescription>>
130 EntryViolation& WithEntriesWithConflicts(EntriesWithConflictsT&& value) {
131 SetEntriesWithConflicts(std::forward<EntriesWithConflictsT>(value));
132 return *this;
133 }
134 template <typename EntriesWithConflictsT = EntryDescription>
135 EntryViolation& AddEntriesWithConflicts(EntriesWithConflictsT&& value) {
136 m_entriesWithConflictsHasBeenSet = true;
137 m_entriesWithConflicts.emplace_back(std::forward<EntriesWithConflictsT>(value));
138 return *this;
139 }
141
143
147 inline const Aws::Vector<EntryViolationReason>& GetEntryViolationReasons() const { return m_entryViolationReasons; }
148 inline bool EntryViolationReasonsHasBeenSet() const { return m_entryViolationReasonsHasBeenSet; }
149 template <typename EntryViolationReasonsT = Aws::Vector<EntryViolationReason>>
150 void SetEntryViolationReasons(EntryViolationReasonsT&& value) {
151 m_entryViolationReasonsHasBeenSet = true;
152 m_entryViolationReasons = std::forward<EntryViolationReasonsT>(value);
153 }
154 template <typename EntryViolationReasonsT = Aws::Vector<EntryViolationReason>>
155 EntryViolation& WithEntryViolationReasons(EntryViolationReasonsT&& value) {
156 SetEntryViolationReasons(std::forward<EntryViolationReasonsT>(value));
157 return *this;
158 }
160 m_entryViolationReasonsHasBeenSet = true;
161 m_entryViolationReasons.push_back(value);
162 return *this;
163 }
165 private:
166 EntryDescription m_expectedEntry;
167
168 Aws::String m_expectedEvaluationOrder;
169
170 Aws::String m_actualEvaluationOrder;
171
172 EntryDescription m_entryAtExpectedEvaluationOrder;
173
174 Aws::Vector<EntryDescription> m_entriesWithConflicts;
175
176 Aws::Vector<EntryViolationReason> m_entryViolationReasons;
177 bool m_expectedEntryHasBeenSet = false;
178 bool m_expectedEvaluationOrderHasBeenSet = false;
179 bool m_actualEvaluationOrderHasBeenSet = false;
180 bool m_entryAtExpectedEvaluationOrderHasBeenSet = false;
181 bool m_entriesWithConflictsHasBeenSet = false;
182 bool m_entryViolationReasonsHasBeenSet = false;
183};
184
185} // namespace Model
186} // namespace FMS
187} // namespace Aws
AWS_FMS_API EntryViolation()=default
void SetExpectedEntry(ExpectedEntryT &&value)
EntryViolation & WithExpectedEntry(ExpectedEntryT &&value)
EntryViolation & WithEntryAtExpectedEvaluationOrder(EntryAtExpectedEvaluationOrderT &&value)
bool EntryViolationReasonsHasBeenSet() const
void SetEntryAtExpectedEvaluationOrder(EntryAtExpectedEvaluationOrderT &&value)
const Aws::Vector< EntryDescription > & GetEntriesWithConflicts() const
EntryViolation & WithExpectedEvaluationOrder(ExpectedEvaluationOrderT &&value)
void SetExpectedEvaluationOrder(ExpectedEvaluationOrderT &&value)
bool ExpectedEvaluationOrderHasBeenSet() const
EntryViolation & WithEntryViolationReasons(EntryViolationReasonsT &&value)
AWS_FMS_API Aws::Utils::Json::JsonValue Jsonize() const
bool ActualEvaluationOrderHasBeenSet() const
const Aws::Vector< EntryViolationReason > & GetEntryViolationReasons() const
void SetEntriesWithConflicts(EntriesWithConflictsT &&value)
bool EntryAtExpectedEvaluationOrderHasBeenSet() const
bool ExpectedEntryHasBeenSet() const
AWS_FMS_API EntryViolation(Aws::Utils::Json::JsonView jsonValue)
const EntryDescription & GetExpectedEntry() const
void SetEntryViolationReasons(EntryViolationReasonsT &&value)
const Aws::String & GetActualEvaluationOrder() const
const EntryDescription & GetEntryAtExpectedEvaluationOrder() const
void SetActualEvaluationOrder(ActualEvaluationOrderT &&value)
EntryViolation & AddEntriesWithConflicts(EntriesWithConflictsT &&value)
const Aws::String & GetExpectedEvaluationOrder() const
EntryViolation & AddEntryViolationReasons(EntryViolationReason value)
EntryViolation & WithActualEvaluationOrder(ActualEvaluationOrderT &&value)
bool EntriesWithConflictsHasBeenSet() const
AWS_FMS_API EntryViolation & operator=(Aws::Utils::Json::JsonView jsonValue)
EntryViolation & WithEntriesWithConflicts(EntriesWithConflictsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue