AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetId(const TaskTemplateFieldIdentifier& value) { m_idHasBeenSet = true; m_id = value; }
50 inline void SetId(TaskTemplateFieldIdentifier&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
51 inline TaskTemplateField& WithId(const TaskTemplateFieldIdentifier& value) { SetId(value); return *this;}
52 inline TaskTemplateField& WithId(TaskTemplateFieldIdentifier&& value) { SetId(std::move(value)); return *this;}
54
56
59 inline const Aws::String& GetDescription() const{ return m_description; }
60 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
61 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
62 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
63 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
64 inline TaskTemplateField& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
65 inline TaskTemplateField& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
66 inline TaskTemplateField& WithDescription(const char* value) { SetDescription(value); return *this;}
68
70
73 inline const TaskTemplateFieldType& GetType() const{ return m_type; }
74 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
75 inline void SetType(const TaskTemplateFieldType& value) { m_typeHasBeenSet = true; m_type = value; }
76 inline void SetType(TaskTemplateFieldType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
77 inline TaskTemplateField& WithType(const TaskTemplateFieldType& value) { SetType(value); return *this;}
78 inline TaskTemplateField& WithType(TaskTemplateFieldType&& value) { SetType(std::move(value)); return *this;}
80
82
85 inline const Aws::Vector<Aws::String>& GetSingleSelectOptions() const{ return m_singleSelectOptions; }
86 inline bool SingleSelectOptionsHasBeenSet() const { return m_singleSelectOptionsHasBeenSet; }
87 inline void SetSingleSelectOptions(const Aws::Vector<Aws::String>& value) { m_singleSelectOptionsHasBeenSet = true; m_singleSelectOptions = value; }
88 inline void SetSingleSelectOptions(Aws::Vector<Aws::String>&& value) { m_singleSelectOptionsHasBeenSet = true; m_singleSelectOptions = std::move(value); }
91 inline TaskTemplateField& AddSingleSelectOptions(const Aws::String& value) { m_singleSelectOptionsHasBeenSet = true; m_singleSelectOptions.push_back(value); return *this; }
92 inline TaskTemplateField& AddSingleSelectOptions(Aws::String&& value) { m_singleSelectOptionsHasBeenSet = true; m_singleSelectOptions.push_back(std::move(value)); return *this; }
93 inline TaskTemplateField& AddSingleSelectOptions(const char* value) { m_singleSelectOptionsHasBeenSet = true; m_singleSelectOptions.push_back(value); return *this; }
95 private:
96
98 bool m_idHasBeenSet = false;
99
100 Aws::String m_description;
101 bool m_descriptionHasBeenSet = false;
102
104 bool m_typeHasBeenSet = false;
105
106 Aws::Vector<Aws::String> m_singleSelectOptions;
107 bool m_singleSelectOptionsHasBeenSet = false;
108 };
109
110} // namespace Model
111} // namespace Connect
112} // namespace Aws
AWS_CONNECT_API TaskTemplateField(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetDescription() const
AWS_CONNECT_API TaskTemplateField & operator=(Aws::Utils::Json::JsonView jsonValue)
const TaskTemplateFieldIdentifier & GetId() const
void SetId(TaskTemplateFieldIdentifier &&value)
void SetType(TaskTemplateFieldType &&value)
void SetId(const TaskTemplateFieldIdentifier &value)
void SetSingleSelectOptions(Aws::Vector< Aws::String > &&value)
const Aws::Vector< Aws::String > & GetSingleSelectOptions() const
TaskTemplateField & WithType(const TaskTemplateFieldType &value)
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
TaskTemplateField & WithId(const TaskTemplateFieldIdentifier &value)
const TaskTemplateFieldType & GetType() const
void SetSingleSelectOptions(const Aws::Vector< Aws::String > &value)
TaskTemplateField & WithSingleSelectOptions(const Aws::Vector< Aws::String > &value)
TaskTemplateField & AddSingleSelectOptions(const Aws::String &value)
TaskTemplateField & WithDescription(const Aws::String &value)
TaskTemplateField & WithType(TaskTemplateFieldType &&value)
TaskTemplateField & WithDescription(Aws::String &&value)
TaskTemplateField & AddSingleSelectOptions(const char *value)
TaskTemplateField & WithSingleSelectOptions(Aws::Vector< Aws::String > &&value)
TaskTemplateField & WithId(TaskTemplateFieldIdentifier &&value)
void SetType(const TaskTemplateFieldType &value)
void SetDescription(const Aws::String &value)
TaskTemplateField & WithDescription(const char *value)
void SetDescription(Aws::String &&value)
TaskTemplateField & AddSingleSelectOptions(Aws::String &&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