AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
ProfileTemplate.h
1
6#pragma once
7#include <aws/wellarchitected/WellArchitected_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/wellarchitected/model/ProfileTemplateQuestion.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace WellArchitected
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_WELLARCHITECTED_API ProfileTemplate() = default;
38 AWS_WELLARCHITECTED_API ProfileTemplate(Aws::Utils::Json::JsonView jsonValue);
39 AWS_WELLARCHITECTED_API ProfileTemplate& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_WELLARCHITECTED_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetTemplateName() const { return m_templateName; }
48 inline bool TemplateNameHasBeenSet() const { return m_templateNameHasBeenSet; }
49 template<typename TemplateNameT = Aws::String>
50 void SetTemplateName(TemplateNameT&& value) { m_templateNameHasBeenSet = true; m_templateName = std::forward<TemplateNameT>(value); }
51 template<typename TemplateNameT = Aws::String>
52 ProfileTemplate& WithTemplateName(TemplateNameT&& value) { SetTemplateName(std::forward<TemplateNameT>(value)); return *this;}
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) { m_templateQuestionsHasBeenSet = true; m_templateQuestions = std::forward<TemplateQuestionsT>(value); }
63 template<typename TemplateQuestionsT = Aws::Vector<ProfileTemplateQuestion>>
64 ProfileTemplate& WithTemplateQuestions(TemplateQuestionsT&& value) { SetTemplateQuestions(std::forward<TemplateQuestionsT>(value)); return *this;}
65 template<typename TemplateQuestionsT = ProfileTemplateQuestion>
66 ProfileTemplate& AddTemplateQuestions(TemplateQuestionsT&& value) { m_templateQuestionsHasBeenSet = true; m_templateQuestions.emplace_back(std::forward<TemplateQuestionsT>(value)); return *this; }
68
70
71 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
72 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
73 template<typename CreatedAtT = Aws::Utils::DateTime>
74 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
75 template<typename CreatedAtT = Aws::Utils::DateTime>
76 ProfileTemplate& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
78
80
81 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
82 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
83 template<typename UpdatedAtT = Aws::Utils::DateTime>
84 void SetUpdatedAt(UpdatedAtT&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::forward<UpdatedAtT>(value); }
85 template<typename UpdatedAtT = Aws::Utils::DateTime>
86 ProfileTemplate& WithUpdatedAt(UpdatedAtT&& value) { SetUpdatedAt(std::forward<UpdatedAtT>(value)); return *this;}
88 private:
89
90 Aws::String m_templateName;
91 bool m_templateNameHasBeenSet = false;
92
93 Aws::Vector<ProfileTemplateQuestion> m_templateQuestions;
94 bool m_templateQuestionsHasBeenSet = false;
95
96 Aws::Utils::DateTime m_createdAt{};
97 bool m_createdAtHasBeenSet = false;
98
99 Aws::Utils::DateTime m_updatedAt{};
100 bool m_updatedAtHasBeenSet = false;
101 };
102
103} // namespace Model
104} // namespace WellArchitected
105} // 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