AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ChoiceAnswerSummary.h
1
6#pragma once
7#include <aws/wellarchitected/WellArchitected_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/wellarchitected/model/ChoiceStatus.h>
10#include <aws/wellarchitected/model/ChoiceReason.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 WellArchitected
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_WELLARCHITECTED_API ChoiceAnswerSummary();
38 AWS_WELLARCHITECTED_API ChoiceAnswerSummary(Aws::Utils::Json::JsonView jsonValue);
39 AWS_WELLARCHITECTED_API ChoiceAnswerSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_WELLARCHITECTED_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
45 inline const Aws::String& GetChoiceId() const{ return m_choiceId; }
46 inline bool ChoiceIdHasBeenSet() const { return m_choiceIdHasBeenSet; }
47 inline void SetChoiceId(const Aws::String& value) { m_choiceIdHasBeenSet = true; m_choiceId = value; }
48 inline void SetChoiceId(Aws::String&& value) { m_choiceIdHasBeenSet = true; m_choiceId = std::move(value); }
49 inline void SetChoiceId(const char* value) { m_choiceIdHasBeenSet = true; m_choiceId.assign(value); }
50 inline ChoiceAnswerSummary& WithChoiceId(const Aws::String& value) { SetChoiceId(value); return *this;}
51 inline ChoiceAnswerSummary& WithChoiceId(Aws::String&& value) { SetChoiceId(std::move(value)); return *this;}
52 inline ChoiceAnswerSummary& WithChoiceId(const char* value) { SetChoiceId(value); return *this;}
54
56
59 inline const ChoiceStatus& GetStatus() const{ return m_status; }
60 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
61 inline void SetStatus(const ChoiceStatus& value) { m_statusHasBeenSet = true; m_status = value; }
62 inline void SetStatus(ChoiceStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
63 inline ChoiceAnswerSummary& WithStatus(const ChoiceStatus& value) { SetStatus(value); return *this;}
64 inline ChoiceAnswerSummary& WithStatus(ChoiceStatus&& value) { SetStatus(std::move(value)); return *this;}
66
68
71 inline const ChoiceReason& GetReason() const{ return m_reason; }
72 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
73 inline void SetReason(const ChoiceReason& value) { m_reasonHasBeenSet = true; m_reason = value; }
74 inline void SetReason(ChoiceReason&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); }
75 inline ChoiceAnswerSummary& WithReason(const ChoiceReason& value) { SetReason(value); return *this;}
76 inline ChoiceAnswerSummary& WithReason(ChoiceReason&& value) { SetReason(std::move(value)); return *this;}
78 private:
79
80 Aws::String m_choiceId;
81 bool m_choiceIdHasBeenSet = false;
82
83 ChoiceStatus m_status;
84 bool m_statusHasBeenSet = false;
85
86 ChoiceReason m_reason;
87 bool m_reasonHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace WellArchitected
92} // namespace Aws
ChoiceAnswerSummary & WithChoiceId(Aws::String &&value)
ChoiceAnswerSummary & WithStatus(const ChoiceStatus &value)
AWS_WELLARCHITECTED_API ChoiceAnswerSummary(Aws::Utils::Json::JsonView jsonValue)
ChoiceAnswerSummary & WithReason(ChoiceReason &&value)
AWS_WELLARCHITECTED_API ChoiceAnswerSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
ChoiceAnswerSummary & WithChoiceId(const char *value)
ChoiceAnswerSummary & WithStatus(ChoiceStatus &&value)
ChoiceAnswerSummary & WithReason(const ChoiceReason &value)
AWS_WELLARCHITECTED_API Aws::Utils::Json::JsonValue Jsonize() const
ChoiceAnswerSummary & WithChoiceId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue