AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Connect
23{
24namespace Model
25{
26 class EvaluationFormSection;
27
35 {
36 public:
37 AWS_CONNECT_API EvaluationFormItem() = default;
40 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const EvaluationFormSection& GetSection() const{
48 return *m_section;
49 }
50 inline bool SectionHasBeenSet() const { return m_sectionHasBeenSet; }
51 template<typename SectionT = EvaluationFormSection>
52 void SetSection(SectionT&& value) {
53 m_sectionHasBeenSet = true;
54 m_section = Aws::MakeShared<EvaluationFormSection>("EvaluationFormItem", std::forward<SectionT>(value));
55 }
56 template<typename SectionT = EvaluationFormSection>
57 EvaluationFormItem& WithSection(SectionT&& value) { SetSection(std::forward<SectionT>(value)); return *this;}
59
61
64 inline const EvaluationFormQuestion& GetQuestion() const { return m_question; }
65 inline bool QuestionHasBeenSet() const { return m_questionHasBeenSet; }
66 template<typename QuestionT = EvaluationFormQuestion>
67 void SetQuestion(QuestionT&& value) { m_questionHasBeenSet = true; m_question = std::forward<QuestionT>(value); }
68 template<typename QuestionT = EvaluationFormQuestion>
69 EvaluationFormItem& WithQuestion(QuestionT&& value) { SetQuestion(std::forward<QuestionT>(value)); return *this;}
71 private:
72
73 std::shared_ptr<EvaluationFormSection> m_section;
74 bool m_sectionHasBeenSet = false;
75
76 EvaluationFormQuestion m_question;
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