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 DescribeMountTargets operation.

Returns the descriptions of the current mount targets for a file system. The order of mount targets returned in the response is unspecified.

This operation requires permission for the elasticfilesystem:DescribeMountTargets action on the file system FileSystemId .

 
 public class DescribeMountTargetsRequest extends AmazonWebServiceRequest implements SerializableCloneable {

    
Optional. Maximum number of mount targets to return in the response. It must be an integer with a value greater than zero.

Constraints:
Range: 1 -

 
     private Integer maxItems;

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

    
String. The ID of the file system whose mount targets you want to list.

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

 
     private String fileSystemId;

    
Optional. Maximum number of mount targets to return in the response. It must be an integer with a value greater than zero.

Constraints:
Range: 1 -

Returns:
Optional. Maximum number of mount targets to return in the response. It must be an integer with a value greater than zero.
 
     public Integer getMaxItems() {
         return ;
     }
    
    
Optional. Maximum number of mount targets to return in the response. It must be an integer with a value greater than zero.

Constraints:
Range: 1 -

Parameters:
maxItems Optional. Maximum number of mount targets to return in the response. It must be an integer with a value greater than zero.
 
     public void setMaxItems(Integer maxItems) {
         this. = maxItems;
     }
    
    
Optional. Maximum number of mount targets to return in the response. It must be an integer with a value greater than zero.

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

Constraints:
Range: 1 -

Parameters:
maxItems Optional. Maximum number of mount targets to return in the response. It must be an integer with a value greater than zero.
Returns:
A reference to this updated object so that method calls can be chained together.
    public DescribeMountTargetsRequest withMaxItems(Integer maxItems) {
        this. = maxItems;
        return this;
    }

    
Optional. String. Opaque pagination token returned from a previous DescribeMountTargets operation. If present, it specifies to continue the list from where the previous returning call left off.

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

Parameters:
marker Optional. String. Opaque pagination token returned from a previous DescribeMountTargets operation. If present, it specifies to continue the list from where the previous returning call left off.
    public void setMarker(String marker) {
        this. = marker;
    }
    
    
Optional. String. Opaque pagination token returned from a previous DescribeMountTargets operation. If present, it specifies to continue the list from where the previous returning call 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 DescribeMountTargets operation. If present, it specifies to continue the list from where the previous returning call left off.
Returns:
A reference to this updated object so that method calls can be chained together.
    public DescribeMountTargetsRequest withMarker(String marker) {
        this. = marker;
        return this;
    }

    
String. The ID of the file system whose mount targets you want to list.

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

Returns:
String. The ID of the file system whose mount targets you want to list.
    public String getFileSystemId() {
        return ;
    }
    
    
String. The ID of the file system whose mount targets you want to list.

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

Parameters:
fileSystemId String. The ID of the file system whose mount targets you want to list.
    public void setFileSystemId(String fileSystemId) {
        this. = fileSystemId;
    }
    
    
String. The ID of the file system whose mount targets you want to list.

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

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

Parameters:
fileSystemId String. The ID of the file system whose mount targets you want to list.
Returns:
A reference to this updated object so that method calls can be chained together.
    public DescribeMountTargetsRequest 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 (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 + ((getFileSystemId() == null) ? 0 : getFileSystemId().hashCode()); 
        return hashCode;
    }
    
    @Override
    public boolean equals(Object obj) {
        if (this == objreturn true;
        if (obj == nullreturn false;
        if (obj instanceof DescribeMountTargetsRequest == 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.getFileSystemId() == null ^ this.getFileSystemId() == nullreturn false;
        if (other.getFileSystemId() != null && other.getFileSystemId().equals(this.getFileSystemId()) == falsereturn false
        return true;
    }
    
    @Override
        
            return (DescribeMountTargetsRequestsuper.clone();
    }
}
    
New to GrepCode? Check out our FAQ X