AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetProfileName(const Aws::String& value) { m_profileNameHasBeenSet = true; m_profileName = value; }
46 inline void SetProfileName(Aws::String&& value) { m_profileNameHasBeenSet = true; m_profileName = std::move(value); }
47 inline void SetProfileName(const char* value) { m_profileNameHasBeenSet = true; m_profileName.assign(value); }
48 inline CreateProfileRequest& WithProfileName(const Aws::String& value) { SetProfileName(value); return *this;}
49 inline CreateProfileRequest& WithProfileName(Aws::String&& value) { SetProfileName(std::move(value)); return *this;}
50 inline CreateProfileRequest& WithProfileName(const char* value) { SetProfileName(value); return *this;}
52
54
57 inline const Aws::String& GetProfileDescription() const{ return m_profileDescription; }
58 inline bool ProfileDescriptionHasBeenSet() const { return m_profileDescriptionHasBeenSet; }
59 inline void SetProfileDescription(const Aws::String& value) { m_profileDescriptionHasBeenSet = true; m_profileDescription = value; }
60 inline void SetProfileDescription(Aws::String&& value) { m_profileDescriptionHasBeenSet = true; m_profileDescription = std::move(value); }
61 inline void SetProfileDescription(const char* value) { m_profileDescriptionHasBeenSet = true; m_profileDescription.assign(value); }
63 inline CreateProfileRequest& WithProfileDescription(Aws::String&& value) { SetProfileDescription(std::move(value)); return *this;}
64 inline CreateProfileRequest& WithProfileDescription(const char* value) { SetProfileDescription(value); return *this;}
66
68
71 inline const Aws::Vector<ProfileQuestionUpdate>& GetProfileQuestions() const{ return m_profileQuestions; }
72 inline bool ProfileQuestionsHasBeenSet() const { return m_profileQuestionsHasBeenSet; }
73 inline void SetProfileQuestions(const Aws::Vector<ProfileQuestionUpdate>& value) { m_profileQuestionsHasBeenSet = true; m_profileQuestions = value; }
74 inline void SetProfileQuestions(Aws::Vector<ProfileQuestionUpdate>&& value) { m_profileQuestionsHasBeenSet = true; m_profileQuestions = std::move(value); }
77 inline CreateProfileRequest& AddProfileQuestions(const ProfileQuestionUpdate& value) { m_profileQuestionsHasBeenSet = true; m_profileQuestions.push_back(value); return *this; }
78 inline CreateProfileRequest& AddProfileQuestions(ProfileQuestionUpdate&& value) { m_profileQuestionsHasBeenSet = true; m_profileQuestions.push_back(std::move(value)); return *this; }
80
82
83 inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; }
84 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
85 inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; }
86 inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); }
87 inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); }
89 inline CreateProfileRequest& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;}
90 inline CreateProfileRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;}
92
94
97 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
98 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
99 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
100 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
101 inline CreateProfileRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
102 inline CreateProfileRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
103 inline CreateProfileRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
104 inline CreateProfileRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
105 inline CreateProfileRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
106 inline CreateProfileRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
107 inline CreateProfileRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
108 inline CreateProfileRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
109 inline CreateProfileRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
111 private:
112
113 Aws::String m_profileName;
114 bool m_profileNameHasBeenSet = false;
115
116 Aws::String m_profileDescription;
117 bool m_profileDescriptionHasBeenSet = false;
118
119 Aws::Vector<ProfileQuestionUpdate> m_profileQuestions;
120 bool m_profileQuestionsHasBeenSet = false;
121
122 Aws::String m_clientRequestToken;
123 bool m_clientRequestTokenHasBeenSet = false;
124
126 bool m_tagsHasBeenSet = false;
127 };
128
129} // namespace Model
130} // namespace WellArchitected
131} // namespace Aws
CreateProfileRequest & WithProfileQuestions(const Aws::Vector< ProfileQuestionUpdate > &value)
CreateProfileRequest & WithClientRequestToken(const char *value)
CreateProfileRequest & AddTags(const Aws::String &key, const Aws::String &value)
CreateProfileRequest & AddProfileQuestions(ProfileQuestionUpdate &&value)
CreateProfileRequest & AddTags(const char *key, Aws::String &&value)
CreateProfileRequest & WithProfileDescription(const Aws::String &value)
CreateProfileRequest & AddTags(const char *key, const char *value)
CreateProfileRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateProfileRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateProfileRequest & WithProfileName(const char *value)
CreateProfileRequest & AddTags(const Aws::String &key, Aws::String &&value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateProfileRequest & AddProfileQuestions(const ProfileQuestionUpdate &value)
CreateProfileRequest & WithProfileName(const Aws::String &value)
CreateProfileRequest & AddTags(Aws::String &&key, Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
virtual const char * GetServiceRequestName() const override
CreateProfileRequest & WithProfileQuestions(Aws::Vector< ProfileQuestionUpdate > &&value)
CreateProfileRequest & WithClientRequestToken(const Aws::String &value)
CreateProfileRequest & WithProfileDescription(Aws::String &&value)
void SetProfileQuestions(Aws::Vector< ProfileQuestionUpdate > &&value)
CreateProfileRequest & WithProfileDescription(const char *value)
CreateProfileRequest & AddTags(Aws::String &&key, const char *value)
CreateProfileRequest & WithClientRequestToken(Aws::String &&value)
const Aws::Vector< ProfileQuestionUpdate > & GetProfileQuestions() const
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateProfileRequest & WithProfileName(Aws::String &&value)
CreateProfileRequest & AddTags(Aws::String &&key, const Aws::String &value)
AWS_WELLARCHITECTED_API Aws::String SerializePayload() const override
void SetProfileQuestions(const Aws::Vector< ProfileQuestionUpdate > &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