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.rds.model;
 

The response from a call to DescribeDBLogFiles.

 
 public class DescribeDBLogFilesResult implements SerializableCloneable {

    
The DB log files returned.
 
A pagination token that can be used in a subsequent DescribeDBLogFiles request.
 
     private String marker;

    
The DB log files returned.

Returns:
The DB log files returned.
 
         if ( == null) {
               .setAutoConstruct(true);
         }
         return ;
     }
    
    
The DB log files returned.

Parameters:
describeDBLogFiles The DB log files returned.
 
     public void setDescribeDBLogFiles(java.util.Collection<DescribeDBLogFilesDetailsdescribeDBLogFiles) {
         if (describeDBLogFiles == null) {
             this. = null;
             return;
         }
         describeDBLogFilesCopy.addAll(describeDBLogFiles);
         this. = describeDBLogFilesCopy;
     }
    
    
The DB log files returned.

NOTE: This method appends the values to the existing list (if any). Use setDescribeDBLogFiles(java.util.Collection) or withDescribeDBLogFiles(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:
describeDBLogFiles The DB log files returned.
Returns:
A reference to this updated object so that method calls can be chained together.
 
         if (getDescribeDBLogFiles() == nullsetDescribeDBLogFiles(new java.util.ArrayList<DescribeDBLogFilesDetails>(describeDBLogFiles.length));
         for (DescribeDBLogFilesDetails value : describeDBLogFiles) {
             getDescribeDBLogFiles().add(value);
         }
         return this;
     }
    
    
The DB log files returned.

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

Parameters:
describeDBLogFiles The DB log files returned.
Returns:
A reference to this updated object so that method calls can be chained together.
 
         if (describeDBLogFiles == null) {
            this. = null;
        } else {
            describeDBLogFilesCopy.addAll(describeDBLogFiles);
            this. = describeDBLogFilesCopy;
        }
        return this;
    }

    
A pagination token that can be used in a subsequent DescribeDBLogFiles request.

Returns:
A pagination token that can be used in a subsequent DescribeDBLogFiles request.
    public String getMarker() {
        return ;
    }
    
    
A pagination token that can be used in a subsequent DescribeDBLogFiles request.

Parameters:
marker A pagination token that can be used in a subsequent DescribeDBLogFiles request.
    public void setMarker(String marker) {
        this. = marker;
    }
    
    
A pagination token that can be used in a subsequent DescribeDBLogFiles request.

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

Parameters:
marker A pagination token that can be used in a subsequent DescribeDBLogFiles request.
Returns:
A reference to this updated object so that method calls can be chained together.
    public DescribeDBLogFilesResult withMarker(String marker) {
        this. = marker;
        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 (getDescribeDBLogFiles() != nullsb.append("DescribeDBLogFiles: " + getDescribeDBLogFiles() + ",");
        if (getMarker() != nullsb.append("Marker: " + getMarker() );
        sb.append("}");
        return sb.toString();
    }
    
    @Override
    public int hashCode() {
        final int prime = 31;
        int hashCode = 1;
        
        hashCode = prime * hashCode + ((getDescribeDBLogFiles() == null) ? 0 : getDescribeDBLogFiles().hashCode()); 
        hashCode = prime * hashCode + ((getMarker() == null) ? 0 : getMarker().hashCode()); 
        return hashCode;
    }
    
    @Override
    public boolean equals(Object obj) {
        if (this == objreturn true;
        if (obj == nullreturn false;
        if (obj instanceof DescribeDBLogFilesResult == falsereturn false;
        DescribeDBLogFilesResult other = (DescribeDBLogFilesResult)obj;
        
        if (other.getDescribeDBLogFiles() == null ^ this.getDescribeDBLogFiles() == nullreturn false;
        if (other.getDescribeDBLogFiles() != null && other.getDescribeDBLogFiles().equals(this.getDescribeDBLogFiles()) == falsereturn false
        if (other.getMarker() == null ^ this.getMarker() == nullreturn false;
        if (other.getMarker() != null && other.getMarker().equals(this.getMarker()) == falsereturn false
        return true;
    }
    
    @Override
    public DescribeDBLogFilesResult clone() {
        try {
            return (DescribeDBLogFilesResultsuper.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