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 DescribeMountTargetsResult implements SerializableCloneable {

    
If the request included the Marker, the response returns that value in this field.
 
     private String marker;

    
Returns the file system's mount targets as an array of MountTargetDescription objects.
 
If a value is present, there are more mount targets to return. In a subsequent request, you can provide Marker in your request with this value to retrieve the next set of mount targets.
 
     private String nextMarker;

    
If the request included the Marker, the response returns that value in this field.

Returns:
If the request included the Marker, the response returns that value in this field.
 
     public String getMarker() {
         return ;
     }
    
    
If the request included the Marker, the response returns that value in this field.

Parameters:
marker If the request included the Marker, the response returns that value in this field.
 
     public void setMarker(String marker) {
         this. = marker;
     }
    
    
If the request included the Marker, the response returns that value in this field.

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

Parameters:
marker If the request included the Marker, the response returns that value in this field.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public DescribeMountTargetsResult withMarker(String marker) {
         this. = marker;
         return this;
     }

    
Returns the file system's mount targets as an array of MountTargetDescription objects.

Returns:
Returns the file system's mount targets as an array of MountTargetDescription objects.
 
         if ( == null) {
               .setAutoConstruct(true);
         }
         return ;
     }
    
    
Returns the file system's mount targets as an array of MountTargetDescription objects.

Parameters:
mountTargets Returns the file system's mount targets as an array of MountTargetDescription objects.
    public void setMountTargets(java.util.Collection<MountTargetDescriptionmountTargets) {
        if (mountTargets == null) {
            this. = null;
            return;
        }
        mountTargetsCopy.addAll(mountTargets);
        this. = mountTargetsCopy;
    }
    
    
Returns the file system's mount targets as an array of MountTargetDescription objects.

NOTE: This method appends the values to the existing list (if any). Use setMountTargets(java.util.Collection) or withMountTargets(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:
mountTargets Returns the file system's mount targets as an array of MountTargetDescription objects.
Returns:
A reference to this updated object so that method calls can be chained together.
        if (getMountTargets() == nullsetMountTargets(new java.util.ArrayList<MountTargetDescription>(mountTargets.length));
        for (MountTargetDescription value : mountTargets) {
            getMountTargets().add(value);
        }
        return this;
    }
    
    
Returns the file system's mount targets as an array of MountTargetDescription objects.

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

Parameters:
mountTargets Returns the file system's mount targets as an array of MountTargetDescription objects.
Returns:
A reference to this updated object so that method calls can be chained together.
        if (mountTargets == null) {
            this. = null;
        } else {
            mountTargetsCopy.addAll(mountTargets);
            this. = mountTargetsCopy;
        }
        return this;
    }

    
If a value is present, there are more mount targets to return. In a subsequent request, you can provide Marker in your request with this value to retrieve the next set of mount targets.

Returns:
If a value is present, there are more mount targets to return. In a subsequent request, you can provide Marker in your request with this value to retrieve the next set of mount targets.
    public String getNextMarker() {
        return ;
    }
    
    
If a value is present, there are more mount targets to return. In a subsequent request, you can provide Marker in your request with this value to retrieve the next set of mount targets.

Parameters:
nextMarker If a value is present, there are more mount targets to return. In a subsequent request, you can provide Marker in your request with this value to retrieve the next set of mount targets.
    public void setNextMarker(String nextMarker) {
        this. = nextMarker;
    }
    
    
If a value is present, there are more mount targets to return. In a subsequent request, you can provide Marker in your request with this value to retrieve the next set of mount targets.

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

Parameters:
nextMarker If a value is present, there are more mount targets to return. In a subsequent request, you can provide Marker in your request with this value to retrieve the next set of mount targets.
Returns:
A reference to this updated object so that method calls can be chained together.
    public DescribeMountTargetsResult 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 (getMountTargets() != nullsb.append("MountTargets: " + getMountTargets() + ",");
        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 + ((getMountTargets() == null) ? 0 : getMountTargets().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 DescribeMountTargetsResult == falsereturn false;
        
        if (other.getMarker() == null ^ this.getMarker() == nullreturn false;
        if (other.getMarker() != null && other.getMarker().equals(this.getMarker()) == falsereturn false
        if (other.getMountTargets() == null ^ this.getMountTargets() == nullreturn false;
        if (other.getMountTargets() != null && other.getMountTargets().equals(this.getMountTargets()) == 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 DescribeMountTargetsResult clone() {
        try {
            return (DescribeMountTargetsResultsuper.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