AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
FarmMember.h
1
6#pragma once
7#include <aws/deadline/Deadline_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/deadline/model/PrincipalType.h>
10#include <aws/deadline/model/MembershipLevel.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace deadline
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_DEADLINE_API FarmMember();
37 AWS_DEADLINE_API FarmMember(Aws::Utils::Json::JsonView jsonValue);
38 AWS_DEADLINE_API FarmMember& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_DEADLINE_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetFarmId() const{ return m_farmId; }
47 inline bool FarmIdHasBeenSet() const { return m_farmIdHasBeenSet; }
48 inline void SetFarmId(const Aws::String& value) { m_farmIdHasBeenSet = true; m_farmId = value; }
49 inline void SetFarmId(Aws::String&& value) { m_farmIdHasBeenSet = true; m_farmId = std::move(value); }
50 inline void SetFarmId(const char* value) { m_farmIdHasBeenSet = true; m_farmId.assign(value); }
51 inline FarmMember& WithFarmId(const Aws::String& value) { SetFarmId(value); return *this;}
52 inline FarmMember& WithFarmId(Aws::String&& value) { SetFarmId(std::move(value)); return *this;}
53 inline FarmMember& WithFarmId(const char* value) { SetFarmId(value); return *this;}
55
57
60 inline const Aws::String& GetPrincipalId() const{ return m_principalId; }
61 inline bool PrincipalIdHasBeenSet() const { return m_principalIdHasBeenSet; }
62 inline void SetPrincipalId(const Aws::String& value) { m_principalIdHasBeenSet = true; m_principalId = value; }
63 inline void SetPrincipalId(Aws::String&& value) { m_principalIdHasBeenSet = true; m_principalId = std::move(value); }
64 inline void SetPrincipalId(const char* value) { m_principalIdHasBeenSet = true; m_principalId.assign(value); }
65 inline FarmMember& WithPrincipalId(const Aws::String& value) { SetPrincipalId(value); return *this;}
66 inline FarmMember& WithPrincipalId(Aws::String&& value) { SetPrincipalId(std::move(value)); return *this;}
67 inline FarmMember& WithPrincipalId(const char* value) { SetPrincipalId(value); return *this;}
69
71
74 inline const PrincipalType& GetPrincipalType() const{ return m_principalType; }
75 inline bool PrincipalTypeHasBeenSet() const { return m_principalTypeHasBeenSet; }
76 inline void SetPrincipalType(const PrincipalType& value) { m_principalTypeHasBeenSet = true; m_principalType = value; }
77 inline void SetPrincipalType(PrincipalType&& value) { m_principalTypeHasBeenSet = true; m_principalType = std::move(value); }
78 inline FarmMember& WithPrincipalType(const PrincipalType& value) { SetPrincipalType(value); return *this;}
79 inline FarmMember& WithPrincipalType(PrincipalType&& value) { SetPrincipalType(std::move(value)); return *this;}
81
83
86 inline const Aws::String& GetIdentityStoreId() const{ return m_identityStoreId; }
87 inline bool IdentityStoreIdHasBeenSet() const { return m_identityStoreIdHasBeenSet; }
88 inline void SetIdentityStoreId(const Aws::String& value) { m_identityStoreIdHasBeenSet = true; m_identityStoreId = value; }
89 inline void SetIdentityStoreId(Aws::String&& value) { m_identityStoreIdHasBeenSet = true; m_identityStoreId = std::move(value); }
90 inline void SetIdentityStoreId(const char* value) { m_identityStoreIdHasBeenSet = true; m_identityStoreId.assign(value); }
91 inline FarmMember& WithIdentityStoreId(const Aws::String& value) { SetIdentityStoreId(value); return *this;}
92 inline FarmMember& WithIdentityStoreId(Aws::String&& value) { SetIdentityStoreId(std::move(value)); return *this;}
93 inline FarmMember& WithIdentityStoreId(const char* value) { SetIdentityStoreId(value); return *this;}
95
97
100 inline const MembershipLevel& GetMembershipLevel() const{ return m_membershipLevel; }
101 inline bool MembershipLevelHasBeenSet() const { return m_membershipLevelHasBeenSet; }
102 inline void SetMembershipLevel(const MembershipLevel& value) { m_membershipLevelHasBeenSet = true; m_membershipLevel = value; }
103 inline void SetMembershipLevel(MembershipLevel&& value) { m_membershipLevelHasBeenSet = true; m_membershipLevel = std::move(value); }
104 inline FarmMember& WithMembershipLevel(const MembershipLevel& value) { SetMembershipLevel(value); return *this;}
105 inline FarmMember& WithMembershipLevel(MembershipLevel&& value) { SetMembershipLevel(std::move(value)); return *this;}
107 private:
108
109 Aws::String m_farmId;
110 bool m_farmIdHasBeenSet = false;
111
112 Aws::String m_principalId;
113 bool m_principalIdHasBeenSet = false;
114
115 PrincipalType m_principalType;
116 bool m_principalTypeHasBeenSet = false;
117
118 Aws::String m_identityStoreId;
119 bool m_identityStoreIdHasBeenSet = false;
120
121 MembershipLevel m_membershipLevel;
122 bool m_membershipLevelHasBeenSet = false;
123 };
124
125} // namespace Model
126} // namespace deadline
127} // namespace Aws
const Aws::String & GetPrincipalId() const
Definition FarmMember.h:60
FarmMember & WithPrincipalId(const Aws::String &value)
Definition FarmMember.h:65
void SetIdentityStoreId(const Aws::String &value)
Definition FarmMember.h:88
FarmMember & WithMembershipLevel(const MembershipLevel &value)
Definition FarmMember.h:104
FarmMember & WithMembershipLevel(MembershipLevel &&value)
Definition FarmMember.h:105
AWS_DEADLINE_API FarmMember(Aws::Utils::Json::JsonView jsonValue)
void SetPrincipalId(const char *value)
Definition FarmMember.h:64
const Aws::String & GetFarmId() const
Definition FarmMember.h:46
void SetIdentityStoreId(Aws::String &&value)
Definition FarmMember.h:89
void SetMembershipLevel(const MembershipLevel &value)
Definition FarmMember.h:102
FarmMember & WithFarmId(const char *value)
Definition FarmMember.h:53
const Aws::String & GetIdentityStoreId() const
Definition FarmMember.h:86
AWS_DEADLINE_API Aws::Utils::Json::JsonValue Jsonize() const
FarmMember & WithFarmId(const Aws::String &value)
Definition FarmMember.h:51
const MembershipLevel & GetMembershipLevel() const
Definition FarmMember.h:100
void SetFarmId(const Aws::String &value)
Definition FarmMember.h:48
void SetFarmId(Aws::String &&value)
Definition FarmMember.h:49
FarmMember & WithPrincipalId(const char *value)
Definition FarmMember.h:67
FarmMember & WithFarmId(Aws::String &&value)
Definition FarmMember.h:52
AWS_DEADLINE_API FarmMember & operator=(Aws::Utils::Json::JsonView jsonValue)
FarmMember & WithPrincipalType(PrincipalType &&value)
Definition FarmMember.h:79
FarmMember & WithIdentityStoreId(const char *value)
Definition FarmMember.h:93
void SetPrincipalId(const Aws::String &value)
Definition FarmMember.h:62
void SetPrincipalType(const PrincipalType &value)
Definition FarmMember.h:76
void SetPrincipalId(Aws::String &&value)
Definition FarmMember.h:63
const PrincipalType & GetPrincipalType() const
Definition FarmMember.h:74
void SetIdentityStoreId(const char *value)
Definition FarmMember.h:90
void SetPrincipalType(PrincipalType &&value)
Definition FarmMember.h:77
void SetFarmId(const char *value)
Definition FarmMember.h:50
FarmMember & WithIdentityStoreId(const Aws::String &value)
Definition FarmMember.h:91
void SetMembershipLevel(MembershipLevel &&value)
Definition FarmMember.h:103
FarmMember & WithPrincipalId(Aws::String &&value)
Definition FarmMember.h:66
FarmMember & WithIdentityStoreId(Aws::String &&value)
Definition FarmMember.h:92
FarmMember & WithPrincipalType(const PrincipalType &value)
Definition FarmMember.h:78
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue