AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
AssociateProfilesRequest.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 <utility>
12
13namespace Aws
14{
15namespace WellArchitected
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_WELLARCHITECTED_API AssociateProfilesRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "AssociateProfiles"; }
32
33 AWS_WELLARCHITECTED_API Aws::String SerializePayload() const override;
34
35
37
38 inline const Aws::String& GetWorkloadId() const { return m_workloadId; }
39 inline bool WorkloadIdHasBeenSet() const { return m_workloadIdHasBeenSet; }
40 template<typename WorkloadIdT = Aws::String>
41 void SetWorkloadId(WorkloadIdT&& value) { m_workloadIdHasBeenSet = true; m_workloadId = std::forward<WorkloadIdT>(value); }
42 template<typename WorkloadIdT = Aws::String>
43 AssociateProfilesRequest& WithWorkloadId(WorkloadIdT&& value) { SetWorkloadId(std::forward<WorkloadIdT>(value)); return *this;}
45
47
50 inline const Aws::Vector<Aws::String>& GetProfileArns() const { return m_profileArns; }
51 inline bool ProfileArnsHasBeenSet() const { return m_profileArnsHasBeenSet; }
52 template<typename ProfileArnsT = Aws::Vector<Aws::String>>
53 void SetProfileArns(ProfileArnsT&& value) { m_profileArnsHasBeenSet = true; m_profileArns = std::forward<ProfileArnsT>(value); }
54 template<typename ProfileArnsT = Aws::Vector<Aws::String>>
55 AssociateProfilesRequest& WithProfileArns(ProfileArnsT&& value) { SetProfileArns(std::forward<ProfileArnsT>(value)); return *this;}
56 template<typename ProfileArnsT = Aws::String>
57 AssociateProfilesRequest& AddProfileArns(ProfileArnsT&& value) { m_profileArnsHasBeenSet = true; m_profileArns.emplace_back(std::forward<ProfileArnsT>(value)); return *this; }
59 private:
60
61 Aws::String m_workloadId;
62 bool m_workloadIdHasBeenSet = false;
63
64 Aws::Vector<Aws::String> m_profileArns;
65 bool m_profileArnsHasBeenSet = false;
66 };
67
68} // namespace Model
69} // namespace WellArchitected
70} // 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