AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
ValidationEnum.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Connect {
21namespace Model {
22
31 public:
32 AWS_CONNECT_API ValidationEnum() = default;
33 AWS_CONNECT_API ValidationEnum(Aws::Utils::Json::JsonView jsonValue);
35 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
43 inline bool GetStrict() const { return m_strict; }
44 inline bool StrictHasBeenSet() const { return m_strictHasBeenSet; }
45 inline void SetStrict(bool value) {
46 m_strictHasBeenSet = true;
47 m_strict = value;
48 }
49 inline ValidationEnum& WithStrict(bool value) {
50 SetStrict(value);
51 return *this;
52 }
54
56
60 inline const Aws::Vector<Aws::String>& GetValues() const { return m_values; }
61 inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
62 template <typename ValuesT = Aws::Vector<Aws::String>>
63 void SetValues(ValuesT&& value) {
64 m_valuesHasBeenSet = true;
65 m_values = std::forward<ValuesT>(value);
66 }
67 template <typename ValuesT = Aws::Vector<Aws::String>>
68 ValidationEnum& WithValues(ValuesT&& value) {
69 SetValues(std::forward<ValuesT>(value));
70 return *this;
71 }
72 template <typename ValuesT = Aws::String>
73 ValidationEnum& AddValues(ValuesT&& value) {
74 m_valuesHasBeenSet = true;
75 m_values.emplace_back(std::forward<ValuesT>(value));
76 return *this;
77 }
79 private:
80 bool m_strict{false};
81
83 bool m_strictHasBeenSet = false;
84 bool m_valuesHasBeenSet = false;
85};
86
87} // namespace Model
88} // namespace Connect
89} // namespace Aws
const Aws::Vector< Aws::String > & GetValues() const
AWS_CONNECT_API ValidationEnum(Aws::Utils::Json::JsonView jsonValue)
ValidationEnum & AddValues(ValuesT &&value)
ValidationEnum & WithStrict(bool value)
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CONNECT_API ValidationEnum()=default
ValidationEnum & WithValues(ValuesT &&value)
AWS_CONNECT_API ValidationEnum & operator=(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue