AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AssociateMemberToFarmRequest.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 AssociateMemberToFarmRequest();
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 "AssociateMemberToFarm"; }
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 AssociateMemberToFarmRequest& WithFarmId(const Aws::String& value) { SetFarmId(value); return *this;}
47 inline AssociateMemberToFarmRequest& WithFarmId(Aws::String&& value) { SetFarmId(std::move(value)); return *this;}
48 inline AssociateMemberToFarmRequest& WithFarmId(const char* value) { SetFarmId(value); return *this;}
50
52
55 inline const Aws::String& GetPrincipalId() const{ return m_principalId; }
56 inline bool PrincipalIdHasBeenSet() const { return m_principalIdHasBeenSet; }
57 inline void SetPrincipalId(const Aws::String& value) { m_principalIdHasBeenSet = true; m_principalId = value; }
58 inline void SetPrincipalId(Aws::String&& value) { m_principalIdHasBeenSet = true; m_principalId = std::move(value); }
59 inline void SetPrincipalId(const char* value) { m_principalIdHasBeenSet = true; m_principalId.assign(value); }
60 inline AssociateMemberToFarmRequest& WithPrincipalId(const Aws::String& value) { SetPrincipalId(value); return *this;}
61 inline AssociateMemberToFarmRequest& WithPrincipalId(Aws::String&& value) { SetPrincipalId(std::move(value)); return *this;}
62 inline AssociateMemberToFarmRequest& WithPrincipalId(const char* value) { SetPrincipalId(value); return *this;}
64
66
69 inline const PrincipalType& GetPrincipalType() const{ return m_principalType; }
70 inline bool PrincipalTypeHasBeenSet() const { return m_principalTypeHasBeenSet; }
71 inline void SetPrincipalType(const PrincipalType& value) { m_principalTypeHasBeenSet = true; m_principalType = value; }
72 inline void SetPrincipalType(PrincipalType&& value) { m_principalTypeHasBeenSet = true; m_principalType = std::move(value); }
74 inline AssociateMemberToFarmRequest& WithPrincipalType(PrincipalType&& value) { SetPrincipalType(std::move(value)); return *this;}
76
78
81 inline const Aws::String& GetIdentityStoreId() const{ return m_identityStoreId; }
82 inline bool IdentityStoreIdHasBeenSet() const { return m_identityStoreIdHasBeenSet; }
83 inline void SetIdentityStoreId(const Aws::String& value) { m_identityStoreIdHasBeenSet = true; m_identityStoreId = value; }
84 inline void SetIdentityStoreId(Aws::String&& value) { m_identityStoreIdHasBeenSet = true; m_identityStoreId = std::move(value); }
85 inline void SetIdentityStoreId(const char* value) { m_identityStoreIdHasBeenSet = true; m_identityStoreId.assign(value); }
87 inline AssociateMemberToFarmRequest& WithIdentityStoreId(Aws::String&& value) { SetIdentityStoreId(std::move(value)); return *this;}
88 inline AssociateMemberToFarmRequest& WithIdentityStoreId(const char* value) { SetIdentityStoreId(value); return *this;}
90
92
95 inline const MembershipLevel& GetMembershipLevel() const{ return m_membershipLevel; }
96 inline bool MembershipLevelHasBeenSet() const { return m_membershipLevelHasBeenSet; }
97 inline void SetMembershipLevel(const MembershipLevel& value) { m_membershipLevelHasBeenSet = true; m_membershipLevel = value; }
98 inline void SetMembershipLevel(MembershipLevel&& value) { m_membershipLevelHasBeenSet = true; m_membershipLevel = std::move(value); }
100 inline AssociateMemberToFarmRequest& WithMembershipLevel(MembershipLevel&& value) { SetMembershipLevel(std::move(value)); return *this;}
102 private:
103
104 Aws::String m_farmId;
105 bool m_farmIdHasBeenSet = false;
106
107 Aws::String m_principalId;
108 bool m_principalIdHasBeenSet = false;
109
110 PrincipalType m_principalType;
111 bool m_principalTypeHasBeenSet = false;
112
113 Aws::String m_identityStoreId;
114 bool m_identityStoreIdHasBeenSet = false;
115
116 MembershipLevel m_membershipLevel;
117 bool m_membershipLevelHasBeenSet = false;
118 };
119
120} // namespace Model
121} // namespace deadline
122} // namespace Aws
AssociateMemberToFarmRequest & WithFarmId(const Aws::String &value)
AssociateMemberToFarmRequest & WithIdentityStoreId(Aws::String &&value)
AssociateMemberToFarmRequest & WithPrincipalId(const Aws::String &value)
AssociateMemberToFarmRequest & WithIdentityStoreId(const char *value)
AssociateMemberToFarmRequest & WithPrincipalType(const PrincipalType &value)
AssociateMemberToFarmRequest & WithPrincipalId(const char *value)
AssociateMemberToFarmRequest & WithPrincipalType(PrincipalType &&value)
AssociateMemberToFarmRequest & WithMembershipLevel(const MembershipLevel &value)
AssociateMemberToFarmRequest & WithFarmId(const char *value)
AWS_DEADLINE_API Aws::String SerializePayload() const override
AssociateMemberToFarmRequest & WithMembershipLevel(MembershipLevel &&value)
AssociateMemberToFarmRequest & WithFarmId(Aws::String &&value)
AssociateMemberToFarmRequest & WithIdentityStoreId(const Aws::String &value)
AssociateMemberToFarmRequest & WithPrincipalId(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String