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

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

    
Returns tags associated with the file system as an array of Tag objects.
 
If a value is present, there are more tags to return. In a subsequent request, you can provide the value of NextMarker as the value of the Marker parameter in your next request to retrieve the next set of tags.
 
     private String nextMarker;

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

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

Parameters:
marker If the request included a Marker, the response returns that value in this field.
 
     public void setMarker(String marker) {
         this. = marker;
     }
    
    
If the request included a 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 a 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 DescribeTagsResult withMarker(String marker) {
         this. = marker;
         return this;
     }

    
Returns tags associated with the file system as an array of Tag objects.

Returns:
Returns tags associated with the file system as an array of Tag objects.
 
     public java.util.List<TaggetTags() {
         if ( == null) {
                = new com.amazonaws.internal.ListWithAutoConstructFlag<Tag>();
               .setAutoConstruct(true);
         }
         return ;
     }
    
    
Returns tags associated with the file system as an array of Tag objects.

Parameters:
tags Returns tags associated with the file system as an array of Tag objects.
    public void setTags(java.util.Collection<Tagtags) {
        if (tags == null) {
            this. = null;
            return;
        }
        tagsCopy.addAll(tags);
        this. = tagsCopy;
    }
    
    
Returns tags associated with the file system as an array of Tag objects.

NOTE: This method appends the values to the existing list (if any). Use setTags(java.util.Collection) or withTags(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:
tags Returns tags associated with the file system as an array of Tag objects.
Returns:
A reference to this updated object so that method calls can be chained together.
    public DescribeTagsResult withTags(Tag... tags) {
        if (getTags() == nullsetTags(new java.util.ArrayList<Tag>(tags.length));
        for (Tag value : tags) {
            getTags().add(value);
        }
        return this;
    }
    
    
Returns tags associated with the file system as an array of Tag objects.

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

Parameters:
tags Returns tags associated with the file system as an array of Tag objects.
Returns:
A reference to this updated object so that method calls can be chained together.
        if (tags == null) {
            this. = null;
        } else {
            tagsCopy.addAll(tags);
            this. = tagsCopy;
        }
        return this;
    }

    
If a value is present, there are more tags to return. In a subsequent request, you can provide the value of NextMarker as the value of the Marker parameter in your next request to retrieve the next set of tags.

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

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

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

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