AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
EvaluationFormNumericQuestionProperties.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/connect/model/EvaluationFormNumericQuestionAutomation.h>
10#include <aws/connect/model/EvaluationFormNumericQuestionOption.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
35 {
36 public:
37 AWS_CONNECT_API EvaluationFormNumericQuestionProperties() = default;
40 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline int GetMinValue() const { return m_minValue; }
48 inline bool MinValueHasBeenSet() const { return m_minValueHasBeenSet; }
49 inline void SetMinValue(int value) { m_minValueHasBeenSet = true; m_minValue = value; }
50 inline EvaluationFormNumericQuestionProperties& WithMinValue(int value) { SetMinValue(value); return *this;}
52
54
57 inline int GetMaxValue() const { return m_maxValue; }
58 inline bool MaxValueHasBeenSet() const { return m_maxValueHasBeenSet; }
59 inline void SetMaxValue(int value) { m_maxValueHasBeenSet = true; m_maxValue = value; }
60 inline EvaluationFormNumericQuestionProperties& WithMaxValue(int value) { SetMaxValue(value); return *this;}
62
64
67 inline const Aws::Vector<EvaluationFormNumericQuestionOption>& GetOptions() const { return m_options; }
68 inline bool OptionsHasBeenSet() const { return m_optionsHasBeenSet; }
69 template<typename OptionsT = Aws::Vector<EvaluationFormNumericQuestionOption>>
70 void SetOptions(OptionsT&& value) { m_optionsHasBeenSet = true; m_options = std::forward<OptionsT>(value); }
71 template<typename OptionsT = Aws::Vector<EvaluationFormNumericQuestionOption>>
72 EvaluationFormNumericQuestionProperties& WithOptions(OptionsT&& value) { SetOptions(std::forward<OptionsT>(value)); return *this;}
73 template<typename OptionsT = EvaluationFormNumericQuestionOption>
74 EvaluationFormNumericQuestionProperties& AddOptions(OptionsT&& value) { m_optionsHasBeenSet = true; m_options.emplace_back(std::forward<OptionsT>(value)); return *this; }
76
78
81 inline const EvaluationFormNumericQuestionAutomation& GetAutomation() const { return m_automation; }
82 inline bool AutomationHasBeenSet() const { return m_automationHasBeenSet; }
83 template<typename AutomationT = EvaluationFormNumericQuestionAutomation>
84 void SetAutomation(AutomationT&& value) { m_automationHasBeenSet = true; m_automation = std::forward<AutomationT>(value); }
85 template<typename AutomationT = EvaluationFormNumericQuestionAutomation>
86 EvaluationFormNumericQuestionProperties& WithAutomation(AutomationT&& value) { SetAutomation(std::forward<AutomationT>(value)); return *this;}
88 private:
89
90 int m_minValue{0};
91 bool m_minValueHasBeenSet = false;
92
93 int m_maxValue{0};
94 bool m_maxValueHasBeenSet = false;
95
97 bool m_optionsHasBeenSet = false;
98
99 EvaluationFormNumericQuestionAutomation m_automation;
100 bool m_automationHasBeenSet = false;
101 };
102
103} // namespace Model
104} // namespace Connect
105} // namespace Aws
const Aws::Vector< EvaluationFormNumericQuestionOption > & GetOptions() const
AWS_CONNECT_API EvaluationFormNumericQuestionProperties & operator=(Aws::Utils::Json::JsonView jsonValue)
EvaluationFormNumericQuestionProperties & AddOptions(OptionsT &&value)
const EvaluationFormNumericQuestionAutomation & GetAutomation() const
AWS_CONNECT_API EvaluationFormNumericQuestionProperties(Aws::Utils::Json::JsonView jsonValue)
EvaluationFormNumericQuestionProperties & WithOptions(OptionsT &&value)
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
EvaluationFormNumericQuestionProperties & WithAutomation(AutomationT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue