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

com.amazonaws.services.b2bi.model.EdiConfiguration 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;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * 

* Specifies the details for the EDI (electronic data interchange) transformation. *

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

* Returns the type of the capability. Currently, only edi is supported. *

*/ private EdiType type; /** *

* Contains the Amazon S3 bucket and prefix for the location of the input file, which is contained in an * S3Location object. *

*/ private S3Location inputLocation; /** *

* Contains the Amazon S3 bucket and prefix for the location of the output file, which is contained in an * S3Location object. *

*/ private S3Location outputLocation; /** *

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

*/ private String transformerId; /** *

* Returns the type of the capability. Currently, only edi is supported. *

* * @param type * Returns the type of the capability. Currently, only edi is supported. */ public void setType(EdiType type) { this.type = type; } /** *

* Returns the type of the capability. Currently, only edi is supported. *

* * @return Returns the type of the capability. Currently, only edi is supported. */ public EdiType getType() { return this.type; } /** *

* Returns the type of the capability. Currently, only edi is supported. *

* * @param type * Returns the type of the capability. Currently, only edi is supported. * @return Returns a reference to this object so that method calls can be chained together. */ public EdiConfiguration withType(EdiType type) { setType(type); return this; } /** *

* Contains the Amazon S3 bucket and prefix for the location of the input file, which is contained in an * S3Location object. *

* * @param inputLocation * Contains the Amazon S3 bucket and prefix for the location of the input file, which is contained in an * S3Location object. */ public void setInputLocation(S3Location inputLocation) { this.inputLocation = inputLocation; } /** *

* Contains the Amazon S3 bucket and prefix for the location of the input file, which is contained in an * S3Location object. *

* * @return Contains the Amazon S3 bucket and prefix for the location of the input file, which is contained in an * S3Location object. */ public S3Location getInputLocation() { return this.inputLocation; } /** *

* Contains the Amazon S3 bucket and prefix for the location of the input file, which is contained in an * S3Location object. *

* * @param inputLocation * Contains the Amazon S3 bucket and prefix for the location of the input file, which is contained in an * S3Location object. * @return Returns a reference to this object so that method calls can be chained together. */ public EdiConfiguration withInputLocation(S3Location inputLocation) { setInputLocation(inputLocation); return this; } /** *

* Contains the Amazon S3 bucket and prefix for the location of the output file, which is contained in an * S3Location object. *

* * @param outputLocation * Contains the Amazon S3 bucket and prefix for the location of the output file, which is contained in an * S3Location object. */ public void setOutputLocation(S3Location outputLocation) { this.outputLocation = outputLocation; } /** *

* Contains the Amazon S3 bucket and prefix for the location of the output file, which is contained in an * S3Location object. *

* * @return Contains the Amazon S3 bucket and prefix for the location of the output file, which is contained in an * S3Location object. */ public S3Location getOutputLocation() { return this.outputLocation; } /** *

* Contains the Amazon S3 bucket and prefix for the location of the output file, which is contained in an * S3Location object. *

* * @param outputLocation * Contains the Amazon S3 bucket and prefix for the location of the output file, which is contained in an * S3Location object. * @return Returns a reference to this object so that method calls can be chained together. */ public EdiConfiguration withOutputLocation(S3Location outputLocation) { setOutputLocation(outputLocation); return this; } /** *

* 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 EdiConfiguration withTransformerId(String transformerId) { setTransformerId(transformerId); 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 (getType() != null) sb.append("Type: ").append(getType()).append(","); if (getInputLocation() != null) sb.append("InputLocation: ").append(getInputLocation()).append(","); if (getOutputLocation() != null) sb.append("OutputLocation: ").append(getOutputLocation()).append(","); if (getTransformerId() != null) sb.append("TransformerId: ").append(getTransformerId()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof EdiConfiguration == false) return false; EdiConfiguration other = (EdiConfiguration) obj; if (other.getType() == null ^ this.getType() == null) return false; if (other.getType() != null && other.getType().equals(this.getType()) == false) return false; if (other.getInputLocation() == null ^ this.getInputLocation() == null) return false; if (other.getInputLocation() != null && other.getInputLocation().equals(this.getInputLocation()) == false) return false; if (other.getOutputLocation() == null ^ this.getOutputLocation() == null) return false; if (other.getOutputLocation() != null && other.getOutputLocation().equals(this.getOutputLocation()) == false) return false; if (other.getTransformerId() == null ^ this.getTransformerId() == null) return false; if (other.getTransformerId() != null && other.getTransformerId().equals(this.getTransformerId()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getType() == null) ? 0 : getType().hashCode()); hashCode = prime * hashCode + ((getInputLocation() == null) ? 0 : getInputLocation().hashCode()); hashCode = prime * hashCode + ((getOutputLocation() == null) ? 0 : getOutputLocation().hashCode()); hashCode = prime * hashCode + ((getTransformerId() == null) ? 0 : getTransformerId().hashCode()); return hashCode; } @Override public EdiConfiguration clone() { try { return (EdiConfiguration) 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.b2bi.model.transform.EdiConfigurationMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy