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

com.amazonaws.services.elasticbeanstalk.model.EventDescription 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;

/**
 * 

* Describes an event. *

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

* The date when the event occurred. *

*/ private java.util.Date eventDate; /** *

* The event message. *

*/ private String message; /** *

* The application associated with the event. *

*/ private String applicationName; /** *

* The release label for the application version associated with this event. *

*/ private String versionLabel; /** *

* The name of the configuration associated with this event. *

*/ private String templateName; /** *

* The name of the environment associated with this event. *

*/ private String environmentName; /** *

* The web service request ID for the activity of this event. *

*/ private String requestId; /** *

* The severity level of this event. *

*/ private String severity; /** *

* The date when the event occurred. *

* * @param eventDate * The date when the event occurred. */ public void setEventDate(java.util.Date eventDate) { this.eventDate = eventDate; } /** *

* The date when the event occurred. *

* * @return The date when the event occurred. */ public java.util.Date getEventDate() { return this.eventDate; } /** *

* The date when the event occurred. *

* * @param eventDate * The date when the event occurred. * @return Returns a reference to this object so that method calls can be * chained together. */ public EventDescription withEventDate(java.util.Date eventDate) { setEventDate(eventDate); return this; } /** *

* The event message. *

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

* The event message. *

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

* The event message. *

* * @param message * The event message. * @return Returns a reference to this object so that method calls can be * chained together. */ public EventDescription withMessage(String message) { setMessage(message); return this; } /** *

* The application associated with the event. *

* * @param applicationName * The application associated with the event. */ public void setApplicationName(String applicationName) { this.applicationName = applicationName; } /** *

* The application associated with the event. *

* * @return The application associated with the event. */ public String getApplicationName() { return this.applicationName; } /** *

* The application associated with the event. *

* * @param applicationName * The application associated with the event. * @return Returns a reference to this object so that method calls can be * chained together. */ public EventDescription withApplicationName(String applicationName) { setApplicationName(applicationName); return this; } /** *

* The release label for the application version associated with this event. *

* * @param versionLabel * The release label for the application version associated with this * event. */ public void setVersionLabel(String versionLabel) { this.versionLabel = versionLabel; } /** *

* The release label for the application version associated with this event. *

* * @return The release label for the application version associated with * this event. */ public String getVersionLabel() { return this.versionLabel; } /** *

* The release label for the application version associated with this event. *

* * @param versionLabel * The release label for the application version associated with this * event. * @return Returns a reference to this object so that method calls can be * chained together. */ public EventDescription withVersionLabel(String versionLabel) { setVersionLabel(versionLabel); return this; } /** *

* The name of the configuration associated with this event. *

* * @param templateName * The name of the configuration associated with this event. */ public void setTemplateName(String templateName) { this.templateName = templateName; } /** *

* The name of the configuration associated with this event. *

* * @return The name of the configuration associated with this event. */ public String getTemplateName() { return this.templateName; } /** *

* The name of the configuration associated with this event. *

* * @param templateName * The name of the configuration associated with this event. * @return Returns a reference to this object so that method calls can be * chained together. */ public EventDescription withTemplateName(String templateName) { setTemplateName(templateName); return this; } /** *

* The name of the environment associated with this event. *

* * @param environmentName * The name of the environment associated with this event. */ public void setEnvironmentName(String environmentName) { this.environmentName = environmentName; } /** *

* The name of the environment associated with this event. *

* * @return The name of the environment associated with this event. */ public String getEnvironmentName() { return this.environmentName; } /** *

* The name of the environment associated with this event. *

* * @param environmentName * The name of the environment associated with this event. * @return Returns a reference to this object so that method calls can be * chained together. */ public EventDescription withEnvironmentName(String environmentName) { setEnvironmentName(environmentName); return this; } /** *

* The web service request ID for the activity of this event. *

* * @param requestId * The web service request ID for the activity of this event. */ public void setRequestId(String requestId) { this.requestId = requestId; } /** *

* The web service request ID for the activity of this event. *

* * @return The web service request ID for the activity of this event. */ public String getRequestId() { return this.requestId; } /** *

* The web service request ID for the activity of this event. *

* * @param requestId * The web service request ID for the activity of this event. * @return Returns a reference to this object so that method calls can be * chained together. */ public EventDescription withRequestId(String requestId) { setRequestId(requestId); return this; } /** *

* The severity level of this event. *

* * @param severity * The severity level of this event. * @see EventSeverity */ public void setSeverity(String severity) { this.severity = severity; } /** *

* The severity level of this event. *

* * @return The severity level of this event. * @see EventSeverity */ public String getSeverity() { return this.severity; } /** *

* The severity level of this event. *

* * @param severity * The severity level of this event. * @return Returns a reference to this object so that method calls can be * chained together. * @see EventSeverity */ public EventDescription withSeverity(String severity) { setSeverity(severity); return this; } /** *

* The severity level of this event. *

* * @param severity * The severity level of this event. * @see EventSeverity */ public void setSeverity(EventSeverity severity) { this.severity = severity.toString(); } /** *

* The severity level of this event. *

* * @param severity * The severity level of this event. * @return Returns a reference to this object so that method calls can be * chained together. * @see EventSeverity */ public EventDescription withSeverity(EventSeverity severity) { setSeverity(severity); 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 (getEventDate() != null) sb.append("EventDate: " + getEventDate() + ","); if (getMessage() != null) sb.append("Message: " + getMessage() + ","); if (getApplicationName() != null) sb.append("ApplicationName: " + getApplicationName() + ","); if (getVersionLabel() != null) sb.append("VersionLabel: " + getVersionLabel() + ","); if (getTemplateName() != null) sb.append("TemplateName: " + getTemplateName() + ","); if (getEnvironmentName() != null) sb.append("EnvironmentName: " + getEnvironmentName() + ","); if (getRequestId() != null) sb.append("RequestId: " + getRequestId() + ","); if (getSeverity() != null) sb.append("Severity: " + getSeverity()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof EventDescription == false) return false; EventDescription other = (EventDescription) obj; if (other.getEventDate() == null ^ this.getEventDate() == null) return false; if (other.getEventDate() != null && other.getEventDate().equals(this.getEventDate()) == false) return false; if (other.getMessage() == null ^ this.getMessage() == null) return false; if (other.getMessage() != null && other.getMessage().equals(this.getMessage()) == false) return false; if (other.getApplicationName() == null ^ this.getApplicationName() == null) return false; if (other.getApplicationName() != null && other.getApplicationName().equals(this.getApplicationName()) == false) return false; if (other.getVersionLabel() == null ^ this.getVersionLabel() == null) return false; if (other.getVersionLabel() != null && other.getVersionLabel().equals(this.getVersionLabel()) == false) return false; if (other.getTemplateName() == null ^ this.getTemplateName() == null) return false; if (other.getTemplateName() != null && other.getTemplateName().equals(this.getTemplateName()) == false) return false; if (other.getEnvironmentName() == null ^ this.getEnvironmentName() == null) return false; if (other.getEnvironmentName() != null && other.getEnvironmentName().equals(this.getEnvironmentName()) == false) return false; if (other.getRequestId() == null ^ this.getRequestId() == null) return false; if (other.getRequestId() != null && other.getRequestId().equals(this.getRequestId()) == false) return false; if (other.getSeverity() == null ^ this.getSeverity() == null) return false; if (other.getSeverity() != null && other.getSeverity().equals(this.getSeverity()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getEventDate() == null) ? 0 : getEventDate().hashCode()); hashCode = prime * hashCode + ((getMessage() == null) ? 0 : getMessage().hashCode()); hashCode = prime * hashCode + ((getApplicationName() == null) ? 0 : getApplicationName() .hashCode()); hashCode = prime * hashCode + ((getVersionLabel() == null) ? 0 : getVersionLabel() .hashCode()); hashCode = prime * hashCode + ((getTemplateName() == null) ? 0 : getTemplateName() .hashCode()); hashCode = prime * hashCode + ((getEnvironmentName() == null) ? 0 : getEnvironmentName() .hashCode()); hashCode = prime * hashCode + ((getRequestId() == null) ? 0 : getRequestId().hashCode()); hashCode = prime * hashCode + ((getSeverity() == null) ? 0 : getSeverity().hashCode()); return hashCode; } @Override public EventDescription clone() { try { return (EventDescription) 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