/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.cloud9.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; /** * * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class DescribeEnvironmentMembershipsRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* 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. *
*/ private String userArn; /** ** The ID of the environment to get environment member information about. *
*/ private String environmentId; /** ** 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. *
*/ private java.util.List* 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. *
*/ private String nextToken; /** ** The maximum number of environment members to get information about. *
*/ private Integer maxResults; /** ** 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. *
* * @param 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. */ public void setUserArn(String userArn) { this.userArn = 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. *
* * @return 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. */ public String getUserArn() { return this.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. *
* * @param 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. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeEnvironmentMembershipsRequest withUserArn(String userArn) { setUserArn(userArn); return this; } /** ** The ID of the environment to get environment member information about. *
* * @param environmentId * The ID of the environment to get environment member information about. */ public void setEnvironmentId(String environmentId) { this.environmentId = environmentId; } /** ** The ID of the environment to get environment member information about. *
* * @return The ID of the environment to get environment member information about. */ public String getEnvironmentId() { return this.environmentId; } /** ** The ID of the environment to get environment member information about. *
* * @param environmentId * The ID of the environment to get environment member information about. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeEnvironmentMembershipsRequest withEnvironmentId(String environmentId) { setEnvironmentId(environmentId); 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. *
* * @return 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.
* @see Permissions
*/
public java.util.List
* The type of environment member permissions to get information about. Available values include:
*
*
*
*
* If no value is specified, information about all environment members are returned.
*
*
* owner
: Owns the environment.
* read-only
: Has read-only access to the environment.
* read-write
: Has read-write access to the environment.
*
* 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.
* @see Permissions
*/
public void setPermissions(java.util.Collection
* The type of environment member permissions to get information about. Available values include:
*
*
*
*
* If no value is specified, information about all environment members are returned.
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setPermissions(java.util.Collection)} or {@link #withPermissions(java.util.Collection)} if you want to
* override the existing values.
*
*
* owner
: Owns the environment.
* read-only
: Has read-only access to the environment.
* read-write
: Has read-write access to the environment.
*
* 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.
* @return Returns a reference to this object so that method calls can be chained together.
* @see Permissions
*/
public DescribeEnvironmentMembershipsRequest withPermissions(String... permissions) {
if (this.permissions == null) {
setPermissions(new java.util.ArrayList
* The type of environment member permissions to get information about. Available values include:
*
*
*
*
* If no value is specified, information about all environment members are returned.
*
*
* owner
: Owns the environment.
* read-only
: Has read-only access to the environment.
* read-write
: Has read-write access to the environment.
*
* 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.
* @return Returns a reference to this object so that method calls can be chained together.
* @see Permissions
*/
public DescribeEnvironmentMembershipsRequest withPermissions(java.util.Collection
* The type of environment member permissions to get information about. Available values include:
*
*
*
*
* If no value is specified, information about all environment members are returned.
*
*
* owner
: Owns the environment.
* read-only
: Has read-only access to the environment.
* read-write
: Has read-write access to the environment.
*
* 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.
* @return Returns a reference to this object so that method calls can be chained together.
* @see Permissions
*/
public DescribeEnvironmentMembershipsRequest withPermissions(Permissions... permissions) {
java.util.ArrayList
* 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.
*
* 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.
*
* 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.
*
* The maximum number of environment members to get information about.
*
* The maximum number of environment members to get information about.
*
* The maximum number of environment members to get information about.
*