AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
EvaluationFormSection.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/connect/model/EvaluationFormItem.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Connect {
22namespace Model {
23class EvaluationFormItem;
24
33 public:
34 AWS_CONNECT_API EvaluationFormSection() = default;
37 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetTitle() const { return m_title; }
44 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
45 template <typename TitleT = Aws::String>
46 void SetTitle(TitleT&& value) {
47 m_titleHasBeenSet = true;
48 m_title = std::forward<TitleT>(value);
49 }
50 template <typename TitleT = Aws::String>
52 SetTitle(std::forward<TitleT>(value));
53 return *this;
54 }
56
58
62 inline const Aws::String& GetRefId() const { return m_refId; }
63 inline bool RefIdHasBeenSet() const { return m_refIdHasBeenSet; }
64 template <typename RefIdT = Aws::String>
65 void SetRefId(RefIdT&& value) {
66 m_refIdHasBeenSet = true;
67 m_refId = std::forward<RefIdT>(value);
68 }
69 template <typename RefIdT = Aws::String>
71 SetRefId(std::forward<RefIdT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetInstructions() const { return m_instructions; }
81 inline bool InstructionsHasBeenSet() const { return m_instructionsHasBeenSet; }
82 template <typename InstructionsT = Aws::String>
83 void SetInstructions(InstructionsT&& value) {
84 m_instructionsHasBeenSet = true;
85 m_instructions = std::forward<InstructionsT>(value);
86 }
87 template <typename InstructionsT = Aws::String>
88 EvaluationFormSection& WithInstructions(InstructionsT&& value) {
89 SetInstructions(std::forward<InstructionsT>(value));
90 return *this;
91 }
93
95
98 inline const Aws::Vector<EvaluationFormItem>& GetItems() const { return m_items; }
99 inline bool ItemsHasBeenSet() const { return m_itemsHasBeenSet; }
100 template <typename ItemsT = Aws::Vector<EvaluationFormItem>>
101 void SetItems(ItemsT&& value) {
102 m_itemsHasBeenSet = true;
103 m_items = std::forward<ItemsT>(value);
104 }
105 template <typename ItemsT = Aws::Vector<EvaluationFormItem>>
107 SetItems(std::forward<ItemsT>(value));
108 return *this;
109 }
110 template <typename ItemsT = EvaluationFormItem>
112 m_itemsHasBeenSet = true;
113 m_items.emplace_back(std::forward<ItemsT>(value));
114 return *this;
115 }
117
119
122 inline double GetWeight() const { return m_weight; }
123 inline bool WeightHasBeenSet() const { return m_weightHasBeenSet; }
124 inline void SetWeight(double value) {
125 m_weightHasBeenSet = true;
126 m_weight = value;
127 }
128 inline EvaluationFormSection& WithWeight(double value) {
129 SetWeight(value);
130 return *this;
131 }
133 private:
134 Aws::String m_title;
135
136 Aws::String m_refId;
137
138 Aws::String m_instructions;
139
141
142 double m_weight{0.0};
143 bool m_titleHasBeenSet = false;
144 bool m_refIdHasBeenSet = false;
145 bool m_instructionsHasBeenSet = false;
146 bool m_itemsHasBeenSet = false;
147 bool m_weightHasBeenSet = false;
148};
149
150} // namespace Model
151} // namespace Connect
152} // namespace Aws
EvaluationFormSection & WithItems(ItemsT &&value)
EvaluationFormSection & AddItems(ItemsT &&value)
const Aws::Vector< EvaluationFormItem > & GetItems() const
EvaluationFormSection & WithInstructions(InstructionsT &&value)
EvaluationFormSection & WithTitle(TitleT &&value)
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CONNECT_API EvaluationFormSection()=default
EvaluationFormSection & WithRefId(RefIdT &&value)
EvaluationFormSection & WithWeight(double value)
AWS_CONNECT_API EvaluationFormSection(Aws::Utils::Json::JsonView jsonValue)
AWS_CONNECT_API EvaluationFormSection & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue