/** * 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 AWS_CLOUD9_API CreateEnvironmentMembershipRequest : public Cloud9Request { public: CreateEnvironmentMembershipRequest(); // 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 "CreateEnvironmentMembership"; } Aws::String SerializePayload() const override; Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The ID of the environment that contains the environment member you want to * add.

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

The ID of the environment that contains the environment member you want to * add.

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

The ID of the environment that contains the environment member you want to * add.

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

The ID of the environment that contains the environment member you want to * add.

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

The ID of the environment that contains the environment member you want to * add.

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

The ID of the environment that contains the environment member you want to * add.

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

The ID of the environment that contains the environment member you want to * add.

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

The ID of the environment that contains the environment member you want to * add.

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

The Amazon Resource Name (ARN) of the environment member you want to add.

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

The Amazon Resource Name (ARN) of the environment member you want to add.

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

The Amazon Resource Name (ARN) of the environment member you want to add.

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

The Amazon Resource Name (ARN) of the environment member you want to add.

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

The Amazon Resource Name (ARN) of the environment member you want to add.

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

The Amazon Resource Name (ARN) of the environment member you want to add.

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

The Amazon Resource Name (ARN) of the environment member you want to add.

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

The Amazon Resource Name (ARN) of the environment member you want to add.

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

The 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 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 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 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 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 CreateEnvironmentMembershipRequest& WithPermissions(const MemberPermissions& value) { SetPermissions(value); return *this;} /** *

The 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 CreateEnvironmentMembershipRequest& WithPermissions(MemberPermissions&& value) { SetPermissions(std::move(value)); return *this;} private: Aws::String m_environmentId; bool m_environmentIdHasBeenSet; Aws::String m_userArn; bool m_userArnHasBeenSet; MemberPermissions m_permissions; bool m_permissionsHasBeenSet; }; } // namespace Model } // namespace Cloud9 } // namespace Aws