AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AssociateMemberToJobRequest.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:
26 AWS_DEADLINE_API AssociateMemberToJobRequest();
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 "AssociateMemberToJob"; }
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 AssociateMemberToJobRequest& WithFarmId(const Aws::String& value) { SetFarmId(value); return *this;}
47 inline AssociateMemberToJobRequest& WithFarmId(Aws::String&& value) { SetFarmId(std::move(value)); return *this;}
48 inline AssociateMemberToJobRequest& WithFarmId(const char* value) { SetFarmId(value); return *this;}
50
52
55 inline const Aws::String& GetQueueId() const{ return m_queueId; }
56 inline bool QueueIdHasBeenSet() const { return m_queueIdHasBeenSet; }
57 inline void SetQueueId(const Aws::String& value) { m_queueIdHasBeenSet = true; m_queueId = value; }
58 inline void SetQueueId(Aws::String&& value) { m_queueIdHasBeenSet = true; m_queueId = std::move(value); }
59 inline void SetQueueId(const char* value) { m_queueIdHasBeenSet = true; m_queueId.assign(value); }
60 inline AssociateMemberToJobRequest& WithQueueId(const Aws::String& value) { SetQueueId(value); return *this;}
61 inline AssociateMemberToJobRequest& WithQueueId(Aws::String&& value) { SetQueueId(std::move(value)); return *this;}
62 inline AssociateMemberToJobRequest& WithQueueId(const char* value) { SetQueueId(value); return *this;}
64
66
69 inline const Aws::String& GetJobId() const{ return m_jobId; }
70 inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; }
71 inline void SetJobId(const Aws::String& value) { m_jobIdHasBeenSet = true; m_jobId = value; }
72 inline void SetJobId(Aws::String&& value) { m_jobIdHasBeenSet = true; m_jobId = std::move(value); }
73 inline void SetJobId(const char* value) { m_jobIdHasBeenSet = true; m_jobId.assign(value); }
74 inline AssociateMemberToJobRequest& WithJobId(const Aws::String& value) { SetJobId(value); return *this;}
75 inline AssociateMemberToJobRequest& WithJobId(Aws::String&& value) { SetJobId(std::move(value)); return *this;}
76 inline AssociateMemberToJobRequest& WithJobId(const char* value) { SetJobId(value); return *this;}
78
80
83 inline const Aws::String& GetPrincipalId() const{ return m_principalId; }
84 inline bool PrincipalIdHasBeenSet() const { return m_principalIdHasBeenSet; }
85 inline void SetPrincipalId(const Aws::String& value) { m_principalIdHasBeenSet = true; m_principalId = value; }
86 inline void SetPrincipalId(Aws::String&& value) { m_principalIdHasBeenSet = true; m_principalId = std::move(value); }
87 inline void SetPrincipalId(const char* value) { m_principalIdHasBeenSet = true; m_principalId.assign(value); }
88 inline AssociateMemberToJobRequest& WithPrincipalId(const Aws::String& value) { SetPrincipalId(value); return *this;}
89 inline AssociateMemberToJobRequest& WithPrincipalId(Aws::String&& value) { SetPrincipalId(std::move(value)); return *this;}
90 inline AssociateMemberToJobRequest& WithPrincipalId(const char* value) { SetPrincipalId(value); return *this;}
92
94
97 inline const PrincipalType& GetPrincipalType() const{ return m_principalType; }
98 inline bool PrincipalTypeHasBeenSet() const { return m_principalTypeHasBeenSet; }
99 inline void SetPrincipalType(const PrincipalType& value) { m_principalTypeHasBeenSet = true; m_principalType = value; }
100 inline void SetPrincipalType(PrincipalType&& value) { m_principalTypeHasBeenSet = true; m_principalType = std::move(value); }
102 inline AssociateMemberToJobRequest& WithPrincipalType(PrincipalType&& value) { SetPrincipalType(std::move(value)); return *this;}
104
106
109 inline const Aws::String& GetIdentityStoreId() const{ return m_identityStoreId; }
110 inline bool IdentityStoreIdHasBeenSet() const { return m_identityStoreIdHasBeenSet; }
111 inline void SetIdentityStoreId(const Aws::String& value) { m_identityStoreIdHasBeenSet = true; m_identityStoreId = value; }
112 inline void SetIdentityStoreId(Aws::String&& value) { m_identityStoreIdHasBeenSet = true; m_identityStoreId = std::move(value); }
113 inline void SetIdentityStoreId(const char* value) { m_identityStoreIdHasBeenSet = true; m_identityStoreId.assign(value); }
115 inline AssociateMemberToJobRequest& WithIdentityStoreId(Aws::String&& value) { SetIdentityStoreId(std::move(value)); return *this;}
116 inline AssociateMemberToJobRequest& WithIdentityStoreId(const char* value) { SetIdentityStoreId(value); return *this;}
118
120
123 inline const MembershipLevel& GetMembershipLevel() const{ return m_membershipLevel; }
124 inline bool MembershipLevelHasBeenSet() const { return m_membershipLevelHasBeenSet; }
125 inline void SetMembershipLevel(const MembershipLevel& value) { m_membershipLevelHasBeenSet = true; m_membershipLevel = value; }
126 inline void SetMembershipLevel(MembershipLevel&& value) { m_membershipLevelHasBeenSet = true; m_membershipLevel = std::move(value); }
128 inline AssociateMemberToJobRequest& WithMembershipLevel(MembershipLevel&& value) { SetMembershipLevel(std::move(value)); return *this;}
130 private:
131
132 Aws::String m_farmId;
133 bool m_farmIdHasBeenSet = false;
134
135 Aws::String m_queueId;
136 bool m_queueIdHasBeenSet = false;
137
138 Aws::String m_jobId;
139 bool m_jobIdHasBeenSet = false;
140
141 Aws::String m_principalId;
142 bool m_principalIdHasBeenSet = false;
143
144 PrincipalType m_principalType;
145 bool m_principalTypeHasBeenSet = false;
146
147 Aws::String m_identityStoreId;
148 bool m_identityStoreIdHasBeenSet = false;
149
150 MembershipLevel m_membershipLevel;
151 bool m_membershipLevelHasBeenSet = false;
152 };
153
154} // namespace Model
155} // namespace deadline
156} // namespace Aws
AssociateMemberToJobRequest & WithJobId(Aws::String &&value)
AssociateMemberToJobRequest & WithPrincipalId(const char *value)
AssociateMemberToJobRequest & WithQueueId(const char *value)
AssociateMemberToJobRequest & WithIdentityStoreId(Aws::String &&value)
AssociateMemberToJobRequest & WithQueueId(Aws::String &&value)
AssociateMemberToJobRequest & WithJobId(const char *value)
AssociateMemberToJobRequest & WithMembershipLevel(MembershipLevel &&value)
AssociateMemberToJobRequest & WithJobId(const Aws::String &value)
AssociateMemberToJobRequest & WithPrincipalType(PrincipalType &&value)
AssociateMemberToJobRequest & WithFarmId(Aws::String &&value)
AssociateMemberToJobRequest & WithFarmId(const char *value)
AssociateMemberToJobRequest & WithIdentityStoreId(const Aws::String &value)
AssociateMemberToJobRequest & WithFarmId(const Aws::String &value)
AssociateMemberToJobRequest & WithMembershipLevel(const MembershipLevel &value)
AssociateMemberToJobRequest & WithQueueId(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
AssociateMemberToJobRequest & WithIdentityStoreId(const char *value)
AssociateMemberToJobRequest & WithPrincipalId(Aws::String &&value)
AssociateMemberToJobRequest & WithPrincipalId(const Aws::String &value)
AWS_DEADLINE_API Aws::String SerializePayload() const override
AssociateMemberToJobRequest & WithPrincipalType(const PrincipalType &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String