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/cloud9/Cloud9_EXPORTS.h> 8 #include <aws/cloud9/Cloud9Request.h> 9 #include <aws/core/utils/memory/stl/AWSString.h> 10 #include <aws/cloud9/model/MemberPermissions.h> 11 #include <utility> 12 13 namespace Aws 14 { 15 namespace Cloud9 16 { 17 namespace Model 18 { 19 20 /** 21 */ 22 class AWS_CLOUD9_API UpdateEnvironmentMembershipRequest : public Cloud9Request 23 { 24 public: 25 UpdateEnvironmentMembershipRequest(); 26 27 // Service request name is the Operation name which will send this request out, 28 // each operation should has unique request name, so that we can get operation's name from this request. 29 // Note: this is not true for response, multiple operations may have the same response name, 30 // so we can not get operation's name from response. GetServiceRequestName()31 inline virtual const char* GetServiceRequestName() const override { return "UpdateEnvironmentMembership"; } 32 33 Aws::String SerializePayload() const override; 34 35 Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; 36 37 38 /** 39 * <p>The ID of the environment for the environment member whose settings you want 40 * to change.</p> 41 */ GetEnvironmentId()42 inline const Aws::String& GetEnvironmentId() const{ return m_environmentId; } 43 44 /** 45 * <p>The ID of the environment for the environment member whose settings you want 46 * to change.</p> 47 */ EnvironmentIdHasBeenSet()48 inline bool EnvironmentIdHasBeenSet() const { return m_environmentIdHasBeenSet; } 49 50 /** 51 * <p>The ID of the environment for the environment member whose settings you want 52 * to change.</p> 53 */ SetEnvironmentId(const Aws::String & value)54 inline void SetEnvironmentId(const Aws::String& value) { m_environmentIdHasBeenSet = true; m_environmentId = value; } 55 56 /** 57 * <p>The ID of the environment for the environment member whose settings you want 58 * to change.</p> 59 */ SetEnvironmentId(Aws::String && value)60 inline void SetEnvironmentId(Aws::String&& value) { m_environmentIdHasBeenSet = true; m_environmentId = std::move(value); } 61 62 /** 63 * <p>The ID of the environment for the environment member whose settings you want 64 * to change.</p> 65 */ SetEnvironmentId(const char * value)66 inline void SetEnvironmentId(const char* value) { m_environmentIdHasBeenSet = true; m_environmentId.assign(value); } 67 68 /** 69 * <p>The ID of the environment for the environment member whose settings you want 70 * to change.</p> 71 */ WithEnvironmentId(const Aws::String & value)72 inline UpdateEnvironmentMembershipRequest& WithEnvironmentId(const Aws::String& value) { SetEnvironmentId(value); return *this;} 73 74 /** 75 * <p>The ID of the environment for the environment member whose settings you want 76 * to change.</p> 77 */ WithEnvironmentId(Aws::String && value)78 inline UpdateEnvironmentMembershipRequest& WithEnvironmentId(Aws::String&& value) { SetEnvironmentId(std::move(value)); return *this;} 79 80 /** 81 * <p>The ID of the environment for the environment member whose settings you want 82 * to change.</p> 83 */ WithEnvironmentId(const char * value)84 inline UpdateEnvironmentMembershipRequest& WithEnvironmentId(const char* value) { SetEnvironmentId(value); return *this;} 85 86 87 /** 88 * <p>The Amazon Resource Name (ARN) of the environment member whose settings you 89 * want to change.</p> 90 */ GetUserArn()91 inline const Aws::String& GetUserArn() const{ return m_userArn; } 92 93 /** 94 * <p>The Amazon Resource Name (ARN) of the environment member whose settings you 95 * want to change.</p> 96 */ UserArnHasBeenSet()97 inline bool UserArnHasBeenSet() const { return m_userArnHasBeenSet; } 98 99 /** 100 * <p>The Amazon Resource Name (ARN) of the environment member whose settings you 101 * want to change.</p> 102 */ SetUserArn(const Aws::String & value)103 inline void SetUserArn(const Aws::String& value) { m_userArnHasBeenSet = true; m_userArn = value; } 104 105 /** 106 * <p>The Amazon Resource Name (ARN) of the environment member whose settings you 107 * want to change.</p> 108 */ SetUserArn(Aws::String && value)109 inline void SetUserArn(Aws::String&& value) { m_userArnHasBeenSet = true; m_userArn = std::move(value); } 110 111 /** 112 * <p>The Amazon Resource Name (ARN) of the environment member whose settings you 113 * want to change.</p> 114 */ SetUserArn(const char * value)115 inline void SetUserArn(const char* value) { m_userArnHasBeenSet = true; m_userArn.assign(value); } 116 117 /** 118 * <p>The Amazon Resource Name (ARN) of the environment member whose settings you 119 * want to change.</p> 120 */ WithUserArn(const Aws::String & value)121 inline UpdateEnvironmentMembershipRequest& WithUserArn(const Aws::String& value) { SetUserArn(value); return *this;} 122 123 /** 124 * <p>The Amazon Resource Name (ARN) of the environment member whose settings you 125 * want to change.</p> 126 */ WithUserArn(Aws::String && value)127 inline UpdateEnvironmentMembershipRequest& WithUserArn(Aws::String&& value) { SetUserArn(std::move(value)); return *this;} 128 129 /** 130 * <p>The Amazon Resource Name (ARN) of the environment member whose settings you 131 * want to change.</p> 132 */ WithUserArn(const char * value)133 inline UpdateEnvironmentMembershipRequest& WithUserArn(const char* value) { SetUserArn(value); return *this;} 134 135 136 /** 137 * <p>The replacement type of environment member permissions you want to associate 138 * with this environment member. Available values include:</p> <ul> <li> <p> 139 * <code>read-only</code>: Has read-only access to the environment.</p> </li> <li> 140 * <p> <code>read-write</code>: Has read-write access to the environment.</p> </li> 141 * </ul> 142 */ GetPermissions()143 inline const MemberPermissions& GetPermissions() const{ return m_permissions; } 144 145 /** 146 * <p>The replacement type of environment member permissions you want to associate 147 * with this environment member. Available values include:</p> <ul> <li> <p> 148 * <code>read-only</code>: Has read-only access to the environment.</p> </li> <li> 149 * <p> <code>read-write</code>: Has read-write access to the environment.</p> </li> 150 * </ul> 151 */ PermissionsHasBeenSet()152 inline bool PermissionsHasBeenSet() const { return m_permissionsHasBeenSet; } 153 154 /** 155 * <p>The replacement type of environment member permissions you want to associate 156 * with this environment member. Available values include:</p> <ul> <li> <p> 157 * <code>read-only</code>: Has read-only access to the environment.</p> </li> <li> 158 * <p> <code>read-write</code>: Has read-write access to the environment.</p> </li> 159 * </ul> 160 */ SetPermissions(const MemberPermissions & value)161 inline void SetPermissions(const MemberPermissions& value) { m_permissionsHasBeenSet = true; m_permissions = value; } 162 163 /** 164 * <p>The replacement type of environment member permissions you want to associate 165 * with this environment member. Available values include:</p> <ul> <li> <p> 166 * <code>read-only</code>: Has read-only access to the environment.</p> </li> <li> 167 * <p> <code>read-write</code>: Has read-write access to the environment.</p> </li> 168 * </ul> 169 */ SetPermissions(MemberPermissions && value)170 inline void SetPermissions(MemberPermissions&& value) { m_permissionsHasBeenSet = true; m_permissions = std::move(value); } 171 172 /** 173 * <p>The replacement type of environment member permissions you want to associate 174 * with this environment member. Available values include:</p> <ul> <li> <p> 175 * <code>read-only</code>: Has read-only access to the environment.</p> </li> <li> 176 * <p> <code>read-write</code>: Has read-write access to the environment.</p> </li> 177 * </ul> 178 */ WithPermissions(const MemberPermissions & value)179 inline UpdateEnvironmentMembershipRequest& WithPermissions(const MemberPermissions& value) { SetPermissions(value); return *this;} 180 181 /** 182 * <p>The replacement type of environment member permissions you want to associate 183 * with this environment member. Available values include:</p> <ul> <li> <p> 184 * <code>read-only</code>: Has read-only access to the environment.</p> </li> <li> 185 * <p> <code>read-write</code>: Has read-write access to the environment.</p> </li> 186 * </ul> 187 */ WithPermissions(MemberPermissions && value)188 inline UpdateEnvironmentMembershipRequest& WithPermissions(MemberPermissions&& value) { SetPermissions(std::move(value)); return *this;} 189 190 private: 191 192 Aws::String m_environmentId; 193 bool m_environmentIdHasBeenSet; 194 195 Aws::String m_userArn; 196 bool m_userArnHasBeenSet; 197 198 MemberPermissions m_permissions; 199 bool m_permissionsHasBeenSet; 200 }; 201 202 } // namespace Model 203 } // namespace Cloud9 204 } // namespace Aws 205