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

com.amazonaws.services.elasticbeanstalk.model.ApplyEnvironmentManagedActionRequest 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;
import com.amazonaws.AmazonWebServiceRequest;

/**
 * 

* Request to execute a scheduled managed action immediately. *

*/ public class ApplyEnvironmentManagedActionRequest extends AmazonWebServiceRequest implements Serializable, Cloneable { /** *

* The name of the target environment. *

*/ private String environmentName; /** *

* The environment ID of the target environment. *

*/ private String environmentId; /** *

* The action ID of the scheduled managed action to execute. *

*/ private String actionId; /** *

* The name of the target environment. *

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

* The name of the target environment. *

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

* The name of the target environment. *

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

* The environment ID of the target environment. *

* * @param environmentId * The environment ID of the target environment. */ public void setEnvironmentId(String environmentId) { this.environmentId = environmentId; } /** *

* The environment ID of the target environment. *

* * @return The environment ID of the target environment. */ public String getEnvironmentId() { return this.environmentId; } /** *

* The environment ID of the target environment. *

* * @param environmentId * The environment ID of the target environment. * @return Returns a reference to this object so that method calls can be * chained together. */ public ApplyEnvironmentManagedActionRequest withEnvironmentId( String environmentId) { setEnvironmentId(environmentId); return this; } /** *

* The action ID of the scheduled managed action to execute. *

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

* The action ID of the scheduled managed action to execute. *

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

* The action ID of the scheduled managed action to execute. *

* * @param actionId * The action ID of the scheduled managed action to execute. * @return Returns a reference to this object so that method calls can be * chained together. */ public ApplyEnvironmentManagedActionRequest withActionId(String actionId) { setActionId(actionId); 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 (getEnvironmentName() != null) sb.append("EnvironmentName: " + getEnvironmentName() + ","); if (getEnvironmentId() != null) sb.append("EnvironmentId: " + getEnvironmentId() + ","); if (getActionId() != null) sb.append("ActionId: " + getActionId()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ApplyEnvironmentManagedActionRequest == false) return false; ApplyEnvironmentManagedActionRequest other = (ApplyEnvironmentManagedActionRequest) obj; if (other.getEnvironmentName() == null ^ this.getEnvironmentName() == null) return false; if (other.getEnvironmentName() != null && other.getEnvironmentName().equals(this.getEnvironmentName()) == false) return false; if (other.getEnvironmentId() == null ^ this.getEnvironmentId() == null) return false; if (other.getEnvironmentId() != null && other.getEnvironmentId().equals(this.getEnvironmentId()) == false) return false; if (other.getActionId() == null ^ this.getActionId() == null) return false; if (other.getActionId() != null && other.getActionId().equals(this.getActionId()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getEnvironmentName() == null) ? 0 : getEnvironmentName() .hashCode()); hashCode = prime * hashCode + ((getEnvironmentId() == null) ? 0 : getEnvironmentId() .hashCode()); hashCode = prime * hashCode + ((getActionId() == null) ? 0 : getActionId().hashCode()); return hashCode; } @Override public ApplyEnvironmentManagedActionRequest clone() { return (ApplyEnvironmentManagedActionRequest) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy