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

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

The 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 record of an upcoming or in-progress managed action. *

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

* A unique identifier for 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. If the action is Scheduled * , you can apply it immediately with ApplyEnvironmentManagedAction. *

*/ private String status; /** *

* The start time of the maintenance window in which the managed action will * execute. *

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

* A unique identifier for the managed action. *

* * @param actionId * A unique identifier for the managed action. */ public void setActionId(String actionId) { this.actionId = actionId; } /** *

* A unique identifier for the managed action. *

* * @return A unique identifier for the managed action. */ public String getActionId() { return this.actionId; } /** *

* A unique identifier for the managed action. *

* * @param actionId * A unique identifier for the managed action. * @return Returns a reference to this object so that method calls can be * chained together. */ public ManagedAction 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 ManagedAction 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 ManagedAction 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 ManagedAction withActionType(ActionType actionType) { setActionType(actionType); return this; } /** *

* The status of the managed action. If the action is Scheduled * , you can apply it immediately with ApplyEnvironmentManagedAction. *

* * @param status * The status of the managed action. If the action is * Scheduled, you can apply it immediately with * ApplyEnvironmentManagedAction. * @see ActionStatus */ public void setStatus(String status) { this.status = status; } /** *

* The status of the managed action. If the action is Scheduled * , you can apply it immediately with ApplyEnvironmentManagedAction. *

* * @return The status of the managed action. If the action is * Scheduled, you can apply it immediately with * ApplyEnvironmentManagedAction. * @see ActionStatus */ public String getStatus() { return this.status; } /** *

* The status of the managed action. If the action is Scheduled * , you can apply it immediately with ApplyEnvironmentManagedAction. *

* * @param status * The status of the managed action. If the action is * Scheduled, you can apply it immediately with * ApplyEnvironmentManagedAction. * @return Returns a reference to this object so that method calls can be * chained together. * @see ActionStatus */ public ManagedAction withStatus(String status) { setStatus(status); return this; } /** *

* The status of the managed action. If the action is Scheduled * , you can apply it immediately with ApplyEnvironmentManagedAction. *

* * @param status * The status of the managed action. If the action is * Scheduled, you can apply it immediately with * ApplyEnvironmentManagedAction. * @see ActionStatus */ public void setStatus(ActionStatus status) { this.status = status.toString(); } /** *

* The status of the managed action. If the action is Scheduled * , you can apply it immediately with ApplyEnvironmentManagedAction. *

* * @param status * The status of the managed action. If the action is * Scheduled, you can apply it immediately with * ApplyEnvironmentManagedAction. * @return Returns a reference to this object so that method calls can be * chained together. * @see ActionStatus */ public ManagedAction withStatus(ActionStatus status) { setStatus(status); return this; } /** *

* The start time of the maintenance window in which the managed action will * execute. *

* * @param windowStartTime * The start time of the maintenance window in which the managed * action will execute. */ public void setWindowStartTime(java.util.Date windowStartTime) { this.windowStartTime = windowStartTime; } /** *

* The start time of the maintenance window in which the managed action will * execute. *

* * @return The start time of the maintenance window in which the managed * action will execute. */ public java.util.Date getWindowStartTime() { return this.windowStartTime; } /** *

* The start time of the maintenance window in which the managed action will * execute. *

* * @param windowStartTime * The start time of the maintenance window in which the managed * action will execute. * @return Returns a reference to this object so that method calls can be * chained together. */ public ManagedAction withWindowStartTime(java.util.Date windowStartTime) { setWindowStartTime(windowStartTime); 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() + ","); if (getWindowStartTime() != null) sb.append("WindowStartTime: " + getWindowStartTime()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ManagedAction == false) return false; ManagedAction other = (ManagedAction) 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; if (other.getWindowStartTime() == null ^ this.getWindowStartTime() == null) return false; if (other.getWindowStartTime() != null && other.getWindowStartTime().equals(this.getWindowStartTime()) == 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()); hashCode = prime * hashCode + ((getWindowStartTime() == null) ? 0 : getWindowStartTime() .hashCode()); return hashCode; } @Override public ManagedAction clone() { try { return (ManagedAction) 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