AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
TaskTemplateField.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/connect/model/TaskTemplateFieldIdentifier.h>
9#include <aws/connect/model/TaskTemplateFieldType.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Connect {
23namespace Model {
24
31 public:
32 AWS_CONNECT_API TaskTemplateField() = default;
35 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const TaskTemplateFieldIdentifier& GetId() const { return m_id; }
42 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
43 template <typename IdT = TaskTemplateFieldIdentifier>
44 void SetId(IdT&& value) {
45 m_idHasBeenSet = true;
46 m_id = std::forward<IdT>(value);
47 }
48 template <typename IdT = TaskTemplateFieldIdentifier>
49 TaskTemplateField& WithId(IdT&& value) {
50 SetId(std::forward<IdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetDescription() const { return m_description; }
60 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
61 template <typename DescriptionT = Aws::String>
62 void SetDescription(DescriptionT&& value) {
63 m_descriptionHasBeenSet = true;
64 m_description = std::forward<DescriptionT>(value);
65 }
66 template <typename DescriptionT = Aws::String>
67 TaskTemplateField& WithDescription(DescriptionT&& value) {
68 SetDescription(std::forward<DescriptionT>(value));
69 return *this;
70 }
72
74
77 inline TaskTemplateFieldType GetType() const { return m_type; }
78 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
79 inline void SetType(TaskTemplateFieldType value) {
80 m_typeHasBeenSet = true;
81 m_type = value;
82 }
84 SetType(value);
85 return *this;
86 }
88
90
93 inline const Aws::Vector<Aws::String>& GetSingleSelectOptions() const { return m_singleSelectOptions; }
94 inline bool SingleSelectOptionsHasBeenSet() const { return m_singleSelectOptionsHasBeenSet; }
95 template <typename SingleSelectOptionsT = Aws::Vector<Aws::String>>
96 void SetSingleSelectOptions(SingleSelectOptionsT&& value) {
97 m_singleSelectOptionsHasBeenSet = true;
98 m_singleSelectOptions = std::forward<SingleSelectOptionsT>(value);
99 }
100 template <typename SingleSelectOptionsT = Aws::Vector<Aws::String>>
101 TaskTemplateField& WithSingleSelectOptions(SingleSelectOptionsT&& value) {
102 SetSingleSelectOptions(std::forward<SingleSelectOptionsT>(value));
103 return *this;
104 }
105 template <typename SingleSelectOptionsT = Aws::String>
106 TaskTemplateField& AddSingleSelectOptions(SingleSelectOptionsT&& value) {
107 m_singleSelectOptionsHasBeenSet = true;
108 m_singleSelectOptions.emplace_back(std::forward<SingleSelectOptionsT>(value));
109 return *this;
110 }
112 private:
114
115 Aws::String m_description;
116
118
119 Aws::Vector<Aws::String> m_singleSelectOptions;
120 bool m_idHasBeenSet = false;
121 bool m_descriptionHasBeenSet = false;
122 bool m_typeHasBeenSet = false;
123 bool m_singleSelectOptionsHasBeenSet = false;
124};
125
126} // namespace Model
127} // namespace Connect
128} // namespace Aws
AWS_CONNECT_API TaskTemplateField(Aws::Utils::Json::JsonView jsonValue)
TaskTemplateField & AddSingleSelectOptions(SingleSelectOptionsT &&value)
const Aws::String & GetDescription() const
AWS_CONNECT_API TaskTemplateField & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetType(TaskTemplateFieldType value)
const TaskTemplateFieldIdentifier & GetId() const
TaskTemplateField & WithType(TaskTemplateFieldType value)
const Aws::Vector< Aws::String > & GetSingleSelectOptions() const
TaskTemplateField & WithDescription(DescriptionT &&value)
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
TaskTemplateFieldType GetType() const
TaskTemplateField & WithSingleSelectOptions(SingleSelectOptionsT &&value)
AWS_CONNECT_API TaskTemplateField()=default
void SetDescription(DescriptionT &&value)
TaskTemplateField & WithId(IdT &&value)
void SetSingleSelectOptions(SingleSelectOptionsT &&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