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

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

Go to download

The AWS Java SDK for AWS Elastic Beanstalk module holds the client classes that are used for communicating with AWS Elastic Beanstalk Service

There is a newer version: 1.11.7
Show newest version
/*
 * Copyright 2010-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 result message containing information about the managed action. *

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

* The action ID of the managed action. *

*/ private String actionId; /** *

* A description of the managed action. *

*/ private String actionDescription; /** *

* The type of managed action. *

*/ private String actionType; /** *

* The status of the managed action. *

*/ private String status; /** *

* The action ID of the managed action. *

* * @param actionId * The action ID of the managed action. */ public void setActionId(String actionId) { this.actionId = actionId; } /** *

* The action ID of the managed action. *

* * @return The action ID of the managed action. */ public String getActionId() { return this.actionId; } /** *

* The action ID of the managed action. *

* * @param actionId * The action ID of the managed action. * @return Returns a reference to this object so that method calls can be * chained together. */ public ApplyEnvironmentManagedActionResult withActionId(String actionId) { setActionId(actionId); return this; } /** *

* A description of the managed action. *

* * @param actionDescription * A description of the managed action. */ public void setActionDescription(String actionDescription) { this.actionDescription = actionDescription; } /** *

* A description of the managed action. *

* * @return A description of the managed action. */ public String getActionDescription() { return this.actionDescription; } /** *

* A description of the managed action. *

* * @param actionDescription * A description of the managed action. * @return Returns a reference to this object so that method calls can be * chained together. */ public ApplyEnvironmentManagedActionResult withActionDescription( String actionDescription) { setActionDescription(actionDescription); return this; } /** *

* The type of managed action. *

* * @param actionType * The type of managed action. * @see ActionType */ public void setActionType(String actionType) { this.actionType = actionType; } /** *

* The type of managed action. *

* * @return The type of managed action. * @see ActionType */ public String getActionType() { return this.actionType; } /** *

* The type of managed action. *

* * @param actionType * The type of managed action. * @return Returns a reference to this object so that method calls can be * chained together. * @see ActionType */ public ApplyEnvironmentManagedActionResult withActionType(String actionType) { setActionType(actionType); return this; } /** *

* The type of managed action. *

* * @param actionType * The type of managed action. * @see ActionType */ public void setActionType(ActionType actionType) { this.actionType = actionType.toString(); } /** *

* The type of managed action. *

* * @param actionType * The type of managed action. * @return Returns a reference to this object so that method calls can be * chained together. * @see ActionType */ public ApplyEnvironmentManagedActionResult withActionType( ActionType actionType) { setActionType(actionType); return this; } /** *

* The status of the managed action. *

* * @param status * The status of the managed action. */ public void setStatus(String status) { this.status = status; } /** *

* The status of the managed action. *

* * @return The status of the managed action. */ public String getStatus() { return this.status; } /** *

* The status of the managed action. *

* * @param status * The status of the managed action. * @return Returns a reference to this object so that method calls can be * chained together. */ public ApplyEnvironmentManagedActionResult withStatus(String status) { setStatus(status); 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 (getActionId() != null) sb.append("ActionId: " + getActionId() + ","); if (getActionDescription() != null) sb.append("ActionDescription: " + getActionDescription() + ","); if (getActionType() != null) sb.append("ActionType: " + getActionType() + ","); if (getStatus() != null) sb.append("Status: " + getStatus()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ApplyEnvironmentManagedActionResult == false) return false; ApplyEnvironmentManagedActionResult other = (ApplyEnvironmentManagedActionResult) obj; if (other.getActionId() == null ^ this.getActionId() == null) return false; if (other.getActionId() != null && other.getActionId().equals(this.getActionId()) == false) return false; if (other.getActionDescription() == null ^ this.getActionDescription() == null) return false; if (other.getActionDescription() != null && other.getActionDescription().equals( this.getActionDescription()) == false) return false; if (other.getActionType() == null ^ this.getActionType() == null) return false; if (other.getActionType() != null && other.getActionType().equals(this.getActionType()) == false) return false; if (other.getStatus() == null ^ this.getStatus() == null) return false; if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getActionId() == null) ? 0 : getActionId().hashCode()); hashCode = prime * hashCode + ((getActionDescription() == null) ? 0 : getActionDescription().hashCode()); hashCode = prime * hashCode + ((getActionType() == null) ? 0 : getActionType().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); return hashCode; } @Override public ApplyEnvironmentManagedActionResult clone() { try { return (ApplyEnvironmentManagedActionResult) 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