AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateProfileRequest.h
1
6#pragma once
7#include <aws/wellarchitected/WellArchitected_EXPORTS.h>
8#include <aws/wellarchitected/WellArchitectedRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/wellarchitected/model/ProfileQuestionUpdate.h>
13#include <utility>
14#include <aws/core/utils/UUID.h>
15
16namespace Aws
17{
18namespace WellArchitected
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_WELLARCHITECTED_API CreateProfileRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateProfile"; }
35
36 AWS_WELLARCHITECTED_API Aws::String SerializePayload() const override;
37
38
40
43 inline const Aws::String& GetProfileName() const { return m_profileName; }
44 inline bool ProfileNameHasBeenSet() const { return m_profileNameHasBeenSet; }
45 template<typename ProfileNameT = Aws::String>
46 void SetProfileName(ProfileNameT&& value) { m_profileNameHasBeenSet = true; m_profileName = std::forward<ProfileNameT>(value); }
47 template<typename ProfileNameT = Aws::String>
48 CreateProfileRequest& WithProfileName(ProfileNameT&& value) { SetProfileName(std::forward<ProfileNameT>(value)); return *this;}
50
52
55 inline const Aws::String& GetProfileDescription() const { return m_profileDescription; }
56 inline bool ProfileDescriptionHasBeenSet() const { return m_profileDescriptionHasBeenSet; }
57 template<typename ProfileDescriptionT = Aws::String>
58 void SetProfileDescription(ProfileDescriptionT&& value) { m_profileDescriptionHasBeenSet = true; m_profileDescription = std::forward<ProfileDescriptionT>(value); }
59 template<typename ProfileDescriptionT = Aws::String>
60 CreateProfileRequest& WithProfileDescription(ProfileDescriptionT&& value) { SetProfileDescription(std::forward<ProfileDescriptionT>(value)); return *this;}
62
64
67 inline const Aws::Vector<ProfileQuestionUpdate>& GetProfileQuestions() const { return m_profileQuestions; }
68 inline bool ProfileQuestionsHasBeenSet() const { return m_profileQuestionsHasBeenSet; }
69 template<typename ProfileQuestionsT = Aws::Vector<ProfileQuestionUpdate>>
70 void SetProfileQuestions(ProfileQuestionsT&& value) { m_profileQuestionsHasBeenSet = true; m_profileQuestions = std::forward<ProfileQuestionsT>(value); }
71 template<typename ProfileQuestionsT = Aws::Vector<ProfileQuestionUpdate>>
72 CreateProfileRequest& WithProfileQuestions(ProfileQuestionsT&& value) { SetProfileQuestions(std::forward<ProfileQuestionsT>(value)); return *this;}
73 template<typename ProfileQuestionsT = ProfileQuestionUpdate>
74 CreateProfileRequest& AddProfileQuestions(ProfileQuestionsT&& value) { m_profileQuestionsHasBeenSet = true; m_profileQuestions.emplace_back(std::forward<ProfileQuestionsT>(value)); return *this; }
76
78
79 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
80 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
81 template<typename ClientRequestTokenT = Aws::String>
82 void SetClientRequestToken(ClientRequestTokenT&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::forward<ClientRequestTokenT>(value); }
83 template<typename ClientRequestTokenT = Aws::String>
84 CreateProfileRequest& WithClientRequestToken(ClientRequestTokenT&& value) { SetClientRequestToken(std::forward<ClientRequestTokenT>(value)); return *this;}
86
88
91 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
92 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
93 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
94 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
95 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
96 CreateProfileRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
97 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
98 CreateProfileRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
99 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
100 }
102 private:
103
104 Aws::String m_profileName;
105 bool m_profileNameHasBeenSet = false;
106
107 Aws::String m_profileDescription;
108 bool m_profileDescriptionHasBeenSet = false;
109
110 Aws::Vector<ProfileQuestionUpdate> m_profileQuestions;
111 bool m_profileQuestionsHasBeenSet = false;
112
113 Aws::String m_clientRequestToken{Aws::Utils::UUID::PseudoRandomUUID()};
114 bool m_clientRequestTokenHasBeenSet = true;
115
117 bool m_tagsHasBeenSet = false;
118 };
119
120} // namespace Model
121} // namespace WellArchitected
122} // namespace Aws
static Aws::Utils::UUID PseudoRandomUUID()
AWS_WELLARCHITECTED_API CreateProfileRequest()=default
void SetProfileDescription(ProfileDescriptionT &&value)
CreateProfileRequest & WithClientRequestToken(ClientRequestTokenT &&value)
void SetClientRequestToken(ClientRequestTokenT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateProfileRequest & AddProfileQuestions(ProfileQuestionsT &&value)
virtual const char * GetServiceRequestName() const override
CreateProfileRequest & WithProfileName(ProfileNameT &&value)
CreateProfileRequest & WithTags(TagsT &&value)
CreateProfileRequest & WithProfileDescription(ProfileDescriptionT &&value)
const Aws::Vector< ProfileQuestionUpdate > & GetProfileQuestions() const
CreateProfileRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_WELLARCHITECTED_API Aws::String SerializePayload() const override
CreateProfileRequest & WithProfileQuestions(ProfileQuestionsT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector