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;
 
 
 public class DescribeFileSystemsResult implements SerializableCloneable {

    
A string, present if provided by caller in the request.
 
     private String marker;

    
An array of file system descriptions.
 
A string, present if there are more file systems than returned in the response. You can use the NextMarker in the subsequent request to fetch the descriptions.
 
     private String nextMarker;

    
A string, present if provided by caller in the request.

Returns:
A string, present if provided by caller in the request.
 
     public String getMarker() {
         return ;
     }
    
    
A string, present if provided by caller in the request.

Parameters:
marker A string, present if provided by caller in the request.
 
     public void setMarker(String marker) {
         this. = marker;
     }
    
    
A string, present if provided by caller in the request.

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

Parameters:
marker A string, present if provided by caller in the request.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public DescribeFileSystemsResult withMarker(String marker) {
         this. = marker;
         return this;
     }

    
An array of file system descriptions.

Returns:
An array of file system descriptions.
 
         if ( == null) {
               .setAutoConstruct(true);
         }
         return ;
     }
    
    
An array of file system descriptions.

Parameters:
fileSystems An array of file system descriptions.
 
     public void setFileSystems(java.util.Collection<FileSystemDescriptionfileSystems) {
         if (fileSystems == null) {
             this. = null;
             return;
         }
         fileSystemsCopy.addAll(fileSystems);
         this. = fileSystemsCopy;
    }
    
    
An array of file system descriptions.

NOTE: This method appends the values to the existing list (if any). Use setFileSystems(java.util.Collection) or withFileSystems(java.util.Collection) if you want to override the existing values.

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

Parameters:
fileSystems An array of file system descriptions.
Returns:
A reference to this updated object so that method calls can be chained together.
        if (getFileSystems() == nullsetFileSystems(new java.util.ArrayList<FileSystemDescription>(fileSystems.length));
        for (FileSystemDescription value : fileSystems) {
            getFileSystems().add(value);
        }
        return this;
    }
    
    
An array of file system descriptions.

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

Parameters:
fileSystems An array of file system descriptions.
Returns:
A reference to this updated object so that method calls can be chained together.
        if (fileSystems == null) {
            this. = null;
        } else {
            fileSystemsCopy.addAll(fileSystems);
            this. = fileSystemsCopy;
        }
        return this;
    }

    
A string, present if there are more file systems than returned in the response. You can use the NextMarker in the subsequent request to fetch the descriptions.

Returns:
A string, present if there are more file systems than returned in the response. You can use the NextMarker in the subsequent request to fetch the descriptions.
    public String getNextMarker() {
        return ;
    }
    
    
A string, present if there are more file systems than returned in the response. You can use the NextMarker in the subsequent request to fetch the descriptions.

Parameters:
nextMarker A string, present if there are more file systems than returned in the response. You can use the NextMarker in the subsequent request to fetch the descriptions.
    public void setNextMarker(String nextMarker) {
        this. = nextMarker;
    }
    
    
A string, present if there are more file systems than returned in the response. You can use the NextMarker in the subsequent request to fetch the descriptions.

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

Parameters:
nextMarker A string, present if there are more file systems than returned in the response. You can use the NextMarker in the subsequent request to fetch the descriptions.
Returns:
A reference to this updated object so that method calls can be chained together.
    public DescribeFileSystemsResult withNextMarker(String nextMarker) {
        this. = nextMarker;
        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 (getMarker() != nullsb.append("Marker: " + getMarker() + ",");
        if (getFileSystems() != nullsb.append("FileSystems: " + getFileSystems() + ",");
        if (getNextMarker() != nullsb.append("NextMarker: " + getNextMarker() );
        sb.append("}");
        return sb.toString();
    }
    
    @Override
    public int hashCode() {
        final int prime = 31;
        int hashCode = 1;
        
        hashCode = prime * hashCode + ((getMarker() == null) ? 0 : getMarker().hashCode()); 
        hashCode = prime * hashCode + ((getFileSystems() == null) ? 0 : getFileSystems().hashCode()); 
        hashCode = prime * hashCode + ((getNextMarker() == null) ? 0 : getNextMarker().hashCode()); 
        return hashCode;
    }
    
    @Override
    public boolean equals(Object obj) {
        if (this == objreturn true;
        if (obj == nullreturn false;
        if (obj instanceof DescribeFileSystemsResult == falsereturn false;
        
        if (other.getMarker() == null ^ this.getMarker() == nullreturn false;
        if (other.getMarker() != null && other.getMarker().equals(this.getMarker()) == falsereturn false
        if (other.getFileSystems() == null ^ this.getFileSystems() == nullreturn false;
        if (other.getFileSystems() != null && other.getFileSystems().equals(this.getFileSystems()) == falsereturn false
        if (other.getNextMarker() == null ^ this.getNextMarker() == nullreturn false;
        if (other.getNextMarker() != null && other.getNextMarker().equals(this.getNextMarker()) == falsereturn false
        return true;
    }
    
    @Override
    public DescribeFileSystemsResult clone() {
        try {
            return (DescribeFileSystemsResultsuper.clone();
        
        } catch (CloneNotSupportedException e) {
            throw new IllegalStateException(
                    "Got a CloneNotSupportedException from Object.clone() "
                    + "even though we're Cloneable!",
                    e);
        }
        
    }
}
    
New to GrepCode? Check out our FAQ X