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

com.amazonaws.services.elasticmapreduce.model.CancelStepsInfo Maven / Gradle / Ivy

Go to download

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

There is a newer version: 1.12.780
Show newest version
/*
 * Copyright 2013-2018 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.elasticmapreduce.model;

import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * 

* Specification of the status of a CancelSteps request. Available only in Amazon EMR version 4.8.0 and later, excluding * version 5.0.0. *

* * @see AWS * API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class CancelStepsInfo implements Serializable, Cloneable, StructuredPojo { /** *

* The encrypted StepId of a step. *

*/ private String stepId; /** *

* The status of a CancelSteps Request. The value may be SUBMITTED or FAILED. *

*/ private String status; /** *

* The reason for the failure if the CancelSteps request fails. *

*/ private String reason; /** *

* The encrypted StepId of a step. *

* * @param stepId * The encrypted StepId of a step. */ public void setStepId(String stepId) { this.stepId = stepId; } /** *

* The encrypted StepId of a step. *

* * @return The encrypted StepId of a step. */ public String getStepId() { return this.stepId; } /** *

* The encrypted StepId of a step. *

* * @param stepId * The encrypted StepId of a step. * @return Returns a reference to this object so that method calls can be chained together. */ public CancelStepsInfo withStepId(String stepId) { setStepId(stepId); return this; } /** *

* The status of a CancelSteps Request. The value may be SUBMITTED or FAILED. *

* * @param status * The status of a CancelSteps Request. The value may be SUBMITTED or FAILED. * @see CancelStepsRequestStatus */ public void setStatus(String status) { this.status = status; } /** *

* The status of a CancelSteps Request. The value may be SUBMITTED or FAILED. *

* * @return The status of a CancelSteps Request. The value may be SUBMITTED or FAILED. * @see CancelStepsRequestStatus */ public String getStatus() { return this.status; } /** *

* The status of a CancelSteps Request. The value may be SUBMITTED or FAILED. *

* * @param status * The status of a CancelSteps Request. The value may be SUBMITTED or FAILED. * @return Returns a reference to this object so that method calls can be chained together. * @see CancelStepsRequestStatus */ public CancelStepsInfo withStatus(String status) { setStatus(status); return this; } /** *

* The status of a CancelSteps Request. The value may be SUBMITTED or FAILED. *

* * @param status * The status of a CancelSteps Request. The value may be SUBMITTED or FAILED. * @see CancelStepsRequestStatus */ public void setStatus(CancelStepsRequestStatus status) { withStatus(status); } /** *

* The status of a CancelSteps Request. The value may be SUBMITTED or FAILED. *

* * @param status * The status of a CancelSteps Request. The value may be SUBMITTED or FAILED. * @return Returns a reference to this object so that method calls can be chained together. * @see CancelStepsRequestStatus */ public CancelStepsInfo withStatus(CancelStepsRequestStatus status) { this.status = status.toString(); return this; } /** *

* The reason for the failure if the CancelSteps request fails. *

* * @param reason * The reason for the failure if the CancelSteps request fails. */ public void setReason(String reason) { this.reason = reason; } /** *

* The reason for the failure if the CancelSteps request fails. *

* * @return The reason for the failure if the CancelSteps request fails. */ public String getReason() { return this.reason; } /** *

* The reason for the failure if the CancelSteps request fails. *

* * @param reason * The reason for the failure if the CancelSteps request fails. * @return Returns a reference to this object so that method calls can be chained together. */ public CancelStepsInfo withReason(String reason) { setReason(reason); 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 (getStepId() != null) sb.append("StepId: ").append(getStepId()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()).append(","); if (getReason() != null) sb.append("Reason: ").append(getReason()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CancelStepsInfo == false) return false; CancelStepsInfo other = (CancelStepsInfo) obj; if (other.getStepId() == null ^ this.getStepId() == null) return false; if (other.getStepId() != null && other.getStepId().equals(this.getStepId()) == 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.getReason() == null ^ this.getReason() == null) return false; if (other.getReason() != null && other.getReason().equals(this.getReason()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getStepId() == null) ? 0 : getStepId().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getReason() == null) ? 0 : getReason().hashCode()); return hashCode; } @Override public CancelStepsInfo clone() { try { return (CancelStepsInfo) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } @com.amazonaws.annotation.SdkInternalApi @Override public void marshall(ProtocolMarshaller protocolMarshaller) { com.amazonaws.services.elasticmapreduce.model.transform.CancelStepsInfoMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy