/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Cloud9 { namespace Model { /** */ class UpdateEnvironmentMembershipRequest : public Cloud9Request { public: AWS_CLOUD9_API UpdateEnvironmentMembershipRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "UpdateEnvironmentMembership"; } AWS_CLOUD9_API Aws::String SerializePayload() const override; AWS_CLOUD9_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The ID of the environment for the environment member whose settings you want * to change.

*/ inline const Aws::String& GetEnvironmentId() const{ return m_environmentId; } /** *

The ID of the environment for the environment member whose settings you want * to change.

*/ inline bool EnvironmentIdHasBeenSet() const { return m_environmentIdHasBeenSet; } /** *

The ID of the environment for the environment member whose settings you want * to change.

*/ inline void SetEnvironmentId(const Aws::String& value) { m_environmentIdHasBeenSet = true; m_environmentId = value; } /** *

The ID of the environment for the environment member whose settings you want * to change.

*/ inline void SetEnvironmentId(Aws::String&& value) { m_environmentIdHasBeenSet = true; m_environmentId = std::move(value); } /** *

The ID of the environment for the environment member whose settings you want * to change.

*/ inline void SetEnvironmentId(const char* value) { m_environmentIdHasBeenSet = true; m_environmentId.assign(value); } /** *

The ID of the environment for the environment member whose settings you want * to change.

*/ inline UpdateEnvironmentMembershipRequest& WithEnvironmentId(const Aws::String& value) { SetEnvironmentId(value); return *this;} /** *

The ID of the environment for the environment member whose settings you want * to change.

*/ inline UpdateEnvironmentMembershipRequest& WithEnvironmentId(Aws::String&& value) { SetEnvironmentId(std::move(value)); return *this;} /** *

The ID of the environment for the environment member whose settings you want * to change.

*/ inline UpdateEnvironmentMembershipRequest& WithEnvironmentId(const char* value) { SetEnvironmentId(value); return *this;} /** *

The Amazon Resource Name (ARN) of the environment member whose settings you * want to change.

*/ inline const Aws::String& GetUserArn() const{ return m_userArn; } /** *

The Amazon Resource Name (ARN) of the environment member whose settings you * want to change.

*/ inline bool UserArnHasBeenSet() const { return m_userArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the environment member whose settings you * want to change.

*/ inline void SetUserArn(const Aws::String& value) { m_userArnHasBeenSet = true; m_userArn = value; } /** *

The Amazon Resource Name (ARN) of the environment member whose settings you * want to change.

*/ inline void SetUserArn(Aws::String&& value) { m_userArnHasBeenSet = true; m_userArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the environment member whose settings you * want to change.

*/ inline void SetUserArn(const char* value) { m_userArnHasBeenSet = true; m_userArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the environment member whose settings you * want to change.

*/ inline UpdateEnvironmentMembershipRequest& WithUserArn(const Aws::String& value) { SetUserArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the environment member whose settings you * want to change.

*/ inline UpdateEnvironmentMembershipRequest& WithUserArn(Aws::String&& value) { SetUserArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the environment member whose settings you * want to change.

*/ inline UpdateEnvironmentMembershipRequest& WithUserArn(const char* value) { SetUserArn(value); return *this;} /** *

The replacement type of environment member permissions you want to associate * with this environment member. Available values include:

  • * read-only: Has read-only access to the environment.

  • *

    read-write: Has read-write access to the environment.

  • *
*/ inline const MemberPermissions& GetPermissions() const{ return m_permissions; } /** *

The replacement type of environment member permissions you want to associate * with this environment member. Available values include:

  • * read-only: Has read-only access to the environment.

  • *

    read-write: Has read-write access to the environment.

  • *
*/ inline bool PermissionsHasBeenSet() const { return m_permissionsHasBeenSet; } /** *

The replacement type of environment member permissions you want to associate * with this environment member. Available values include:

  • * read-only: Has read-only access to the environment.

  • *

    read-write: Has read-write access to the environment.

  • *
*/ inline void SetPermissions(const MemberPermissions& value) { m_permissionsHasBeenSet = true; m_permissions = value; } /** *

The replacement type of environment member permissions you want to associate * with this environment member. Available values include:

  • * read-only: Has read-only access to the environment.

  • *

    read-write: Has read-write access to the environment.

  • *
*/ inline void SetPermissions(MemberPermissions&& value) { m_permissionsHasBeenSet = true; m_permissions = std::move(value); } /** *

The replacement type of environment member permissions you want to associate * with this environment member. Available values include:

  • * read-only: Has read-only access to the environment.

  • *

    read-write: Has read-write access to the environment.

  • *
*/ inline UpdateEnvironmentMembershipRequest& WithPermissions(const MemberPermissions& value) { SetPermissions(value); return *this;} /** *

The replacement type of environment member permissions you want to associate * with this environment member. Available values include:

  • * read-only: Has read-only access to the environment.

  • *

    read-write: Has read-write access to the environment.

  • *
*/ inline UpdateEnvironmentMembershipRequest& WithPermissions(MemberPermissions&& value) { SetPermissions(std::move(value)); return *this;} private: Aws::String m_environmentId; bool m_environmentIdHasBeenSet = false; Aws::String m_userArn; bool m_userArnHasBeenSet = false; MemberPermissions m_permissions; bool m_permissionsHasBeenSet = false; }; } // namespace Model } // namespace Cloud9 } // namespace Aws