/* * Copyright 2018-2023 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.transfer.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Specifies the location for the file that's being processed. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class InputFileLocation implements Serializable, Cloneable, StructuredPojo { /** ** Specifies the details for the Amazon S3 file that's being copied or decrypted. *
*/ private S3InputFileLocation s3FileLocation; /** ** Specifies the details for the Amazon Elastic File System (Amazon EFS) file that's being decrypted. *
*/ private EfsFileLocation efsFileLocation; /** ** Specifies the details for the Amazon S3 file that's being copied or decrypted. *
* * @param s3FileLocation * Specifies the details for the Amazon S3 file that's being copied or decrypted. */ public void setS3FileLocation(S3InputFileLocation s3FileLocation) { this.s3FileLocation = s3FileLocation; } /** ** Specifies the details for the Amazon S3 file that's being copied or decrypted. *
* * @return Specifies the details for the Amazon S3 file that's being copied or decrypted. */ public S3InputFileLocation getS3FileLocation() { return this.s3FileLocation; } /** ** Specifies the details for the Amazon S3 file that's being copied or decrypted. *
* * @param s3FileLocation * Specifies the details for the Amazon S3 file that's being copied or decrypted. * @return Returns a reference to this object so that method calls can be chained together. */ public InputFileLocation withS3FileLocation(S3InputFileLocation s3FileLocation) { setS3FileLocation(s3FileLocation); return this; } /** ** Specifies the details for the Amazon Elastic File System (Amazon EFS) file that's being decrypted. *
* * @param efsFileLocation * Specifies the details for the Amazon Elastic File System (Amazon EFS) file that's being decrypted. */ public void setEfsFileLocation(EfsFileLocation efsFileLocation) { this.efsFileLocation = efsFileLocation; } /** ** Specifies the details for the Amazon Elastic File System (Amazon EFS) file that's being decrypted. *
* * @return Specifies the details for the Amazon Elastic File System (Amazon EFS) file that's being decrypted. */ public EfsFileLocation getEfsFileLocation() { return this.efsFileLocation; } /** ** Specifies the details for the Amazon Elastic File System (Amazon EFS) file that's being decrypted. *
* * @param efsFileLocation * Specifies the details for the Amazon Elastic File System (Amazon EFS) file that's being decrypted. * @return Returns a reference to this object so that method calls can be chained together. */ public InputFileLocation withEfsFileLocation(EfsFileLocation efsFileLocation) { setEfsFileLocation(efsFileLocation); 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 (getS3FileLocation() != null) sb.append("S3FileLocation: ").append(getS3FileLocation()).append(","); if (getEfsFileLocation() != null) sb.append("EfsFileLocation: ").append(getEfsFileLocation()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof InputFileLocation == false) return false; InputFileLocation other = (InputFileLocation) obj; if (other.getS3FileLocation() == null ^ this.getS3FileLocation() == null) return false; if (other.getS3FileLocation() != null && other.getS3FileLocation().equals(this.getS3FileLocation()) == false) return false; if (other.getEfsFileLocation() == null ^ this.getEfsFileLocation() == null) return false; if (other.getEfsFileLocation() != null && other.getEfsFileLocation().equals(this.getEfsFileLocation()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getS3FileLocation() == null) ? 0 : getS3FileLocation().hashCode()); hashCode = prime * hashCode + ((getEfsFileLocation() == null) ? 0 : getEfsFileLocation().hashCode()); return hashCode; } @Override public InputFileLocation clone() { try { return (InputFileLocation) 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.transfer.model.transform.InputFileLocationMarshaller.getInstance().marshall(this, protocolMarshaller); } }