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;
 
Put Log Events Result
 
 public class PutLogEventsResult implements SerializableCloneable {

    
A string token used for making PutLogEvents requests. A sequenceToken can only be used once, and PutLogEvents requests must include the sequenceToken obtained from the response of the previous request.

Constraints:
Length: 1 -

 
     private String nextSequenceToken;
 
     private RejectedLogEventsInfo rejectedLogEventsInfo;

    
A string token used for making PutLogEvents requests. A sequenceToken can only be used once, and PutLogEvents requests must include the sequenceToken obtained from the response of the previous request.

Constraints:
Length: 1 -

Returns:
A string token used for making PutLogEvents requests. A sequenceToken can only be used once, and PutLogEvents requests must include the sequenceToken obtained from the response of the previous request.
 
     public String getNextSequenceToken() {
         return ;
     }
    
    
A string token used for making PutLogEvents requests. A sequenceToken can only be used once, and PutLogEvents requests must include the sequenceToken obtained from the response of the previous request.

Constraints:
Length: 1 -

Parameters:
nextSequenceToken A string token used for making PutLogEvents requests. A sequenceToken can only be used once, and PutLogEvents requests must include the sequenceToken obtained from the response of the previous request.
 
     public void setNextSequenceToken(String nextSequenceToken) {
         this. = nextSequenceToken;
     }
    
    
A string token used for making PutLogEvents requests. A sequenceToken can only be used once, and PutLogEvents requests must include the sequenceToken obtained from the response of the previous request.

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

Constraints:
Length: 1 -

Parameters:
nextSequenceToken A string token used for making PutLogEvents requests. A sequenceToken can only be used once, and PutLogEvents requests must include the sequenceToken obtained from the response of the previous request.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public PutLogEventsResult withNextSequenceToken(String nextSequenceToken) {
        this. = nextSequenceToken;
        return this;
    }

    
Returns the value of the RejectedLogEventsInfo property for this object.

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

Parameters:
rejectedLogEventsInfo The new value for the RejectedLogEventsInfo property for this object.
    public void setRejectedLogEventsInfo(RejectedLogEventsInfo rejectedLogEventsInfo) {
        this. = rejectedLogEventsInfo;
    }
    
    
Sets the value of the RejectedLogEventsInfo property for this object.

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

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