/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace Cloud9 { namespace Model { /** */ class DescribeEnvironmentMembershipsRequest : public Cloud9Request { public: AWS_CLOUD9_API DescribeEnvironmentMembershipsRequest(); // 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 "DescribeEnvironmentMemberships"; } AWS_CLOUD9_API Aws::String SerializePayload() const override; AWS_CLOUD9_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The Amazon Resource Name (ARN) of an individual environment member to get * information about. If no value is specified, information about all environment * members are returned.

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

The Amazon Resource Name (ARN) of an individual environment member to get * information about. If no value is specified, information about all environment * members are returned.

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

The Amazon Resource Name (ARN) of an individual environment member to get * information about. If no value is specified, information about all environment * members are returned.

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

The Amazon Resource Name (ARN) of an individual environment member to get * information about. If no value is specified, information about all environment * members are returned.

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

The Amazon Resource Name (ARN) of an individual environment member to get * information about. If no value is specified, information about all environment * members are returned.

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

The Amazon Resource Name (ARN) of an individual environment member to get * information about. If no value is specified, information about all environment * members are returned.

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

The Amazon Resource Name (ARN) of an individual environment member to get * information about. If no value is specified, information about all environment * members are returned.

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

The Amazon Resource Name (ARN) of an individual environment member to get * information about. If no value is specified, information about all environment * members are returned.

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

The ID of the environment to get environment member information about.

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

The ID of the environment to get environment member information about.

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

The ID of the environment to get environment member information about.

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

The ID of the environment to get environment member information about.

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

The ID of the environment to get environment member information about.

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

The ID of the environment to get environment member information about.

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

The ID of the environment to get environment member information about.

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

The ID of the environment to get environment member information about.

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

The type of environment member permissions to get information about. * Available values include:

  • owner: Owns the * environment.

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

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

If no value is specified, * information about all environment members are returned.

*/ inline const Aws::Vector& GetPermissions() const{ return m_permissions; } /** *

The type of environment member permissions to get information about. * Available values include:

  • owner: Owns the * environment.

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

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

If no value is specified, * information about all environment members are returned.

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

The type of environment member permissions to get information about. * Available values include:

  • owner: Owns the * environment.

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

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

If no value is specified, * information about all environment members are returned.

*/ inline void SetPermissions(const Aws::Vector& value) { m_permissionsHasBeenSet = true; m_permissions = value; } /** *

The type of environment member permissions to get information about. * Available values include:

  • owner: Owns the * environment.

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

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

If no value is specified, * information about all environment members are returned.

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

The type of environment member permissions to get information about. * Available values include:

  • owner: Owns the * environment.

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

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

If no value is specified, * information about all environment members are returned.

*/ inline DescribeEnvironmentMembershipsRequest& WithPermissions(const Aws::Vector& value) { SetPermissions(value); return *this;} /** *

The type of environment member permissions to get information about. * Available values include:

  • owner: Owns the * environment.

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

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

If no value is specified, * information about all environment members are returned.

*/ inline DescribeEnvironmentMembershipsRequest& WithPermissions(Aws::Vector&& value) { SetPermissions(std::move(value)); return *this;} /** *

The type of environment member permissions to get information about. * Available values include:

  • owner: Owns the * environment.

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

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

If no value is specified, * information about all environment members are returned.

*/ inline DescribeEnvironmentMembershipsRequest& AddPermissions(const Permissions& value) { m_permissionsHasBeenSet = true; m_permissions.push_back(value); return *this; } /** *

The type of environment member permissions to get information about. * Available values include:

  • owner: Owns the * environment.

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

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

If no value is specified, * information about all environment members are returned.

*/ inline DescribeEnvironmentMembershipsRequest& AddPermissions(Permissions&& value) { m_permissionsHasBeenSet = true; m_permissions.push_back(std::move(value)); return *this; } /** *

During a previous call, if there are more than 25 items in the list, only the * first 25 items are returned, along with a unique string called a next * token. To get the next batch of items in the list, call this operation * again, adding the next token to the call. To get all of the items in the list, * keep calling this operation with each subsequent next token that is returned, * until no more next tokens are returned.

*/ inline const Aws::String& GetNextToken() const{ return m_nextToken; } /** *

During a previous call, if there are more than 25 items in the list, only the * first 25 items are returned, along with a unique string called a next * token. To get the next batch of items in the list, call this operation * again, adding the next token to the call. To get all of the items in the list, * keep calling this operation with each subsequent next token that is returned, * until no more next tokens are returned.

*/ inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } /** *

During a previous call, if there are more than 25 items in the list, only the * first 25 items are returned, along with a unique string called a next * token. To get the next batch of items in the list, call this operation * again, adding the next token to the call. To get all of the items in the list, * keep calling this operation with each subsequent next token that is returned, * until no more next tokens are returned.

*/ inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; } /** *

During a previous call, if there are more than 25 items in the list, only the * first 25 items are returned, along with a unique string called a next * token. To get the next batch of items in the list, call this operation * again, adding the next token to the call. To get all of the items in the list, * keep calling this operation with each subsequent next token that is returned, * until no more next tokens are returned.

*/ inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); } /** *

During a previous call, if there are more than 25 items in the list, only the * first 25 items are returned, along with a unique string called a next * token. To get the next batch of items in the list, call this operation * again, adding the next token to the call. To get all of the items in the list, * keep calling this operation with each subsequent next token that is returned, * until no more next tokens are returned.

*/ inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); } /** *

During a previous call, if there are more than 25 items in the list, only the * first 25 items are returned, along with a unique string called a next * token. To get the next batch of items in the list, call this operation * again, adding the next token to the call. To get all of the items in the list, * keep calling this operation with each subsequent next token that is returned, * until no more next tokens are returned.

*/ inline DescribeEnvironmentMembershipsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} /** *

During a previous call, if there are more than 25 items in the list, only the * first 25 items are returned, along with a unique string called a next * token. To get the next batch of items in the list, call this operation * again, adding the next token to the call. To get all of the items in the list, * keep calling this operation with each subsequent next token that is returned, * until no more next tokens are returned.

*/ inline DescribeEnvironmentMembershipsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} /** *

During a previous call, if there are more than 25 items in the list, only the * first 25 items are returned, along with a unique string called a next * token. To get the next batch of items in the list, call this operation * again, adding the next token to the call. To get all of the items in the list, * keep calling this operation with each subsequent next token that is returned, * until no more next tokens are returned.

*/ inline DescribeEnvironmentMembershipsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} /** *

The maximum number of environment members to get information about.

*/ inline int GetMaxResults() const{ return m_maxResults; } /** *

The maximum number of environment members to get information about.

*/ inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; } /** *

The maximum number of environment members to get information about.

*/ inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; } /** *

The maximum number of environment members to get information about.

*/ inline DescribeEnvironmentMembershipsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} private: Aws::String m_userArn; bool m_userArnHasBeenSet = false; Aws::String m_environmentId; bool m_environmentIdHasBeenSet = false; Aws::Vector m_permissions; bool m_permissionsHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; }; } // namespace Model } // namespace Cloud9 } // namespace Aws