AWS SDK for C++

AWS SDK for C++ Version 1.11.682

Loading...
Searching...
No Matches
AssociateProfilesRequest.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
12#include <utility>
13
14namespace Aws {
15namespace WellArchitected {
16namespace Model {
17
21 public:
22 AWS_WELLARCHITECTED_API AssociateProfilesRequest() = 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 "AssociateProfiles"; }
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::Vector<Aws::String>& GetProfileArns() const { return m_profileArns; }
53 inline bool ProfileArnsHasBeenSet() const { return m_profileArnsHasBeenSet; }
54 template <typename ProfileArnsT = Aws::Vector<Aws::String>>
55 void SetProfileArns(ProfileArnsT&& value) {
56 m_profileArnsHasBeenSet = true;
57 m_profileArns = std::forward<ProfileArnsT>(value);
58 }
59 template <typename ProfileArnsT = Aws::Vector<Aws::String>>
61 SetProfileArns(std::forward<ProfileArnsT>(value));
62 return *this;
63 }
64 template <typename ProfileArnsT = Aws::String>
66 m_profileArnsHasBeenSet = true;
67 m_profileArns.emplace_back(std::forward<ProfileArnsT>(value));
68 return *this;
69 }
71 private:
72 Aws::String m_workloadId;
73 bool m_workloadIdHasBeenSet = false;
74
75 Aws::Vector<Aws::String> m_profileArns;
76 bool m_profileArnsHasBeenSet = false;
77};
78
79} // namespace Model
80} // namespace WellArchitected
81} // namespace Aws
AssociateProfilesRequest & WithWorkloadId(WorkloadIdT &&value)
AssociateProfilesRequest & WithProfileArns(ProfileArnsT &&value)
const Aws::Vector< Aws::String > & GetProfileArns() const
virtual const char * GetServiceRequestName() const override
AWS_WELLARCHITECTED_API AssociateProfilesRequest()=default
AWS_WELLARCHITECTED_API Aws::String SerializePayload() const override
AssociateProfilesRequest & AddProfileArns(ProfileArnsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector