Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * Copyright 2010-2015 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.elasticfilesystem.model;
 
 
Container for the parameters to the DescribeFileSystems operation.

Returns the description of a specific Amazon EFS file system if either the file system CreationToken or the FileSystemId is provided; otherwise, returns descriptions of all file systems owned by the caller's AWS account in the AWS region of the endpoint that you're calling.

When retrieving all file system descriptions, you can optionally specify the MaxItems parameter to limit the number of descriptions in a response. If more file system descriptions remain, Amazon EFS returns a NextMarker , an opaque token, in the response. In this case, you should send a subsequent request with the Marker request parameter set to the value of NextMarker .

So to retrieve a list of your file system descriptions, the expected usage of this API is an iterative process of first calling DescribeFileSystems without the Marker and then continuing to call it with the Marker parameter set to the value of the NextMarker from the previous response until the response has no NextMarker .

Note that the implementation may return fewer than MaxItems file system descriptions while still including a NextMarker value.

The order of file systems returned in the response of one DescribeFileSystems call, and the order of file systems returned across the responses of a multi-call iteration, is unspecified.

This operation requires permission for the elasticfilesystem:DescribeFileSystems action.

 
 public class DescribeFileSystemsRequest extends AmazonWebServiceRequest implements SerializableCloneable {

    
Optional integer. Specifies the maximum number of file systems to return in the response. This parameter value must be greater than 0. The number of items Amazon EFS returns will be the minimum of the MaxItems parameter specified in the request and the service's internal maximum number of items per page.

Constraints:
Range: 1 -

 
     private Integer maxItems;

    
Optional string. Opaque pagination token returned from a previous DescribeFileSystems operation. If present, specifies to continue the list from where the returning call had left off.
 
     private String marker;

    
Optional string. Restricts the list to the file system with this creation token (you specify a creation token at the time of creating an Amazon EFS file system).

Constraints:
Length: 1 - 64

 
     private String creationToken;

    
Optional string. File system ID whose description you want to retrieve.

Constraints:
Pattern: fs-[0-9a-f]{8}

    private String fileSystemId;

    
Optional integer. Specifies the maximum number of file systems to return in the response. This parameter value must be greater than 0. The number of items Amazon EFS returns will be the minimum of the MaxItems parameter specified in the request and the service's internal maximum number of items per page.

Constraints:
Range: 1 -

Returns:
Optional integer. Specifies the maximum number of file systems to return in the response. This parameter value must be greater than 0. The number of items Amazon EFS returns will be the minimum of the MaxItems parameter specified in the request and the service's internal maximum number of items per page.
    public Integer getMaxItems() {
        return ;
    }
    
    
Optional integer. Specifies the maximum number of file systems to return in the response. This parameter value must be greater than 0. The number of items Amazon EFS returns will be the minimum of the MaxItems parameter specified in the request and the service's internal maximum number of items per page.

Constraints:
Range: 1 -

Parameters:
maxItems Optional integer. Specifies the maximum number of file systems to return in the response. This parameter value must be greater than 0. The number of items Amazon EFS returns will be the minimum of the MaxItems parameter specified in the request and the service's internal maximum number of items per page.
    public void setMaxItems(Integer maxItems) {
        this. = maxItems;
    }
    
    
Optional integer. Specifies the maximum number of file systems to return in the response. This parameter value must be greater than 0. The number of items Amazon EFS returns will be the minimum of the MaxItems parameter specified in the request and the service's internal maximum number of items per page.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Range: 1 -

Parameters:
maxItems Optional integer. Specifies the maximum number of file systems to return in the response. This parameter value must be greater than 0. The number of items Amazon EFS returns will be the minimum of the MaxItems parameter specified in the request and the service's internal maximum number of items per page.
Returns:
A reference to this updated object so that method calls can be chained together.
    public DescribeFileSystemsRequest withMaxItems(Integer maxItems) {
        this. = maxItems;
        return this;
    }

    
Optional string. Opaque pagination token returned from a previous DescribeFileSystems operation. If present, specifies to continue the list from where the returning call had left off.

Returns:
Optional string. Opaque pagination token returned from a previous DescribeFileSystems operation. If present, specifies to continue the list from where the returning call had left off.
    public String getMarker() {
        return ;
    }
    
    
Optional string. Opaque pagination token returned from a previous DescribeFileSystems operation. If present, specifies to continue the list from where the returning call had left off.

Parameters:
marker Optional string. Opaque pagination token returned from a previous DescribeFileSystems operation. If present, specifies to continue the list from where the returning call had left off.
    public void setMarker(String marker) {
        this. = marker;
    }
    
    
Optional string. Opaque pagination token returned from a previous DescribeFileSystems operation. If present, specifies to continue the list from where the returning call had left off.

Returns a reference to this object so that method calls can be chained together.

Parameters:
marker Optional string. Opaque pagination token returned from a previous DescribeFileSystems operation. If present, specifies to continue the list from where the returning call had left off.
Returns:
A reference to this updated object so that method calls can be chained together.
    public DescribeFileSystemsRequest withMarker(String marker) {
        this. = marker;
        return this;
    }

    
Optional string. Restricts the list to the file system with this creation token (you specify a creation token at the time of creating an Amazon EFS file system).

Constraints:
Length: 1 - 64

Returns:
Optional string. Restricts the list to the file system with this creation token (you specify a creation token at the time of creating an Amazon EFS file system).
    public String getCreationToken() {
        return ;
    }
    
    
Optional string. Restricts the list to the file system with this creation token (you specify a creation token at the time of creating an Amazon EFS file system).

Constraints:
Length: 1 - 64

Parameters:
creationToken Optional string. Restricts the list to the file system with this creation token (you specify a creation token at the time of creating an Amazon EFS file system).
    public void setCreationToken(String creationToken) {
        this. = creationToken;
    }
    
    
Optional string. Restricts the list to the file system with this creation token (you specify a creation token at the time of creating an Amazon EFS file system).

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 1 - 64

Parameters:
creationToken Optional string. Restricts the list to the file system with this creation token (you specify a creation token at the time of creating an Amazon EFS file system).
Returns:
A reference to this updated object so that method calls can be chained together.
    public DescribeFileSystemsRequest withCreationToken(String creationToken) {
        this. = creationToken;
        return this;
    }

    
Optional string. File system ID whose description you want to retrieve.

Constraints:
Pattern: fs-[0-9a-f]{8}

Returns:
Optional string. File system ID whose description you want to retrieve.
    public String getFileSystemId() {
        return ;
    }
    
    
Optional string. File system ID whose description you want to retrieve.

Constraints:
Pattern: fs-[0-9a-f]{8}

Parameters:
fileSystemId Optional string. File system ID whose description you want to retrieve.
    public void setFileSystemId(String fileSystemId) {
        this. = fileSystemId;
    }
    
    
Optional string. File system ID whose description you want to retrieve.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Pattern: fs-[0-9a-f]{8}

Parameters:
fileSystemId Optional string. File system ID whose description you want to retrieve.
Returns:
A reference to this updated object so that method calls can be chained together.
    public DescribeFileSystemsRequest withFileSystemId(String fileSystemId) {
        this. = fileSystemId;
        return this;
    }

    
Returns a string representation of this object; useful for testing and debugging.

Returns:
A string representation of this object.
See also:
java.lang.Object.toString()
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("{");
        if (getMaxItems() != nullsb.append("MaxItems: " + getMaxItems() + ",");
        if (getMarker() != nullsb.append("Marker: " + getMarker() + ",");
        if (getCreationToken() != nullsb.append("CreationToken: " + getCreationToken() + ",");
        if (getFileSystemId() != nullsb.append("FileSystemId: " + getFileSystemId() );
        sb.append("}");
        return sb.toString();
    }
    
    @Override
    public int hashCode() {
        final int prime = 31;
        int hashCode = 1;
        
        hashCode = prime * hashCode + ((getMaxItems() == null) ? 0 : getMaxItems().hashCode()); 
        hashCode = prime * hashCode + ((getMarker() == null) ? 0 : getMarker().hashCode()); 
        hashCode = prime * hashCode + ((getCreationToken() == null) ? 0 : getCreationToken().hashCode()); 
        hashCode = prime * hashCode + ((getFileSystemId() == null) ? 0 : getFileSystemId().hashCode()); 
        return hashCode;
    }
    
    @Override
    public boolean equals(Object obj) {
        if (this == objreturn true;
        if (obj == nullreturn false;
        if (obj instanceof DescribeFileSystemsRequest == falsereturn false;
        
        if (other.getMaxItems() == null ^ this.getMaxItems() == nullreturn false;
        if (other.getMaxItems() != null && other.getMaxItems().equals(this.getMaxItems()) == falsereturn false
        if (other.getMarker() == null ^ this.getMarker() == nullreturn false;
        if (other.getMarker() != null && other.getMarker().equals(this.getMarker()) == falsereturn false
        if (other.getCreationToken() == null ^ this.getCreationToken() == nullreturn false;
        if (other.getCreationToken() != null && other.getCreationToken().equals(this.getCreationToken()) == falsereturn false
        if (other.getFileSystemId() == null ^ this.getFileSystemId() == nullreturn false;
        if (other.getFileSystemId() != null && other.getFileSystemId().equals(this.getFileSystemId()) == falsereturn false
        return true;
    }
    
    @Override
    public DescribeFileSystemsRequest clone() {
        
            return (DescribeFileSystemsRequestsuper.clone();
    }
}
    
New to GrepCode? Check out our FAQ X