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.logs.model;
 
Rejected Log Events Info
 
 public class RejectedLogEventsInfo implements SerializableCloneable {
 
     private Integer tooNewLogEventStartIndex;
 
     private Integer tooOldLogEventEndIndex;
 
     private Integer expiredLogEventEndIndex;

    
Returns the value of the TooNewLogEventStartIndex property for this object.

Returns:
The value of the TooNewLogEventStartIndex property for this object.
 
     public Integer getTooNewLogEventStartIndex() {
         return ;
     }
    
    
Sets the value of the TooNewLogEventStartIndex property for this object.

Parameters:
tooNewLogEventStartIndex The new value for the TooNewLogEventStartIndex property for this object.
 
     public void setTooNewLogEventStartIndex(Integer tooNewLogEventStartIndex) {
         this. = tooNewLogEventStartIndex;
     }
    
    
Sets the value of the TooNewLogEventStartIndex property for this object.

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

Parameters:
tooNewLogEventStartIndex The new value for the TooNewLogEventStartIndex property for this object.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public RejectedLogEventsInfo withTooNewLogEventStartIndex(Integer tooNewLogEventStartIndex) {
         this. = tooNewLogEventStartIndex;
         return this;
     }

    
Returns the value of the TooOldLogEventEndIndex property for this object.

Returns:
The value of the TooOldLogEventEndIndex property for this object.
 
     public Integer getTooOldLogEventEndIndex() {
         return ;
     }
    
    
Sets the value of the TooOldLogEventEndIndex property for this object.

Parameters:
tooOldLogEventEndIndex The new value for the TooOldLogEventEndIndex property for this object.
 
     public void setTooOldLogEventEndIndex(Integer tooOldLogEventEndIndex) {
         this. = tooOldLogEventEndIndex;
     }
    
    
Sets the value of the TooOldLogEventEndIndex property for this object.

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

Parameters:
tooOldLogEventEndIndex The new value for the TooOldLogEventEndIndex property for this object.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public RejectedLogEventsInfo withTooOldLogEventEndIndex(Integer tooOldLogEventEndIndex) {
         this. = tooOldLogEventEndIndex;
         return this;
    }

    
Returns the value of the ExpiredLogEventEndIndex property for this object.

Returns:
The value of the ExpiredLogEventEndIndex property for this object.
        return ;
    }
    
    
Sets the value of the ExpiredLogEventEndIndex property for this object.

Parameters:
expiredLogEventEndIndex The new value for the ExpiredLogEventEndIndex property for this object.
    public void setExpiredLogEventEndIndex(Integer expiredLogEventEndIndex) {
        this. = expiredLogEventEndIndex;
    }
    
    
Sets the value of the ExpiredLogEventEndIndex property for this object.

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

Parameters:
expiredLogEventEndIndex The new value for the ExpiredLogEventEndIndex property for this object.
Returns:
A reference to this updated object so that method calls can be chained together.
    public RejectedLogEventsInfo withExpiredLogEventEndIndex(Integer expiredLogEventEndIndex) {
        this. = expiredLogEventEndIndex;
        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 (getTooNewLogEventStartIndex() != nullsb.append("TooNewLogEventStartIndex: " + getTooNewLogEventStartIndex() + ",");
        if (getTooOldLogEventEndIndex() != nullsb.append("TooOldLogEventEndIndex: " + getTooOldLogEventEndIndex() + ",");
        if (getExpiredLogEventEndIndex() != nullsb.append("ExpiredLogEventEndIndex: " + getExpiredLogEventEndIndex() );
        sb.append("}");
        return sb.toString();
    }
    
    @Override
    public int hashCode() {
        final int prime = 31;
        int hashCode = 1;
        
        hashCode = prime * hashCode + ((getTooNewLogEventStartIndex() == null) ? 0 : getTooNewLogEventStartIndex().hashCode()); 
        hashCode = prime * hashCode + ((getTooOldLogEventEndIndex() == null) ? 0 : getTooOldLogEventEndIndex().hashCode()); 
        hashCode = prime * hashCode + ((getExpiredLogEventEndIndex() == null) ? 0 : getExpiredLogEventEndIndex().hashCode()); 
        return hashCode;
    }
    
    @Override
    public boolean equals(Object obj) {
        if (this == objreturn true;
        if (obj == nullreturn false;
        if (obj instanceof RejectedLogEventsInfo == falsereturn false;
        RejectedLogEventsInfo other = (RejectedLogEventsInfo)obj;
        
        if (other.getTooNewLogEventStartIndex() == null ^ this.getTooNewLogEventStartIndex() == nullreturn false;
        if (other.getTooNewLogEventStartIndex() != null && other.getTooNewLogEventStartIndex().equals(this.getTooNewLogEventStartIndex()) == falsereturn false
        if (other.getTooOldLogEventEndIndex() == null ^ this.getTooOldLogEventEndIndex() == nullreturn false;
        if (other.getTooOldLogEventEndIndex() != null && other.getTooOldLogEventEndIndex().equals(this.getTooOldLogEventEndIndex()) == falsereturn false
        if (other.getExpiredLogEventEndIndex() == null ^ this.getExpiredLogEventEndIndex() == nullreturn false;
        if (other.getExpiredLogEventEndIndex() != null && other.getExpiredLogEventEndIndex().equals(this.getExpiredLogEventEndIndex()) == falsereturn false
        return true;
    }
    
    @Override
    public RejectedLogEventsInfo clone() {
        try {
            return (RejectedLogEventsInfosuper.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