AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AssociateMemberToFleetRequest.h
1
6#pragma once
7#include <aws/deadline/Deadline_EXPORTS.h>
8#include <aws/deadline/DeadlineRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/deadline/model/PrincipalType.h>
11#include <aws/deadline/model/MembershipLevel.h>
12#include <utility>
13
14namespace Aws
15{
16namespace deadline
17{
18namespace Model
19{
20
24 {
25 public:
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "AssociateMemberToFleet"; }
33
34 AWS_DEADLINE_API Aws::String SerializePayload() const override;
35
36
38
41 inline const Aws::String& GetFarmId() const{ return m_farmId; }
42 inline bool FarmIdHasBeenSet() const { return m_farmIdHasBeenSet; }
43 inline void SetFarmId(const Aws::String& value) { m_farmIdHasBeenSet = true; m_farmId = value; }
44 inline void SetFarmId(Aws::String&& value) { m_farmIdHasBeenSet = true; m_farmId = std::move(value); }
45 inline void SetFarmId(const char* value) { m_farmIdHasBeenSet = true; m_farmId.assign(value); }
46 inline AssociateMemberToFleetRequest& WithFarmId(const Aws::String& value) { SetFarmId(value); return *this;}
47 inline AssociateMemberToFleetRequest& WithFarmId(Aws::String&& value) { SetFarmId(std::move(value)); return *this;}
48 inline AssociateMemberToFleetRequest& WithFarmId(const char* value) { SetFarmId(value); return *this;}
50
52
55 inline const Aws::String& GetFleetId() const{ return m_fleetId; }
56 inline bool FleetIdHasBeenSet() const { return m_fleetIdHasBeenSet; }
57 inline void SetFleetId(const Aws::String& value) { m_fleetIdHasBeenSet = true; m_fleetId = value; }
58 inline void SetFleetId(Aws::String&& value) { m_fleetIdHasBeenSet = true; m_fleetId = std::move(value); }
59 inline void SetFleetId(const char* value) { m_fleetIdHasBeenSet = true; m_fleetId.assign(value); }
60 inline AssociateMemberToFleetRequest& WithFleetId(const Aws::String& value) { SetFleetId(value); return *this;}
61 inline AssociateMemberToFleetRequest& WithFleetId(Aws::String&& value) { SetFleetId(std::move(value)); return *this;}
62 inline AssociateMemberToFleetRequest& WithFleetId(const char* value) { SetFleetId(value); return *this;}
64
66
69 inline const Aws::String& GetPrincipalId() const{ return m_principalId; }
70 inline bool PrincipalIdHasBeenSet() const { return m_principalIdHasBeenSet; }
71 inline void SetPrincipalId(const Aws::String& value) { m_principalIdHasBeenSet = true; m_principalId = value; }
72 inline void SetPrincipalId(Aws::String&& value) { m_principalIdHasBeenSet = true; m_principalId = std::move(value); }
73 inline void SetPrincipalId(const char* value) { m_principalIdHasBeenSet = true; m_principalId.assign(value); }
74 inline AssociateMemberToFleetRequest& WithPrincipalId(const Aws::String& value) { SetPrincipalId(value); return *this;}
75 inline AssociateMemberToFleetRequest& WithPrincipalId(Aws::String&& value) { SetPrincipalId(std::move(value)); return *this;}
76 inline AssociateMemberToFleetRequest& WithPrincipalId(const char* value) { SetPrincipalId(value); return *this;}
78
80
83 inline const PrincipalType& GetPrincipalType() const{ return m_principalType; }
84 inline bool PrincipalTypeHasBeenSet() const { return m_principalTypeHasBeenSet; }
85 inline void SetPrincipalType(const PrincipalType& value) { m_principalTypeHasBeenSet = true; m_principalType = value; }
86 inline void SetPrincipalType(PrincipalType&& value) { m_principalTypeHasBeenSet = true; m_principalType = std::move(value); }
88 inline AssociateMemberToFleetRequest& WithPrincipalType(PrincipalType&& value) { SetPrincipalType(std::move(value)); return *this;}
90
92
95 inline const Aws::String& GetIdentityStoreId() const{ return m_identityStoreId; }
96 inline bool IdentityStoreIdHasBeenSet() const { return m_identityStoreIdHasBeenSet; }
97 inline void SetIdentityStoreId(const Aws::String& value) { m_identityStoreIdHasBeenSet = true; m_identityStoreId = value; }
98 inline void SetIdentityStoreId(Aws::String&& value) { m_identityStoreIdHasBeenSet = true; m_identityStoreId = std::move(value); }
99 inline void SetIdentityStoreId(const char* value) { m_identityStoreIdHasBeenSet = true; m_identityStoreId.assign(value); }
101 inline AssociateMemberToFleetRequest& WithIdentityStoreId(Aws::String&& value) { SetIdentityStoreId(std::move(value)); return *this;}
102 inline AssociateMemberToFleetRequest& WithIdentityStoreId(const char* value) { SetIdentityStoreId(value); return *this;}
104
106
109 inline const MembershipLevel& GetMembershipLevel() const{ return m_membershipLevel; }
110 inline bool MembershipLevelHasBeenSet() const { return m_membershipLevelHasBeenSet; }
111 inline void SetMembershipLevel(const MembershipLevel& value) { m_membershipLevelHasBeenSet = true; m_membershipLevel = value; }
112 inline void SetMembershipLevel(MembershipLevel&& value) { m_membershipLevelHasBeenSet = true; m_membershipLevel = std::move(value); }
114 inline AssociateMemberToFleetRequest& WithMembershipLevel(MembershipLevel&& value) { SetMembershipLevel(std::move(value)); return *this;}
116 private:
117
118 Aws::String m_farmId;
119 bool m_farmIdHasBeenSet = false;
120
121 Aws::String m_fleetId;
122 bool m_fleetIdHasBeenSet = false;
123
124 Aws::String m_principalId;
125 bool m_principalIdHasBeenSet = false;
126
127 PrincipalType m_principalType;
128 bool m_principalTypeHasBeenSet = false;
129
130 Aws::String m_identityStoreId;
131 bool m_identityStoreIdHasBeenSet = false;
132
133 MembershipLevel m_membershipLevel;
134 bool m_membershipLevelHasBeenSet = false;
135 };
136
137} // namespace Model
138} // namespace deadline
139} // namespace Aws
AssociateMemberToFleetRequest & WithFarmId(Aws::String &&value)
AssociateMemberToFleetRequest & WithMembershipLevel(const MembershipLevel &value)
AssociateMemberToFleetRequest & WithPrincipalId(Aws::String &&value)
AssociateMemberToFleetRequest & WithPrincipalId(const Aws::String &value)
AssociateMemberToFleetRequest & WithFarmId(const Aws::String &value)
AssociateMemberToFleetRequest & WithIdentityStoreId(const char *value)
AssociateMemberToFleetRequest & WithMembershipLevel(MembershipLevel &&value)
AssociateMemberToFleetRequest & WithPrincipalType(PrincipalType &&value)
AssociateMemberToFleetRequest & WithFleetId(const Aws::String &value)
AssociateMemberToFleetRequest & WithPrincipalType(const PrincipalType &value)
AssociateMemberToFleetRequest & WithFleetId(Aws::String &&value)
AssociateMemberToFleetRequest & WithIdentityStoreId(const Aws::String &value)
AssociateMemberToFleetRequest & WithFleetId(const char *value)
AssociateMemberToFleetRequest & WithPrincipalId(const char *value)
AssociateMemberToFleetRequest & WithFarmId(const char *value)
AssociateMemberToFleetRequest & WithIdentityStoreId(Aws::String &&value)
AWS_DEADLINE_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String