AWS SDK for C++

AWS SDK for C++ Version 1.11.740

Loading...
Searching...
No Matches
UpdateProfileRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/wellarchitected/WellArchitectedRequest.h>
10#include <aws/wellarchitected/WellArchitected_EXPORTS.h>
11#include <aws/wellarchitected/model/ProfileQuestionUpdate.h>
12
13#include <utility>
14
15namespace Aws {
16namespace WellArchitected {
17namespace Model {
18
22 public:
23 AWS_WELLARCHITECTED_API UpdateProfileRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "UpdateProfile"; }
30
31 AWS_WELLARCHITECTED_API Aws::String SerializePayload() const override;
32
34
37 inline const Aws::String& GetProfileArn() const { return m_profileArn; }
38 inline bool ProfileArnHasBeenSet() const { return m_profileArnHasBeenSet; }
39 template <typename ProfileArnT = Aws::String>
40 void SetProfileArn(ProfileArnT&& value) {
41 m_profileArnHasBeenSet = true;
42 m_profileArn = std::forward<ProfileArnT>(value);
43 }
44 template <typename ProfileArnT = Aws::String>
45 UpdateProfileRequest& WithProfileArn(ProfileArnT&& value) {
46 SetProfileArn(std::forward<ProfileArnT>(value));
47 return *this;
48 }
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) {
59 m_profileDescriptionHasBeenSet = true;
60 m_profileDescription = std::forward<ProfileDescriptionT>(value);
61 }
62 template <typename ProfileDescriptionT = Aws::String>
63 UpdateProfileRequest& WithProfileDescription(ProfileDescriptionT&& value) {
64 SetProfileDescription(std::forward<ProfileDescriptionT>(value));
65 return *this;
66 }
68
70
73 inline const Aws::Vector<ProfileQuestionUpdate>& GetProfileQuestions() const { return m_profileQuestions; }
74 inline bool ProfileQuestionsHasBeenSet() const { return m_profileQuestionsHasBeenSet; }
75 template <typename ProfileQuestionsT = Aws::Vector<ProfileQuestionUpdate>>
76 void SetProfileQuestions(ProfileQuestionsT&& value) {
77 m_profileQuestionsHasBeenSet = true;
78 m_profileQuestions = std::forward<ProfileQuestionsT>(value);
79 }
80 template <typename ProfileQuestionsT = Aws::Vector<ProfileQuestionUpdate>>
81 UpdateProfileRequest& WithProfileQuestions(ProfileQuestionsT&& value) {
82 SetProfileQuestions(std::forward<ProfileQuestionsT>(value));
83 return *this;
84 }
85 template <typename ProfileQuestionsT = ProfileQuestionUpdate>
86 UpdateProfileRequest& AddProfileQuestions(ProfileQuestionsT&& value) {
87 m_profileQuestionsHasBeenSet = true;
88 m_profileQuestions.emplace_back(std::forward<ProfileQuestionsT>(value));
89 return *this;
90 }
92 private:
93 Aws::String m_profileArn;
94
95 Aws::String m_profileDescription;
96
97 Aws::Vector<ProfileQuestionUpdate> m_profileQuestions;
98 bool m_profileArnHasBeenSet = false;
99 bool m_profileDescriptionHasBeenSet = false;
100 bool m_profileQuestionsHasBeenSet = false;
101};
102
103} // namespace Model
104} // namespace WellArchitected
105} // namespace Aws
AWS_WELLARCHITECTED_API Aws::String SerializePayload() const override
UpdateProfileRequest & WithProfileDescription(ProfileDescriptionT &&value)
AWS_WELLARCHITECTED_API UpdateProfileRequest()=default
const Aws::Vector< ProfileQuestionUpdate > & GetProfileQuestions() const
void SetProfileDescription(ProfileDescriptionT &&value)
UpdateProfileRequest & AddProfileQuestions(ProfileQuestionsT &&value)
UpdateProfileRequest & WithProfileArn(ProfileArnT &&value)
UpdateProfileRequest & WithProfileQuestions(ProfileQuestionsT &&value)
virtual const char * GetServiceRequestName() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector