1 /**
2  * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3  * SPDX-License-Identifier: Apache-2.0.
4  */
5 
6 #pragma once
7 #include <aws/nimble/NimbleStudio_EXPORTS.h>
8 #include <aws/core/utils/memory/stl/AWSString.h>
9 #include <aws/nimble/model/StudioPersona.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18   class JsonValue;
19   class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace NimbleStudio
23 {
24 namespace Model
25 {
26 
27   /**
28    * <p><h3>See Also:</h3>   <a
29    * href="http://docs.aws.amazon.com/goto/WebAPI/nimble-2020-08-01/StudioMembership">AWS
30    * API Reference</a></p>
31    */
32   class AWS_NIMBLESTUDIO_API StudioMembership
33   {
34   public:
35     StudioMembership();
36     StudioMembership(Aws::Utils::Json::JsonView jsonValue);
37     StudioMembership& operator=(Aws::Utils::Json::JsonView jsonValue);
38     Aws::Utils::Json::JsonValue Jsonize() const;
39 
40 
41     /**
42      * <p>The ID of the identity store.</p>
43      */
GetIdentityStoreId()44     inline const Aws::String& GetIdentityStoreId() const{ return m_identityStoreId; }
45 
46     /**
47      * <p>The ID of the identity store.</p>
48      */
IdentityStoreIdHasBeenSet()49     inline bool IdentityStoreIdHasBeenSet() const { return m_identityStoreIdHasBeenSet; }
50 
51     /**
52      * <p>The ID of the identity store.</p>
53      */
SetIdentityStoreId(const Aws::String & value)54     inline void SetIdentityStoreId(const Aws::String& value) { m_identityStoreIdHasBeenSet = true; m_identityStoreId = value; }
55 
56     /**
57      * <p>The ID of the identity store.</p>
58      */
SetIdentityStoreId(Aws::String && value)59     inline void SetIdentityStoreId(Aws::String&& value) { m_identityStoreIdHasBeenSet = true; m_identityStoreId = std::move(value); }
60 
61     /**
62      * <p>The ID of the identity store.</p>
63      */
SetIdentityStoreId(const char * value)64     inline void SetIdentityStoreId(const char* value) { m_identityStoreIdHasBeenSet = true; m_identityStoreId.assign(value); }
65 
66     /**
67      * <p>The ID of the identity store.</p>
68      */
WithIdentityStoreId(const Aws::String & value)69     inline StudioMembership& WithIdentityStoreId(const Aws::String& value) { SetIdentityStoreId(value); return *this;}
70 
71     /**
72      * <p>The ID of the identity store.</p>
73      */
WithIdentityStoreId(Aws::String && value)74     inline StudioMembership& WithIdentityStoreId(Aws::String&& value) { SetIdentityStoreId(std::move(value)); return *this;}
75 
76     /**
77      * <p>The ID of the identity store.</p>
78      */
WithIdentityStoreId(const char * value)79     inline StudioMembership& WithIdentityStoreId(const char* value) { SetIdentityStoreId(value); return *this;}
80 
81 
82     /**
83      * <p>The persona.</p>
84      */
GetPersona()85     inline const StudioPersona& GetPersona() const{ return m_persona; }
86 
87     /**
88      * <p>The persona.</p>
89      */
PersonaHasBeenSet()90     inline bool PersonaHasBeenSet() const { return m_personaHasBeenSet; }
91 
92     /**
93      * <p>The persona.</p>
94      */
SetPersona(const StudioPersona & value)95     inline void SetPersona(const StudioPersona& value) { m_personaHasBeenSet = true; m_persona = value; }
96 
97     /**
98      * <p>The persona.</p>
99      */
SetPersona(StudioPersona && value)100     inline void SetPersona(StudioPersona&& value) { m_personaHasBeenSet = true; m_persona = std::move(value); }
101 
102     /**
103      * <p>The persona.</p>
104      */
WithPersona(const StudioPersona & value)105     inline StudioMembership& WithPersona(const StudioPersona& value) { SetPersona(value); return *this;}
106 
107     /**
108      * <p>The persona.</p>
109      */
WithPersona(StudioPersona && value)110     inline StudioMembership& WithPersona(StudioPersona&& value) { SetPersona(std::move(value)); return *this;}
111 
112 
113     /**
114      * <p>The principal ID.</p>
115      */
GetPrincipalId()116     inline const Aws::String& GetPrincipalId() const{ return m_principalId; }
117 
118     /**
119      * <p>The principal ID.</p>
120      */
PrincipalIdHasBeenSet()121     inline bool PrincipalIdHasBeenSet() const { return m_principalIdHasBeenSet; }
122 
123     /**
124      * <p>The principal ID.</p>
125      */
SetPrincipalId(const Aws::String & value)126     inline void SetPrincipalId(const Aws::String& value) { m_principalIdHasBeenSet = true; m_principalId = value; }
127 
128     /**
129      * <p>The principal ID.</p>
130      */
SetPrincipalId(Aws::String && value)131     inline void SetPrincipalId(Aws::String&& value) { m_principalIdHasBeenSet = true; m_principalId = std::move(value); }
132 
133     /**
134      * <p>The principal ID.</p>
135      */
SetPrincipalId(const char * value)136     inline void SetPrincipalId(const char* value) { m_principalIdHasBeenSet = true; m_principalId.assign(value); }
137 
138     /**
139      * <p>The principal ID.</p>
140      */
WithPrincipalId(const Aws::String & value)141     inline StudioMembership& WithPrincipalId(const Aws::String& value) { SetPrincipalId(value); return *this;}
142 
143     /**
144      * <p>The principal ID.</p>
145      */
WithPrincipalId(Aws::String && value)146     inline StudioMembership& WithPrincipalId(Aws::String&& value) { SetPrincipalId(std::move(value)); return *this;}
147 
148     /**
149      * <p>The principal ID.</p>
150      */
WithPrincipalId(const char * value)151     inline StudioMembership& WithPrincipalId(const char* value) { SetPrincipalId(value); return *this;}
152 
153   private:
154 
155     Aws::String m_identityStoreId;
156     bool m_identityStoreIdHasBeenSet;
157 
158     StudioPersona m_persona;
159     bool m_personaHasBeenSet;
160 
161     Aws::String m_principalId;
162     bool m_principalIdHasBeenSet;
163   };
164 
165 } // namespace Model
166 } // namespace NimbleStudio
167 } // namespace Aws
168