AWS SDK for C++

AWS SDK for C++ Version 1.11.681

Loading...
Searching...
No Matches
UpgradeProfileVersionRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/wellarchitected/WellArchitectedRequest.h>
10#include <aws/wellarchitected/WellArchitected_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace WellArchitected {
16namespace Model {
17
21 public:
22 AWS_WELLARCHITECTED_API UpgradeProfileVersionRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "UpgradeProfileVersion"; }
29
30 AWS_WELLARCHITECTED_API Aws::String SerializePayload() const override;
31
33
34 inline const Aws::String& GetWorkloadId() const { return m_workloadId; }
35 inline bool WorkloadIdHasBeenSet() const { return m_workloadIdHasBeenSet; }
36 template <typename WorkloadIdT = Aws::String>
37 void SetWorkloadId(WorkloadIdT&& value) {
38 m_workloadIdHasBeenSet = true;
39 m_workloadId = std::forward<WorkloadIdT>(value);
40 }
41 template <typename WorkloadIdT = Aws::String>
43 SetWorkloadId(std::forward<WorkloadIdT>(value));
44 return *this;
45 }
47
49
52 inline const Aws::String& GetProfileArn() const { return m_profileArn; }
53 inline bool ProfileArnHasBeenSet() const { return m_profileArnHasBeenSet; }
54 template <typename ProfileArnT = Aws::String>
55 void SetProfileArn(ProfileArnT&& value) {
56 m_profileArnHasBeenSet = true;
57 m_profileArn = std::forward<ProfileArnT>(value);
58 }
59 template <typename ProfileArnT = Aws::String>
61 SetProfileArn(std::forward<ProfileArnT>(value));
62 return *this;
63 }
65
67
68 inline const Aws::String& GetMilestoneName() const { return m_milestoneName; }
69 inline bool MilestoneNameHasBeenSet() const { return m_milestoneNameHasBeenSet; }
70 template <typename MilestoneNameT = Aws::String>
71 void SetMilestoneName(MilestoneNameT&& value) {
72 m_milestoneNameHasBeenSet = true;
73 m_milestoneName = std::forward<MilestoneNameT>(value);
74 }
75 template <typename MilestoneNameT = Aws::String>
77 SetMilestoneName(std::forward<MilestoneNameT>(value));
78 return *this;
79 }
81
83
84 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
85 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
86 template <typename ClientRequestTokenT = Aws::String>
87 void SetClientRequestToken(ClientRequestTokenT&& value) {
88 m_clientRequestTokenHasBeenSet = true;
89 m_clientRequestToken = std::forward<ClientRequestTokenT>(value);
90 }
91 template <typename ClientRequestTokenT = Aws::String>
93 SetClientRequestToken(std::forward<ClientRequestTokenT>(value));
94 return *this;
95 }
97 private:
98 Aws::String m_workloadId;
99 bool m_workloadIdHasBeenSet = false;
100
101 Aws::String m_profileArn;
102 bool m_profileArnHasBeenSet = false;
103
104 Aws::String m_milestoneName;
105 bool m_milestoneNameHasBeenSet = false;
106
107 Aws::String m_clientRequestToken{Aws::Utils::UUID::PseudoRandomUUID()};
108 bool m_clientRequestTokenHasBeenSet = true;
109};
110
111} // namespace Model
112} // namespace WellArchitected
113} // namespace Aws
static Aws::Utils::UUID PseudoRandomUUID()
UpgradeProfileVersionRequest & WithMilestoneName(MilestoneNameT &&value)
UpgradeProfileVersionRequest & WithWorkloadId(WorkloadIdT &&value)
AWS_WELLARCHITECTED_API UpgradeProfileVersionRequest()=default
UpgradeProfileVersionRequest & WithClientRequestToken(ClientRequestTokenT &&value)
AWS_WELLARCHITECTED_API Aws::String SerializePayload() const override
UpgradeProfileVersionRequest & WithProfileArn(ProfileArnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String