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

com.amazonaws.services.sagemaker.model.SendPipelineExecutionStepFailureRequest Maven / Gradle / Ivy

Go to download

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

The newest version!
/*
 * Copyright 2019-2024 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.sagemaker.model;

import java.io.Serializable;
import javax.annotation.Generated;

import com.amazonaws.AmazonWebServiceRequest;

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

    /**
     * 

* The pipeline generated token from the Amazon SQS queue. *

*/ private String callbackToken; /** *

* A message describing why the step failed. *

*/ private String failureReason; /** *

* A unique, case-sensitive identifier that you provide to ensure the idempotency of the operation. An idempotent * operation completes no more than one time. *

*/ private String clientRequestToken; /** *

* The pipeline generated token from the Amazon SQS queue. *

* * @param callbackToken * The pipeline generated token from the Amazon SQS queue. */ public void setCallbackToken(String callbackToken) { this.callbackToken = callbackToken; } /** *

* The pipeline generated token from the Amazon SQS queue. *

* * @return The pipeline generated token from the Amazon SQS queue. */ public String getCallbackToken() { return this.callbackToken; } /** *

* The pipeline generated token from the Amazon SQS queue. *

* * @param callbackToken * The pipeline generated token from the Amazon SQS queue. * @return Returns a reference to this object so that method calls can be chained together. */ public SendPipelineExecutionStepFailureRequest withCallbackToken(String callbackToken) { setCallbackToken(callbackToken); return this; } /** *

* A message describing why the step failed. *

* * @param failureReason * A message describing why the step failed. */ public void setFailureReason(String failureReason) { this.failureReason = failureReason; } /** *

* A message describing why the step failed. *

* * @return A message describing why the step failed. */ public String getFailureReason() { return this.failureReason; } /** *

* A message describing why the step failed. *

* * @param failureReason * A message describing why the step failed. * @return Returns a reference to this object so that method calls can be chained together. */ public SendPipelineExecutionStepFailureRequest withFailureReason(String failureReason) { setFailureReason(failureReason); return this; } /** *

* A unique, case-sensitive identifier that you provide to ensure the idempotency of the operation. An idempotent * operation completes no more than one time. *

* * @param clientRequestToken * A unique, case-sensitive identifier that you provide to ensure the idempotency of the operation. An * idempotent operation completes no more than one time. */ public void setClientRequestToken(String clientRequestToken) { this.clientRequestToken = clientRequestToken; } /** *

* A unique, case-sensitive identifier that you provide to ensure the idempotency of the operation. An idempotent * operation completes no more than one time. *

* * @return A unique, case-sensitive identifier that you provide to ensure the idempotency of the operation. An * idempotent operation completes no more than one time. */ public String getClientRequestToken() { return this.clientRequestToken; } /** *

* A unique, case-sensitive identifier that you provide to ensure the idempotency of the operation. An idempotent * operation completes no more than one time. *

* * @param clientRequestToken * A unique, case-sensitive identifier that you provide to ensure the idempotency of the operation. An * idempotent operation completes no more than one time. * @return Returns a reference to this object so that method calls can be chained together. */ public SendPipelineExecutionStepFailureRequest withClientRequestToken(String clientRequestToken) { setClientRequestToken(clientRequestToken); return this; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getCallbackToken() != null) sb.append("CallbackToken: ").append(getCallbackToken()).append(","); if (getFailureReason() != null) sb.append("FailureReason: ").append(getFailureReason()).append(","); if (getClientRequestToken() != null) sb.append("ClientRequestToken: ").append(getClientRequestToken()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof SendPipelineExecutionStepFailureRequest == false) return false; SendPipelineExecutionStepFailureRequest other = (SendPipelineExecutionStepFailureRequest) obj; if (other.getCallbackToken() == null ^ this.getCallbackToken() == null) return false; if (other.getCallbackToken() != null && other.getCallbackToken().equals(this.getCallbackToken()) == false) return false; if (other.getFailureReason() == null ^ this.getFailureReason() == null) return false; if (other.getFailureReason() != null && other.getFailureReason().equals(this.getFailureReason()) == false) return false; if (other.getClientRequestToken() == null ^ this.getClientRequestToken() == null) return false; if (other.getClientRequestToken() != null && other.getClientRequestToken().equals(this.getClientRequestToken()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getCallbackToken() == null) ? 0 : getCallbackToken().hashCode()); hashCode = prime * hashCode + ((getFailureReason() == null) ? 0 : getFailureReason().hashCode()); hashCode = prime * hashCode + ((getClientRequestToken() == null) ? 0 : getClientRequestToken().hashCode()); return hashCode; } @Override public SendPipelineExecutionStepFailureRequest clone() { return (SendPipelineExecutionStepFailureRequest) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy