All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.elasticbeanstalk.model.EnvironmentInfoDescription Maven / Gradle / Ivy

Go to download

The AWS SDK for Java with support for OSGi. The AWS SDK for Java provides Java APIs for building software on AWS' cost-effective, scalable, and reliable infrastructure products. The AWS Java SDK allows developers to code against APIs for all of Amazon's infrastructure web services (Amazon S3, Amazon EC2, Amazon SQS, Amazon Relational Database Service, Amazon AutoScaling, etc).

There is a newer version: 1.11.60
Show newest version
/*
 * Copyright 2011-2016 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;

import java.io.Serializable;

/**
 * 

* The information retrieved from the Amazon EC2 instances. *

*/ public class EnvironmentInfoDescription implements Serializable, Cloneable { /** *

* The type of information retrieved. *

*/ 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; /** *

* The type of information retrieved. *

* * @param infoType * The type of information retrieved. * @see EnvironmentInfoType */ public void setInfoType(String infoType) { this.infoType = infoType; } /** *

* The type of information retrieved. *

* * @return The type of information retrieved. * @see EnvironmentInfoType */ public String getInfoType() { return this.infoType; } /** *

* The type of information retrieved. *

* * @param infoType * The type of information retrieved. * @return Returns a reference to this object so that method calls can be * chained together. * @see EnvironmentInfoType */ public EnvironmentInfoDescription withInfoType(String infoType) { setInfoType(infoType); return this; } /** *

* The type of information retrieved. *

* * @param infoType * The type of information retrieved. * @see EnvironmentInfoType */ public void setInfoType(EnvironmentInfoType infoType) { this.infoType = infoType.toString(); } /** *

* The type of information retrieved. *

* * @param infoType * The type of information retrieved. * @return Returns a reference to this object so that method calls can be * chained together. * @see EnvironmentInfoType */ public EnvironmentInfoDescription withInfoType(EnvironmentInfoType infoType) { setInfoType(infoType); return this; } /** *

* The Amazon EC2 Instance ID for this information. *

* * @param ec2InstanceId * The Amazon EC2 Instance ID for this information. */ public void setEc2InstanceId(String ec2InstanceId) { this.ec2InstanceId = ec2InstanceId; } /** *

* The Amazon EC2 Instance ID for this information. *

* * @return The Amazon EC2 Instance ID for this information. */ public String getEc2InstanceId() { return this.ec2InstanceId; } /** *

* The Amazon EC2 Instance ID for this information. *

* * @param ec2InstanceId * The Amazon EC2 Instance ID for this information. * @return Returns a reference to this object so that method calls can be * chained together. */ public EnvironmentInfoDescription withEc2InstanceId(String ec2InstanceId) { setEc2InstanceId(ec2InstanceId); return this; } /** *

* The time stamp when this information was retrieved. *

* * @param sampleTimestamp * The time stamp when this information was retrieved. */ public void setSampleTimestamp(java.util.Date sampleTimestamp) { this.sampleTimestamp = sampleTimestamp; } /** *

* The time stamp when this information was retrieved. *

* * @return The time stamp when this information was retrieved. */ public java.util.Date getSampleTimestamp() { return this.sampleTimestamp; } /** *

* The time stamp when this information was retrieved. *

* * @param sampleTimestamp * The time stamp when this information was retrieved. * @return Returns a reference to this object so that method calls can be * chained together. */ public EnvironmentInfoDescription withSampleTimestamp( java.util.Date sampleTimestamp) { setSampleTimestamp(sampleTimestamp); return this; } /** *

* The retrieved information. *

* * @param message * The retrieved information. */ public void setMessage(String message) { this.message = message; } /** *

* The retrieved information. *

* * @return The retrieved information. */ public String getMessage() { return this.message; } /** *

* The retrieved information. *

* * @param message * The retrieved information. * @return Returns a reference to this object so that method calls can be * chained together. */ public EnvironmentInfoDescription withMessage(String message) { setMessage(message); return this; } /** * Returns a string representation of this object; useful for testing and * debugging. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getInfoType() != null) sb.append("InfoType: " + getInfoType() + ","); if (getEc2InstanceId() != null) sb.append("Ec2InstanceId: " + getEc2InstanceId() + ","); if (getSampleTimestamp() != null) sb.append("SampleTimestamp: " + getSampleTimestamp() + ","); if (getMessage() != null) sb.append("Message: " + getMessage()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof EnvironmentInfoDescription == false) return false; EnvironmentInfoDescription other = (EnvironmentInfoDescription) obj; if (other.getInfoType() == null ^ this.getInfoType() == null) return false; if (other.getInfoType() != null && other.getInfoType().equals(this.getInfoType()) == false) return false; if (other.getEc2InstanceId() == null ^ this.getEc2InstanceId() == null) return false; if (other.getEc2InstanceId() != null && other.getEc2InstanceId().equals(this.getEc2InstanceId()) == false) return false; if (other.getSampleTimestamp() == null ^ this.getSampleTimestamp() == null) return false; if (other.getSampleTimestamp() != null && other.getSampleTimestamp().equals(this.getSampleTimestamp()) == false) return false; if (other.getMessage() == null ^ this.getMessage() == null) return false; if (other.getMessage() != null && other.getMessage().equals(this.getMessage()) == false) return false; return true; } @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 EnvironmentInfoDescription clone() { try { return (EnvironmentInfoDescription) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException( "Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy