AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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/core/utils/memory/stl/AWSString.h>
10#include <aws/connect/model/TaskTemplateFieldType.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Connect
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_CONNECT_API TaskTemplateField() = default;
40 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const TaskTemplateFieldIdentifier& GetId() const { return m_id; }
48 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
49 template<typename IdT = TaskTemplateFieldIdentifier>
50 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
51 template<typename IdT = TaskTemplateFieldIdentifier>
52 TaskTemplateField& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
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) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
63 template<typename DescriptionT = Aws::String>
64 TaskTemplateField& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
66
68
71 inline TaskTemplateFieldType GetType() const { return m_type; }
72 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
73 inline void SetType(TaskTemplateFieldType value) { m_typeHasBeenSet = true; m_type = value; }
74 inline TaskTemplateField& WithType(TaskTemplateFieldType value) { SetType(value); return *this;}
76
78
81 inline const Aws::Vector<Aws::String>& GetSingleSelectOptions() const { return m_singleSelectOptions; }
82 inline bool SingleSelectOptionsHasBeenSet() const { return m_singleSelectOptionsHasBeenSet; }
83 template<typename SingleSelectOptionsT = Aws::Vector<Aws::String>>
84 void SetSingleSelectOptions(SingleSelectOptionsT&& value) { m_singleSelectOptionsHasBeenSet = true; m_singleSelectOptions = std::forward<SingleSelectOptionsT>(value); }
85 template<typename SingleSelectOptionsT = Aws::Vector<Aws::String>>
86 TaskTemplateField& WithSingleSelectOptions(SingleSelectOptionsT&& value) { SetSingleSelectOptions(std::forward<SingleSelectOptionsT>(value)); return *this;}
87 template<typename SingleSelectOptionsT = Aws::String>
88 TaskTemplateField& AddSingleSelectOptions(SingleSelectOptionsT&& value) { m_singleSelectOptionsHasBeenSet = true; m_singleSelectOptions.emplace_back(std::forward<SingleSelectOptionsT>(value)); return *this; }
90 private:
91
93 bool m_idHasBeenSet = false;
94
95 Aws::String m_description;
96 bool m_descriptionHasBeenSet = false;
97
99 bool m_typeHasBeenSet = false;
100
101 Aws::Vector<Aws::String> m_singleSelectOptions;
102 bool m_singleSelectOptionsHasBeenSet = false;
103 };
104
105} // namespace Model
106} // namespace Connect
107} // 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