AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
EvaluationFormSection.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/connect/model/EvaluationFormItem.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Connect
24{
25namespace Model
26{
27 class EvaluationFormItem;
28
37 {
38 public:
39 AWS_CONNECT_API EvaluationFormSection();
42 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetTitle() const{ return m_title; }
50 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
51 inline void SetTitle(const Aws::String& value) { m_titleHasBeenSet = true; m_title = value; }
52 inline void SetTitle(Aws::String&& value) { m_titleHasBeenSet = true; m_title = std::move(value); }
53 inline void SetTitle(const char* value) { m_titleHasBeenSet = true; m_title.assign(value); }
54 inline EvaluationFormSection& WithTitle(const Aws::String& value) { SetTitle(value); return *this;}
55 inline EvaluationFormSection& WithTitle(Aws::String&& value) { SetTitle(std::move(value)); return *this;}
56 inline EvaluationFormSection& WithTitle(const char* value) { SetTitle(value); return *this;}
58
60
64 inline const Aws::String& GetRefId() const{ return m_refId; }
65 inline bool RefIdHasBeenSet() const { return m_refIdHasBeenSet; }
66 inline void SetRefId(const Aws::String& value) { m_refIdHasBeenSet = true; m_refId = value; }
67 inline void SetRefId(Aws::String&& value) { m_refIdHasBeenSet = true; m_refId = std::move(value); }
68 inline void SetRefId(const char* value) { m_refIdHasBeenSet = true; m_refId.assign(value); }
69 inline EvaluationFormSection& WithRefId(const Aws::String& value) { SetRefId(value); return *this;}
70 inline EvaluationFormSection& WithRefId(Aws::String&& value) { SetRefId(std::move(value)); return *this;}
71 inline EvaluationFormSection& WithRefId(const char* value) { SetRefId(value); return *this;}
73
75
78 inline const Aws::String& GetInstructions() const{ return m_instructions; }
79 inline bool InstructionsHasBeenSet() const { return m_instructionsHasBeenSet; }
80 inline void SetInstructions(const Aws::String& value) { m_instructionsHasBeenSet = true; m_instructions = value; }
81 inline void SetInstructions(Aws::String&& value) { m_instructionsHasBeenSet = true; m_instructions = std::move(value); }
82 inline void SetInstructions(const char* value) { m_instructionsHasBeenSet = true; m_instructions.assign(value); }
83 inline EvaluationFormSection& WithInstructions(const Aws::String& value) { SetInstructions(value); return *this;}
84 inline EvaluationFormSection& WithInstructions(Aws::String&& value) { SetInstructions(std::move(value)); return *this;}
85 inline EvaluationFormSection& WithInstructions(const char* value) { SetInstructions(value); return *this;}
87
89
92 inline const Aws::Vector<EvaluationFormItem>& GetItems() const{ return m_items; }
93 inline bool ItemsHasBeenSet() const { return m_itemsHasBeenSet; }
94 inline void SetItems(const Aws::Vector<EvaluationFormItem>& value) { m_itemsHasBeenSet = true; m_items = value; }
95 inline void SetItems(Aws::Vector<EvaluationFormItem>&& value) { m_itemsHasBeenSet = true; m_items = std::move(value); }
96 inline EvaluationFormSection& WithItems(const Aws::Vector<EvaluationFormItem>& value) { SetItems(value); return *this;}
97 inline EvaluationFormSection& WithItems(Aws::Vector<EvaluationFormItem>&& value) { SetItems(std::move(value)); return *this;}
98 inline EvaluationFormSection& AddItems(const EvaluationFormItem& value) { m_itemsHasBeenSet = true; m_items.push_back(value); return *this; }
99 inline EvaluationFormSection& AddItems(EvaluationFormItem&& value) { m_itemsHasBeenSet = true; m_items.push_back(std::move(value)); return *this; }
101
103
106 inline double GetWeight() const{ return m_weight; }
107 inline bool WeightHasBeenSet() const { return m_weightHasBeenSet; }
108 inline void SetWeight(double value) { m_weightHasBeenSet = true; m_weight = value; }
109 inline EvaluationFormSection& WithWeight(double value) { SetWeight(value); return *this;}
111 private:
112
113 Aws::String m_title;
114 bool m_titleHasBeenSet = false;
115
116 Aws::String m_refId;
117 bool m_refIdHasBeenSet = false;
118
119 Aws::String m_instructions;
120 bool m_instructionsHasBeenSet = false;
121
123 bool m_itemsHasBeenSet = false;
124
125 double m_weight;
126 bool m_weightHasBeenSet = false;
127 };
128
129} // namespace Model
130} // namespace Connect
131} // namespace Aws
const Aws::Vector< EvaluationFormItem > & GetItems() const
EvaluationFormSection & WithItems(Aws::Vector< EvaluationFormItem > &&value)
void SetInstructions(const Aws::String &value)
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
EvaluationFormSection & WithInstructions(const char *value)
EvaluationFormSection & WithRefId(const Aws::String &value)
EvaluationFormSection & WithTitle(const char *value)
EvaluationFormSection & WithRefId(const char *value)
EvaluationFormSection & AddItems(const EvaluationFormItem &value)
void SetItems(const Aws::Vector< EvaluationFormItem > &value)
EvaluationFormSection & WithItems(const Aws::Vector< EvaluationFormItem > &value)
EvaluationFormSection & WithWeight(double value)
EvaluationFormSection & WithTitle(const Aws::String &value)
EvaluationFormSection & WithInstructions(const Aws::String &value)
AWS_CONNECT_API EvaluationFormSection(Aws::Utils::Json::JsonView jsonValue)
EvaluationFormSection & WithRefId(Aws::String &&value)
EvaluationFormSection & WithTitle(Aws::String &&value)
EvaluationFormSection & WithInstructions(Aws::String &&value)
void SetItems(Aws::Vector< EvaluationFormItem > &&value)
AWS_CONNECT_API EvaluationFormSection & operator=(Aws::Utils::Json::JsonView jsonValue)
EvaluationFormSection & AddItems(EvaluationFormItem &&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