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;
 

This data type is used as a response element to DescribeDBLogFiles.

 
 public class DescribeDBLogFilesDetails implements SerializableCloneable {

    
The name of the log file for the specified DB instance.
 
     private String logFileName;

    
A POSIX timestamp when the last log entry was written.
 
     private Long lastWritten;

    
The size, in bytes, of the log file for the specified DB instance.
 
     private Long size;

    
The name of the log file for the specified DB instance.

Returns:
The name of the log file for the specified DB instance.
 
     public String getLogFileName() {
         return ;
     }
    
    
The name of the log file for the specified DB instance.

Parameters:
logFileName The name of the log file for the specified DB instance.
 
     public void setLogFileName(String logFileName) {
         this. = logFileName;
     }
    
    
The name of the log file for the specified DB instance.

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

Parameters:
logFileName The name of the log file for the specified DB instance.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public DescribeDBLogFilesDetails withLogFileName(String logFileName) {
         this. = logFileName;
         return this;
     }

    
A POSIX timestamp when the last log entry was written.

Returns:
A POSIX timestamp when the last log entry was written.
 
     public Long getLastWritten() {
         return ;
     }
    
    
A POSIX timestamp when the last log entry was written.

Parameters:
lastWritten A POSIX timestamp when the last log entry was written.
 
     public void setLastWritten(Long lastWritten) {
         this. = lastWritten;
     }
    
    
A POSIX timestamp when the last log entry was written.

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

Parameters:
lastWritten A POSIX timestamp when the last log entry was written.
Returns:
A reference to this updated object so that method calls can be chained together.
    public DescribeDBLogFilesDetails withLastWritten(Long lastWritten) {
        this. = lastWritten;
        return this;
    }

    
The size, in bytes, of the log file for the specified DB instance.

Returns:
The size, in bytes, of the log file for the specified DB instance.
    public Long getSize() {
        return ;
    }
    
    
The size, in bytes, of the log file for the specified DB instance.

Parameters:
size The size, in bytes, of the log file for the specified DB instance.
    public void setSize(Long size) {
        this. = size;
    }
    
    
The size, in bytes, of the log file for the specified DB instance.

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

Parameters:
size The size, in bytes, of the log file for the specified DB instance.
Returns:
A reference to this updated object so that method calls can be chained together.
    public DescribeDBLogFilesDetails withSize(Long size) {
        this. = size;
        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 (getLogFileName() != nullsb.append("LogFileName: " + getLogFileName() + ",");
        if (getLastWritten() != nullsb.append("LastWritten: " + getLastWritten() + ",");
        if (getSize() != nullsb.append("Size: " + getSize() );
        sb.append("}");
        return sb.toString();
    }
    
    @Override
    public int hashCode() {
        final int prime = 31;
        int hashCode = 1;
        
        hashCode = prime * hashCode + ((getLogFileName() == null) ? 0 : getLogFileName().hashCode()); 
        hashCode = prime * hashCode + ((getLastWritten() == null) ? 0 : getLastWritten().hashCode()); 
        hashCode = prime * hashCode + ((getSize() == null) ? 0 : getSize().hashCode()); 
        return hashCode;
    }
    
    @Override
    public boolean equals(Object obj) {
        if (this == objreturn true;
        if (obj == nullreturn false;
        if (obj instanceof DescribeDBLogFilesDetails == falsereturn false;
        
        if (other.getLogFileName() == null ^ this.getLogFileName() == nullreturn false;
        if (other.getLogFileName() != null && other.getLogFileName().equals(this.getLogFileName()) == falsereturn false
        if (other.getLastWritten() == null ^ this.getLastWritten() == nullreturn false;
        if (other.getLastWritten() != null && other.getLastWritten().equals(this.getLastWritten()) == falsereturn false
        if (other.getSize() == null ^ this.getSize() == nullreturn false;
        if (other.getSize() != null && other.getSize().equals(this.getSize()) == falsereturn false
        return true;
    }
    
    @Override
    public DescribeDBLogFilesDetails clone() {
        try {
            return (DescribeDBLogFilesDetailssuper.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