AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
ProfileTemplate.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/wellarchitected/WellArchitected_EXPORTS.h>
11#include <aws/wellarchitected/model/ProfileTemplateQuestion.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace WellArchitected {
23namespace Model {
24
31 public:
32 AWS_WELLARCHITECTED_API ProfileTemplate() = default;
33 AWS_WELLARCHITECTED_API ProfileTemplate(Aws::Utils::Json::JsonView jsonValue);
34 AWS_WELLARCHITECTED_API ProfileTemplate& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_WELLARCHITECTED_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetTemplateName() const { return m_templateName; }
42 inline bool TemplateNameHasBeenSet() const { return m_templateNameHasBeenSet; }
43 template <typename TemplateNameT = Aws::String>
44 void SetTemplateName(TemplateNameT&& value) {
45 m_templateNameHasBeenSet = true;
46 m_templateName = std::forward<TemplateNameT>(value);
47 }
48 template <typename TemplateNameT = Aws::String>
49 ProfileTemplate& WithTemplateName(TemplateNameT&& value) {
50 SetTemplateName(std::forward<TemplateNameT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::Vector<ProfileTemplateQuestion>& GetTemplateQuestions() const { return m_templateQuestions; }
60 inline bool TemplateQuestionsHasBeenSet() const { return m_templateQuestionsHasBeenSet; }
61 template <typename TemplateQuestionsT = Aws::Vector<ProfileTemplateQuestion>>
62 void SetTemplateQuestions(TemplateQuestionsT&& value) {
63 m_templateQuestionsHasBeenSet = true;
64 m_templateQuestions = std::forward<TemplateQuestionsT>(value);
65 }
66 template <typename TemplateQuestionsT = Aws::Vector<ProfileTemplateQuestion>>
67 ProfileTemplate& WithTemplateQuestions(TemplateQuestionsT&& value) {
68 SetTemplateQuestions(std::forward<TemplateQuestionsT>(value));
69 return *this;
70 }
71 template <typename TemplateQuestionsT = ProfileTemplateQuestion>
72 ProfileTemplate& AddTemplateQuestions(TemplateQuestionsT&& value) {
73 m_templateQuestionsHasBeenSet = true;
74 m_templateQuestions.emplace_back(std::forward<TemplateQuestionsT>(value));
75 return *this;
76 }
78
80
81 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
82 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
83 template <typename CreatedAtT = Aws::Utils::DateTime>
84 void SetCreatedAt(CreatedAtT&& value) {
85 m_createdAtHasBeenSet = true;
86 m_createdAt = std::forward<CreatedAtT>(value);
87 }
88 template <typename CreatedAtT = Aws::Utils::DateTime>
89 ProfileTemplate& WithCreatedAt(CreatedAtT&& value) {
90 SetCreatedAt(std::forward<CreatedAtT>(value));
91 return *this;
92 }
94
96
97 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
98 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
99 template <typename UpdatedAtT = Aws::Utils::DateTime>
100 void SetUpdatedAt(UpdatedAtT&& value) {
101 m_updatedAtHasBeenSet = true;
102 m_updatedAt = std::forward<UpdatedAtT>(value);
103 }
104 template <typename UpdatedAtT = Aws::Utils::DateTime>
105 ProfileTemplate& WithUpdatedAt(UpdatedAtT&& value) {
106 SetUpdatedAt(std::forward<UpdatedAtT>(value));
107 return *this;
108 }
110 private:
111 Aws::String m_templateName;
112
113 Aws::Vector<ProfileTemplateQuestion> m_templateQuestions;
114
115 Aws::Utils::DateTime m_createdAt{};
116
117 Aws::Utils::DateTime m_updatedAt{};
118 bool m_templateNameHasBeenSet = false;
119 bool m_templateQuestionsHasBeenSet = false;
120 bool m_createdAtHasBeenSet = false;
121 bool m_updatedAtHasBeenSet = false;
122};
123
124} // namespace Model
125} // namespace WellArchitected
126} // namespace Aws
ProfileTemplate & WithTemplateName(TemplateNameT &&value)
const Aws::Utils::DateTime & GetUpdatedAt() const
void SetTemplateName(TemplateNameT &&value)
AWS_WELLARCHITECTED_API ProfileTemplate(Aws::Utils::Json::JsonView jsonValue)
ProfileTemplate & WithCreatedAt(CreatedAtT &&value)
AWS_WELLARCHITECTED_API ProfileTemplate & operator=(Aws::Utils::Json::JsonView jsonValue)
ProfileTemplate & WithTemplateQuestions(TemplateQuestionsT &&value)
ProfileTemplate & AddTemplateQuestions(TemplateQuestionsT &&value)
ProfileTemplate & WithUpdatedAt(UpdatedAtT &&value)
AWS_WELLARCHITECTED_API ProfileTemplate()=default
AWS_WELLARCHITECTED_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Utils::DateTime & GetCreatedAt() const
void SetTemplateQuestions(TemplateQuestionsT &&value)
const Aws::String & GetTemplateName() const
const Aws::Vector< ProfileTemplateQuestion > & GetTemplateQuestions() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue