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

The information retrieved from the Amazon EC2 instances.

 
 public class EnvironmentInfoDescription implements SerializableCloneable {

    
The type of information retrieved.

Constraints:
Allowed Values: tail, bundle

 
     private String infoType;

    
The Amazon EC2 Instance ID for this information.
 
     private String ec2InstanceId;

    
The time stamp when this information was retrieved.
 
     private java.util.Date sampleTimestamp;

    
The retrieved information.
 
     private String message;

    
Default constructor for a new EnvironmentInfoDescription object. Callers should use the setter or fluent setter (with...) methods to initialize this object after creating it.
 
     public EnvironmentInfoDescription() {}
    
    
The type of information retrieved.

Constraints:
Allowed Values: tail, bundle

Returns:
The type of information retrieved.
See also:
EnvironmentInfoType
 
     public String getInfoType() {
         return ;
     }
    
    
The type of information retrieved.

Constraints:
Allowed Values: tail, bundle

Parameters:
infoType The type of information retrieved.
See also:
EnvironmentInfoType
 
     public void setInfoType(String infoType) {
         this. = infoType;
     }
    
    
The type of information retrieved.

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

Constraints:
Allowed Values: tail, bundle

Parameters:
infoType The type of information retrieved.
Returns:
A reference to this updated object so that method calls can be chained together.
See also:
EnvironmentInfoType
 
     public EnvironmentInfoDescription withInfoType(String infoType) {
         this. = infoType;
        return this;
    }

    
The type of information retrieved.

Constraints:
Allowed Values: tail, bundle

Parameters:
infoType The type of information retrieved.
See also:
EnvironmentInfoType
    public void setInfoType(EnvironmentInfoType infoType) {
        this. = infoType.toString();
    }
    
    
The type of information retrieved.

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

Constraints:
Allowed Values: tail, bundle

Parameters:
infoType The type of information retrieved.
Returns:
A reference to this updated object so that method calls can be chained together.
See also:
EnvironmentInfoType
        this. = infoType.toString();
        return this;
    }

    
The Amazon EC2 Instance ID for this information.

Returns:
The Amazon EC2 Instance ID for this information.
    public String getEc2InstanceId() {
        return ;
    }
    
    
The Amazon EC2 Instance ID for this information.

Parameters:
ec2InstanceId The Amazon EC2 Instance ID for this information.
    public void setEc2InstanceId(String ec2InstanceId) {
        this. = ec2InstanceId;
    }
    
    
The Amazon EC2 Instance ID for this information.

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

Parameters:
ec2InstanceId The Amazon EC2 Instance ID for this information.
Returns:
A reference to this updated object so that method calls can be chained together.
    public EnvironmentInfoDescription withEc2InstanceId(String ec2InstanceId) {
        this. = ec2InstanceId;
        return this;
    }

    
The time stamp when this information was retrieved.

Returns:
The time stamp when this information was retrieved.
    public java.util.Date getSampleTimestamp() {
        return ;
    }
    
    
The time stamp when this information was retrieved.

Parameters:
sampleTimestamp The time stamp when this information was retrieved.
    public void setSampleTimestamp(java.util.Date sampleTimestamp) {
        this. = sampleTimestamp;
    }
    
    
The time stamp when this information was retrieved.

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

Parameters:
sampleTimestamp The time stamp when this information was retrieved.
Returns:
A reference to this updated object so that method calls can be chained together.
    public EnvironmentInfoDescription withSampleTimestamp(java.util.Date sampleTimestamp) {
        this. = sampleTimestamp;
        return this;
    }

    
The retrieved information.

Returns:
The retrieved information.
    public String getMessage() {
        return ;
    }
    
    
The retrieved information.

Parameters:
message The retrieved information.
    public void setMessage(String message) {
        this. = message;
    }
    
    
The retrieved information.

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

Parameters:
message The retrieved information.
Returns:
A reference to this updated object so that method calls can be chained together.
    public EnvironmentInfoDescription withMessage(String message) {
        this. = message;
        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 (getInfoType() != nullsb.append("InfoType: " + getInfoType() + ",");
        if (getEc2InstanceId() != nullsb.append("Ec2InstanceId: " + getEc2InstanceId() + ",");
        if (getSampleTimestamp() != nullsb.append("SampleTimestamp: " + getSampleTimestamp() + ",");
        if (getMessage() != nullsb.append("Message: " + getMessage() );
        sb.append("}");
        return sb.toString();
    }
    
    @Override
    public int hashCode() {
        final int prime = 31;
        int hashCode = 1;
        
        hashCode = prime * hashCode + ((getInfoType() == null) ? 0 : getInfoType().hashCode()); 
        hashCode = prime * hashCode + ((getEc2InstanceId() == null) ? 0 : getEc2InstanceId().hashCode()); 
        hashCode = prime * hashCode + ((getSampleTimestamp() == null) ? 0 : getSampleTimestamp().hashCode()); 
        hashCode = prime * hashCode + ((getMessage() == null) ? 0 : getMessage().hashCode()); 
        return hashCode;
    }
    
    @Override
    public boolean equals(Object obj) {
        if (this == objreturn true;
        if (obj == nullreturn false;
        if (obj instanceof EnvironmentInfoDescription == falsereturn false;
        
        if (other.getInfoType() == null ^ this.getInfoType() == nullreturn false;
        if (other.getInfoType() != null && other.getInfoType().equals(this.getInfoType()) == falsereturn false
        if (other.getEc2InstanceId() == null ^ this.getEc2InstanceId() == nullreturn false;
        if (other.getEc2InstanceId() != null && other.getEc2InstanceId().equals(this.getEc2InstanceId()) == falsereturn false
        if (other.getSampleTimestamp() == null ^ this.getSampleTimestamp() == nullreturn false;
        if (other.getSampleTimestamp() != null && other.getSampleTimestamp().equals(this.getSampleTimestamp()) == falsereturn false
        if (other.getMessage() == null ^ this.getMessage() == nullreturn false;
        if (other.getMessage() != null && other.getMessage().equals(this.getMessage()) == falsereturn false
        return true;
    }
    
    @Override
    public EnvironmentInfoDescription clone() {
        try {
            return (EnvironmentInfoDescriptionsuper.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