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

com.amazonaws.services.elasticbeanstalk.model.DescribeEnvironmentManagedActionsRequest 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 list an environment's upcoming and in-progress managed actions. *

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

* The name of the target environment. *

*/ private String environmentName; /** *

* The environment ID of the target environment. *

*/ private String environmentId; /** *

* To show only actions with a particular status, specify a status. *

*/ private String status; /** *

* 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 DescribeEnvironmentManagedActionsRequest 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 DescribeEnvironmentManagedActionsRequest withEnvironmentId( String environmentId) { setEnvironmentId(environmentId); return this; } /** *

* To show only actions with a particular status, specify a status. *

* * @param status * To show only actions with a particular status, specify a status. * @see ActionStatus */ public void setStatus(String status) { this.status = status; } /** *

* To show only actions with a particular status, specify a status. *

* * @return To show only actions with a particular status, specify a status. * @see ActionStatus */ public String getStatus() { return this.status; } /** *

* To show only actions with a particular status, specify a status. *

* * @param status * To show only actions with a particular status, specify a status. * @return Returns a reference to this object so that method calls can be * chained together. * @see ActionStatus */ public DescribeEnvironmentManagedActionsRequest withStatus(String status) { setStatus(status); return this; } /** *

* To show only actions with a particular status, specify a status. *

* * @param status * To show only actions with a particular status, specify a status. * @see ActionStatus */ public void setStatus(ActionStatus status) { this.status = status.toString(); } /** *

* To show only actions with a particular status, specify a status. *

* * @param status * To show only actions with a particular status, specify a status. * @return Returns a reference to this object so that method calls can be * chained together. * @see ActionStatus */ public DescribeEnvironmentManagedActionsRequest withStatus( ActionStatus 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 (getEnvironmentName() != null) sb.append("EnvironmentName: " + getEnvironmentName() + ","); if (getEnvironmentId() != null) sb.append("EnvironmentId: " + getEnvironmentId() + ","); 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 DescribeEnvironmentManagedActionsRequest == false) return false; DescribeEnvironmentManagedActionsRequest other = (DescribeEnvironmentManagedActionsRequest) 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.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 + ((getEnvironmentName() == null) ? 0 : getEnvironmentName() .hashCode()); hashCode = prime * hashCode + ((getEnvironmentId() == null) ? 0 : getEnvironmentId() .hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); return hashCode; } @Override public DescribeEnvironmentManagedActionsRequest clone() { return (DescribeEnvironmentManagedActionsRequest) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy