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

com.amazonaws.services.b2bi.model.GetTransformerJobResult Maven / Gradle / Ivy

Go to download

The AWS Java SDK for AWS B2B Data Interchange module holds the client classes that are used for communicating with AWS B2B Data Interchange 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.b2bi.model;

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

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

    /**
     * 

* Returns the current state of the transformer job, either running, succeeded, or * failed. *

*/ private String status; /** *

* Returns the location for the output files. If the caller specified a directory for the output, then this contains * the full path to the output file, including the file name generated by the service. *

*/ private java.util.List outputFiles; /** *

* Returns an optional error message, which gets populated when the job is not run successfully. *

*/ private String message; /** *

* Returns the current state of the transformer job, either running, succeeded, or * failed. *

* * @param status * Returns the current state of the transformer job, either running, succeeded, or * failed. * @see TransformerJobStatus */ public void setStatus(String status) { this.status = status; } /** *

* Returns the current state of the transformer job, either running, succeeded, or * failed. *

* * @return Returns the current state of the transformer job, either running, succeeded, or * failed. * @see TransformerJobStatus */ public String getStatus() { return this.status; } /** *

* Returns the current state of the transformer job, either running, succeeded, or * failed. *

* * @param status * Returns the current state of the transformer job, either running, succeeded, or * failed. * @return Returns a reference to this object so that method calls can be chained together. * @see TransformerJobStatus */ public GetTransformerJobResult withStatus(String status) { setStatus(status); return this; } /** *

* Returns the current state of the transformer job, either running, succeeded, or * failed. *

* * @param status * Returns the current state of the transformer job, either running, succeeded, or * failed. * @return Returns a reference to this object so that method calls can be chained together. * @see TransformerJobStatus */ public GetTransformerJobResult withStatus(TransformerJobStatus status) { this.status = status.toString(); return this; } /** *

* Returns the location for the output files. If the caller specified a directory for the output, then this contains * the full path to the output file, including the file name generated by the service. *

* * @return Returns the location for the output files. If the caller specified a directory for the output, then this * contains the full path to the output file, including the file name generated by the service. */ public java.util.List getOutputFiles() { return outputFiles; } /** *

* Returns the location for the output files. If the caller specified a directory for the output, then this contains * the full path to the output file, including the file name generated by the service. *

* * @param outputFiles * Returns the location for the output files. If the caller specified a directory for the output, then this * contains the full path to the output file, including the file name generated by the service. */ public void setOutputFiles(java.util.Collection outputFiles) { if (outputFiles == null) { this.outputFiles = null; return; } this.outputFiles = new java.util.ArrayList(outputFiles); } /** *

* Returns the location for the output files. If the caller specified a directory for the output, then this contains * the full path to the output file, including the file name generated by the service. *

*

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setOutputFiles(java.util.Collection)} or {@link #withOutputFiles(java.util.Collection)} if you want to * override the existing values. *

* * @param outputFiles * Returns the location for the output files. If the caller specified a directory for the output, then this * contains the full path to the output file, including the file name generated by the service. * @return Returns a reference to this object so that method calls can be chained together. */ public GetTransformerJobResult withOutputFiles(S3Location... outputFiles) { if (this.outputFiles == null) { setOutputFiles(new java.util.ArrayList(outputFiles.length)); } for (S3Location ele : outputFiles) { this.outputFiles.add(ele); } return this; } /** *

* Returns the location for the output files. If the caller specified a directory for the output, then this contains * the full path to the output file, including the file name generated by the service. *

* * @param outputFiles * Returns the location for the output files. If the caller specified a directory for the output, then this * contains the full path to the output file, including the file name generated by the service. * @return Returns a reference to this object so that method calls can be chained together. */ public GetTransformerJobResult withOutputFiles(java.util.Collection outputFiles) { setOutputFiles(outputFiles); return this; } /** *

* Returns an optional error message, which gets populated when the job is not run successfully. *

* * @param message * Returns an optional error message, which gets populated when the job is not run successfully. */ public void setMessage(String message) { this.message = message; } /** *

* Returns an optional error message, which gets populated when the job is not run successfully. *

* * @return Returns an optional error message, which gets populated when the job is not run successfully. */ public String getMessage() { return this.message; } /** *

* Returns an optional error message, which gets populated when the job is not run successfully. *

* * @param message * Returns an optional error message, which gets populated when the job is not run successfully. * @return Returns a reference to this object so that method calls can be chained together. */ public GetTransformerJobResult withMessage(String message) { setMessage(message); 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 (getStatus() != null) sb.append("Status: ").append(getStatus()).append(","); if (getOutputFiles() != null) sb.append("OutputFiles: ").append(getOutputFiles()).append(","); if (getMessage() != null) sb.append("Message: ").append(getMessage()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof GetTransformerJobResult == false) return false; GetTransformerJobResult other = (GetTransformerJobResult) obj; if (other.getStatus() == null ^ this.getStatus() == null) return false; if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) return false; if (other.getOutputFiles() == null ^ this.getOutputFiles() == null) return false; if (other.getOutputFiles() != null && other.getOutputFiles().equals(this.getOutputFiles()) == false) return false; if (other.getMessage() == null ^ this.getMessage() == null) return false; if (other.getMessage() != null && other.getMessage().equals(this.getMessage()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getOutputFiles() == null) ? 0 : getOutputFiles().hashCode()); hashCode = prime * hashCode + ((getMessage() == null) ? 0 : getMessage().hashCode()); return hashCode; } @Override public GetTransformerJobResult clone() { try { return (GetTransformerJobResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy