AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
EvaluationFormItem.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/connect/model/EvaluationFormQuestion.h>
9#include <aws/core/utils/memory/stl/AWSAllocator.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Connect {
21namespace Model {
22class EvaluationFormSection;
23
31 public:
32 AWS_CONNECT_API EvaluationFormItem() = default;
35 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const EvaluationFormSection& GetSection() const { return *m_section; }
42 inline bool SectionHasBeenSet() const { return m_sectionHasBeenSet; }
43 template <typename SectionT = EvaluationFormSection>
44 void SetSection(SectionT&& value) {
45 m_sectionHasBeenSet = true;
46 m_section = Aws::MakeShared<EvaluationFormSection>("EvaluationFormItem", std::forward<SectionT>(value));
47 }
48 template <typename SectionT = EvaluationFormSection>
49 EvaluationFormItem& WithSection(SectionT&& value) {
50 SetSection(std::forward<SectionT>(value));
51 return *this;
52 }
54
56
59 inline const EvaluationFormQuestion& GetQuestion() const { return m_question; }
60 inline bool QuestionHasBeenSet() const { return m_questionHasBeenSet; }
61 template <typename QuestionT = EvaluationFormQuestion>
62 void SetQuestion(QuestionT&& value) {
63 m_questionHasBeenSet = true;
64 m_question = std::forward<QuestionT>(value);
65 }
66 template <typename QuestionT = EvaluationFormQuestion>
67 EvaluationFormItem& WithQuestion(QuestionT&& value) {
68 SetQuestion(std::forward<QuestionT>(value));
69 return *this;
70 }
72 private:
73 std::shared_ptr<EvaluationFormSection> m_section;
74
75 EvaluationFormQuestion m_question;
76 bool m_sectionHasBeenSet = false;
77 bool m_questionHasBeenSet = false;
78};
79
80} // namespace Model
81} // namespace Connect
82} // namespace Aws
EvaluationFormItem & WithSection(SectionT &&value)
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CONNECT_API EvaluationFormItem()=default
AWS_CONNECT_API EvaluationFormItem & operator=(Aws::Utils::Json::JsonView jsonValue)
EvaluationFormItem & WithQuestion(QuestionT &&value)
const EvaluationFormQuestion & GetQuestion() const
const EvaluationFormSection & GetSection() const
AWS_CONNECT_API EvaluationFormItem(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue