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

com.amazonaws.services.b2bi.model.UpdateTransformerResult 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

There is a newer version: 1.12.778
Show 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 UpdateTransformerResult extends com.amazonaws.AmazonWebServiceResult implements Serializable, Cloneable {

    /**
     * 

* Returns the system-assigned unique identifier for the transformer. *

*/ private String transformerId; /** *

* Returns an Amazon Resource Name (ARN) for a specific Amazon Web Services resource, such as a capability, * partnership, profile, or transformer. *

*/ private String transformerArn; /** *

* Returns the name of the transformer. *

*/ private String name; /** *

* Returns that the currently supported file formats for EDI transformations are JSON and * XML. *

*/ private String fileFormat; /** *

* Returns the mapping template for the transformer. This template is used to map the parsed EDI file using JSONata * or XSLT. *

*/ private String mappingTemplate; /** *

* Returns the state of the newly created transformer. The transformer can be either active or * inactive. For the transformer to be used in a capability, its status must active. *

*/ private String status; /** *

* Returns the details for the EDI standard that is being used for the transformer. Currently, only X12 is * supported. X12 is a set of standards and corresponding messages that define specific business documents. *

*/ private EdiType ediType; /** *

* Returns a sample EDI document that is used by a transformer as a guide for processing the EDI data. *

*/ private String sampleDocument; /** *

* Returns a timestamp for creation date and time of the transformer. *

*/ private java.util.Date createdAt; /** *

* Returns a timestamp for last time the transformer was modified. *

*/ private java.util.Date modifiedAt; /** *

* Returns the system-assigned unique identifier for the transformer. *

* * @param transformerId * Returns the system-assigned unique identifier for the transformer. */ public void setTransformerId(String transformerId) { this.transformerId = transformerId; } /** *

* Returns the system-assigned unique identifier for the transformer. *

* * @return Returns the system-assigned unique identifier for the transformer. */ public String getTransformerId() { return this.transformerId; } /** *

* Returns the system-assigned unique identifier for the transformer. *

* * @param transformerId * Returns the system-assigned unique identifier for the transformer. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateTransformerResult withTransformerId(String transformerId) { setTransformerId(transformerId); return this; } /** *

* Returns an Amazon Resource Name (ARN) for a specific Amazon Web Services resource, such as a capability, * partnership, profile, or transformer. *

* * @param transformerArn * Returns an Amazon Resource Name (ARN) for a specific Amazon Web Services resource, such as a capability, * partnership, profile, or transformer. */ public void setTransformerArn(String transformerArn) { this.transformerArn = transformerArn; } /** *

* Returns an Amazon Resource Name (ARN) for a specific Amazon Web Services resource, such as a capability, * partnership, profile, or transformer. *

* * @return Returns an Amazon Resource Name (ARN) for a specific Amazon Web Services resource, such as a capability, * partnership, profile, or transformer. */ public String getTransformerArn() { return this.transformerArn; } /** *

* Returns an Amazon Resource Name (ARN) for a specific Amazon Web Services resource, such as a capability, * partnership, profile, or transformer. *

* * @param transformerArn * Returns an Amazon Resource Name (ARN) for a specific Amazon Web Services resource, such as a capability, * partnership, profile, or transformer. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateTransformerResult withTransformerArn(String transformerArn) { setTransformerArn(transformerArn); return this; } /** *

* Returns the name of the transformer. *

* * @param name * Returns the name of the transformer. */ public void setName(String name) { this.name = name; } /** *

* Returns the name of the transformer. *

* * @return Returns the name of the transformer. */ public String getName() { return this.name; } /** *

* Returns the name of the transformer. *

* * @param name * Returns the name of the transformer. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateTransformerResult withName(String name) { setName(name); return this; } /** *

* Returns that the currently supported file formats for EDI transformations are JSON and * XML. *

* * @param fileFormat * Returns that the currently supported file formats for EDI transformations are JSON and * XML. * @see FileFormat */ public void setFileFormat(String fileFormat) { this.fileFormat = fileFormat; } /** *

* Returns that the currently supported file formats for EDI transformations are JSON and * XML. *

* * @return Returns that the currently supported file formats for EDI transformations are JSON and * XML. * @see FileFormat */ public String getFileFormat() { return this.fileFormat; } /** *

* Returns that the currently supported file formats for EDI transformations are JSON and * XML. *

* * @param fileFormat * Returns that the currently supported file formats for EDI transformations are JSON and * XML. * @return Returns a reference to this object so that method calls can be chained together. * @see FileFormat */ public UpdateTransformerResult withFileFormat(String fileFormat) { setFileFormat(fileFormat); return this; } /** *

* Returns that the currently supported file formats for EDI transformations are JSON and * XML. *

* * @param fileFormat * Returns that the currently supported file formats for EDI transformations are JSON and * XML. * @return Returns a reference to this object so that method calls can be chained together. * @see FileFormat */ public UpdateTransformerResult withFileFormat(FileFormat fileFormat) { this.fileFormat = fileFormat.toString(); return this; } /** *

* Returns the mapping template for the transformer. This template is used to map the parsed EDI file using JSONata * or XSLT. *

* * @param mappingTemplate * Returns the mapping template for the transformer. This template is used to map the parsed EDI file using * JSONata or XSLT. */ public void setMappingTemplate(String mappingTemplate) { this.mappingTemplate = mappingTemplate; } /** *

* Returns the mapping template for the transformer. This template is used to map the parsed EDI file using JSONata * or XSLT. *

* * @return Returns the mapping template for the transformer. This template is used to map the parsed EDI file using * JSONata or XSLT. */ public String getMappingTemplate() { return this.mappingTemplate; } /** *

* Returns the mapping template for the transformer. This template is used to map the parsed EDI file using JSONata * or XSLT. *

* * @param mappingTemplate * Returns the mapping template for the transformer. This template is used to map the parsed EDI file using * JSONata or XSLT. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateTransformerResult withMappingTemplate(String mappingTemplate) { setMappingTemplate(mappingTemplate); return this; } /** *

* Returns the state of the newly created transformer. The transformer can be either active or * inactive. For the transformer to be used in a capability, its status must active. *

* * @param status * Returns the state of the newly created transformer. The transformer can be either active or * inactive. For the transformer to be used in a capability, its status must active * . * @see TransformerStatus */ public void setStatus(String status) { this.status = status; } /** *

* Returns the state of the newly created transformer. The transformer can be either active or * inactive. For the transformer to be used in a capability, its status must active. *

* * @return Returns the state of the newly created transformer. The transformer can be either active or * inactive. For the transformer to be used in a capability, its status must * active. * @see TransformerStatus */ public String getStatus() { return this.status; } /** *

* Returns the state of the newly created transformer. The transformer can be either active or * inactive. For the transformer to be used in a capability, its status must active. *

* * @param status * Returns the state of the newly created transformer. The transformer can be either active or * inactive. For the transformer to be used in a capability, its status must active * . * @return Returns a reference to this object so that method calls can be chained together. * @see TransformerStatus */ public UpdateTransformerResult withStatus(String status) { setStatus(status); return this; } /** *

* Returns the state of the newly created transformer. The transformer can be either active or * inactive. For the transformer to be used in a capability, its status must active. *

* * @param status * Returns the state of the newly created transformer. The transformer can be either active or * inactive. For the transformer to be used in a capability, its status must active * . * @return Returns a reference to this object so that method calls can be chained together. * @see TransformerStatus */ public UpdateTransformerResult withStatus(TransformerStatus status) { this.status = status.toString(); return this; } /** *

* Returns the details for the EDI standard that is being used for the transformer. Currently, only X12 is * supported. X12 is a set of standards and corresponding messages that define specific business documents. *

* * @param ediType * Returns the details for the EDI standard that is being used for the transformer. Currently, only X12 is * supported. X12 is a set of standards and corresponding messages that define specific business documents. */ public void setEdiType(EdiType ediType) { this.ediType = ediType; } /** *

* Returns the details for the EDI standard that is being used for the transformer. Currently, only X12 is * supported. X12 is a set of standards and corresponding messages that define specific business documents. *

* * @return Returns the details for the EDI standard that is being used for the transformer. Currently, only X12 is * supported. X12 is a set of standards and corresponding messages that define specific business documents. */ public EdiType getEdiType() { return this.ediType; } /** *

* Returns the details for the EDI standard that is being used for the transformer. Currently, only X12 is * supported. X12 is a set of standards and corresponding messages that define specific business documents. *

* * @param ediType * Returns the details for the EDI standard that is being used for the transformer. Currently, only X12 is * supported. X12 is a set of standards and corresponding messages that define specific business documents. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateTransformerResult withEdiType(EdiType ediType) { setEdiType(ediType); return this; } /** *

* Returns a sample EDI document that is used by a transformer as a guide for processing the EDI data. *

* * @param sampleDocument * Returns a sample EDI document that is used by a transformer as a guide for processing the EDI data. */ public void setSampleDocument(String sampleDocument) { this.sampleDocument = sampleDocument; } /** *

* Returns a sample EDI document that is used by a transformer as a guide for processing the EDI data. *

* * @return Returns a sample EDI document that is used by a transformer as a guide for processing the EDI data. */ public String getSampleDocument() { return this.sampleDocument; } /** *

* Returns a sample EDI document that is used by a transformer as a guide for processing the EDI data. *

* * @param sampleDocument * Returns a sample EDI document that is used by a transformer as a guide for processing the EDI data. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateTransformerResult withSampleDocument(String sampleDocument) { setSampleDocument(sampleDocument); return this; } /** *

* Returns a timestamp for creation date and time of the transformer. *

* * @param createdAt * Returns a timestamp for creation date and time of the transformer. */ public void setCreatedAt(java.util.Date createdAt) { this.createdAt = createdAt; } /** *

* Returns a timestamp for creation date and time of the transformer. *

* * @return Returns a timestamp for creation date and time of the transformer. */ public java.util.Date getCreatedAt() { return this.createdAt; } /** *

* Returns a timestamp for creation date and time of the transformer. *

* * @param createdAt * Returns a timestamp for creation date and time of the transformer. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateTransformerResult withCreatedAt(java.util.Date createdAt) { setCreatedAt(createdAt); return this; } /** *

* Returns a timestamp for last time the transformer was modified. *

* * @param modifiedAt * Returns a timestamp for last time the transformer was modified. */ public void setModifiedAt(java.util.Date modifiedAt) { this.modifiedAt = modifiedAt; } /** *

* Returns a timestamp for last time the transformer was modified. *

* * @return Returns a timestamp for last time the transformer was modified. */ public java.util.Date getModifiedAt() { return this.modifiedAt; } /** *

* Returns a timestamp for last time the transformer was modified. *

* * @param modifiedAt * Returns a timestamp for last time the transformer was modified. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateTransformerResult withModifiedAt(java.util.Date modifiedAt) { setModifiedAt(modifiedAt); 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 (getTransformerId() != null) sb.append("TransformerId: ").append(getTransformerId()).append(","); if (getTransformerArn() != null) sb.append("TransformerArn: ").append(getTransformerArn()).append(","); if (getName() != null) sb.append("Name: ").append(getName()).append(","); if (getFileFormat() != null) sb.append("FileFormat: ").append(getFileFormat()).append(","); if (getMappingTemplate() != null) sb.append("MappingTemplate: ").append(getMappingTemplate()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()).append(","); if (getEdiType() != null) sb.append("EdiType: ").append(getEdiType()).append(","); if (getSampleDocument() != null) sb.append("SampleDocument: ").append(getSampleDocument()).append(","); if (getCreatedAt() != null) sb.append("CreatedAt: ").append(getCreatedAt()).append(","); if (getModifiedAt() != null) sb.append("ModifiedAt: ").append(getModifiedAt()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof UpdateTransformerResult == false) return false; UpdateTransformerResult other = (UpdateTransformerResult) obj; if (other.getTransformerId() == null ^ this.getTransformerId() == null) return false; if (other.getTransformerId() != null && other.getTransformerId().equals(this.getTransformerId()) == false) return false; if (other.getTransformerArn() == null ^ this.getTransformerArn() == null) return false; if (other.getTransformerArn() != null && other.getTransformerArn().equals(this.getTransformerArn()) == false) return false; if (other.getName() == null ^ this.getName() == null) return false; if (other.getName() != null && other.getName().equals(this.getName()) == false) return false; if (other.getFileFormat() == null ^ this.getFileFormat() == null) return false; if (other.getFileFormat() != null && other.getFileFormat().equals(this.getFileFormat()) == false) return false; if (other.getMappingTemplate() == null ^ this.getMappingTemplate() == null) return false; if (other.getMappingTemplate() != null && other.getMappingTemplate().equals(this.getMappingTemplate()) == 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.getEdiType() == null ^ this.getEdiType() == null) return false; if (other.getEdiType() != null && other.getEdiType().equals(this.getEdiType()) == false) return false; if (other.getSampleDocument() == null ^ this.getSampleDocument() == null) return false; if (other.getSampleDocument() != null && other.getSampleDocument().equals(this.getSampleDocument()) == false) return false; if (other.getCreatedAt() == null ^ this.getCreatedAt() == null) return false; if (other.getCreatedAt() != null && other.getCreatedAt().equals(this.getCreatedAt()) == false) return false; if (other.getModifiedAt() == null ^ this.getModifiedAt() == null) return false; if (other.getModifiedAt() != null && other.getModifiedAt().equals(this.getModifiedAt()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getTransformerId() == null) ? 0 : getTransformerId().hashCode()); hashCode = prime * hashCode + ((getTransformerArn() == null) ? 0 : getTransformerArn().hashCode()); hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getFileFormat() == null) ? 0 : getFileFormat().hashCode()); hashCode = prime * hashCode + ((getMappingTemplate() == null) ? 0 : getMappingTemplate().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getEdiType() == null) ? 0 : getEdiType().hashCode()); hashCode = prime * hashCode + ((getSampleDocument() == null) ? 0 : getSampleDocument().hashCode()); hashCode = prime * hashCode + ((getCreatedAt() == null) ? 0 : getCreatedAt().hashCode()); hashCode = prime * hashCode + ((getModifiedAt() == null) ? 0 : getModifiedAt().hashCode()); return hashCode; } @Override public UpdateTransformerResult clone() { try { return (UpdateTransformerResult) 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