AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename TitleT = Aws::String>
52 void SetTitle(TitleT&& value) { m_titleHasBeenSet = true; m_title = std::forward<TitleT>(value); }
53 template<typename TitleT = Aws::String>
54 EvaluationFormSection& WithTitle(TitleT&& value) { SetTitle(std::forward<TitleT>(value)); return *this;}
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) { m_refIdHasBeenSet = true; m_refId = std::forward<RefIdT>(value); }
66 template<typename RefIdT = Aws::String>
67 EvaluationFormSection& WithRefId(RefIdT&& value) { SetRefId(std::forward<RefIdT>(value)); return *this;}
69
71
74 inline const Aws::String& GetInstructions() const { return m_instructions; }
75 inline bool InstructionsHasBeenSet() const { return m_instructionsHasBeenSet; }
76 template<typename InstructionsT = Aws::String>
77 void SetInstructions(InstructionsT&& value) { m_instructionsHasBeenSet = true; m_instructions = std::forward<InstructionsT>(value); }
78 template<typename InstructionsT = Aws::String>
79 EvaluationFormSection& WithInstructions(InstructionsT&& value) { SetInstructions(std::forward<InstructionsT>(value)); return *this;}
81
83
86 inline const Aws::Vector<EvaluationFormItem>& GetItems() const { return m_items; }
87 inline bool ItemsHasBeenSet() const { return m_itemsHasBeenSet; }
88 template<typename ItemsT = Aws::Vector<EvaluationFormItem>>
89 void SetItems(ItemsT&& value) { m_itemsHasBeenSet = true; m_items = std::forward<ItemsT>(value); }
90 template<typename ItemsT = Aws::Vector<EvaluationFormItem>>
91 EvaluationFormSection& WithItems(ItemsT&& value) { SetItems(std::forward<ItemsT>(value)); return *this;}
92 template<typename ItemsT = EvaluationFormItem>
93 EvaluationFormSection& AddItems(ItemsT&& value) { m_itemsHasBeenSet = true; m_items.emplace_back(std::forward<ItemsT>(value)); return *this; }
95
97
100 inline double GetWeight() const { return m_weight; }
101 inline bool WeightHasBeenSet() const { return m_weightHasBeenSet; }
102 inline void SetWeight(double value) { m_weightHasBeenSet = true; m_weight = value; }
103 inline EvaluationFormSection& WithWeight(double value) { SetWeight(value); return *this;}
105 private:
106
107 Aws::String m_title;
108 bool m_titleHasBeenSet = false;
109
110 Aws::String m_refId;
111 bool m_refIdHasBeenSet = false;
112
113 Aws::String m_instructions;
114 bool m_instructionsHasBeenSet = false;
115
117 bool m_itemsHasBeenSet = false;
118
119 double m_weight{0.0};
120 bool m_weightHasBeenSet = false;
121 };
122
123} // namespace Model
124} // namespace Connect
125} // 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