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

com.amazonaws.services.apptest.model.InputFile Maven / Gradle / Ivy

Go to download

The AWS Java SDK for AWS Mainframe Modernization Application Testing module holds the client classes that are used for communicating with AWS Mainframe Modernization Application Testing 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.apptest.model;

import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * 

* Specifies the input file. *

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

* The source location of the input file. *

*/ private String sourceLocation; /** *

* The target location of the input file. *

*/ private String targetLocation; /** *

* The file metadata of the input file. *

*/ private FileMetadata fileMetadata; /** *

* The source location of the input file. *

* * @param sourceLocation * The source location of the input file. */ public void setSourceLocation(String sourceLocation) { this.sourceLocation = sourceLocation; } /** *

* The source location of the input file. *

* * @return The source location of the input file. */ public String getSourceLocation() { return this.sourceLocation; } /** *

* The source location of the input file. *

* * @param sourceLocation * The source location of the input file. * @return Returns a reference to this object so that method calls can be chained together. */ public InputFile withSourceLocation(String sourceLocation) { setSourceLocation(sourceLocation); return this; } /** *

* The target location of the input file. *

* * @param targetLocation * The target location of the input file. */ public void setTargetLocation(String targetLocation) { this.targetLocation = targetLocation; } /** *

* The target location of the input file. *

* * @return The target location of the input file. */ public String getTargetLocation() { return this.targetLocation; } /** *

* The target location of the input file. *

* * @param targetLocation * The target location of the input file. * @return Returns a reference to this object so that method calls can be chained together. */ public InputFile withTargetLocation(String targetLocation) { setTargetLocation(targetLocation); return this; } /** *

* The file metadata of the input file. *

* * @param fileMetadata * The file metadata of the input file. */ public void setFileMetadata(FileMetadata fileMetadata) { this.fileMetadata = fileMetadata; } /** *

* The file metadata of the input file. *

* * @return The file metadata of the input file. */ public FileMetadata getFileMetadata() { return this.fileMetadata; } /** *

* The file metadata of the input file. *

* * @param fileMetadata * The file metadata of the input file. * @return Returns a reference to this object so that method calls can be chained together. */ public InputFile withFileMetadata(FileMetadata fileMetadata) { setFileMetadata(fileMetadata); 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 (getSourceLocation() != null) sb.append("SourceLocation: ").append(getSourceLocation()).append(","); if (getTargetLocation() != null) sb.append("TargetLocation: ").append(getTargetLocation()).append(","); if (getFileMetadata() != null) sb.append("FileMetadata: ").append(getFileMetadata()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof InputFile == false) return false; InputFile other = (InputFile) obj; if (other.getSourceLocation() == null ^ this.getSourceLocation() == null) return false; if (other.getSourceLocation() != null && other.getSourceLocation().equals(this.getSourceLocation()) == false) return false; if (other.getTargetLocation() == null ^ this.getTargetLocation() == null) return false; if (other.getTargetLocation() != null && other.getTargetLocation().equals(this.getTargetLocation()) == false) return false; if (other.getFileMetadata() == null ^ this.getFileMetadata() == null) return false; if (other.getFileMetadata() != null && other.getFileMetadata().equals(this.getFileMetadata()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getSourceLocation() == null) ? 0 : getSourceLocation().hashCode()); hashCode = prime * hashCode + ((getTargetLocation() == null) ? 0 : getTargetLocation().hashCode()); hashCode = prime * hashCode + ((getFileMetadata() == null) ? 0 : getFileMetadata().hashCode()); return hashCode; } @Override public InputFile clone() { try { return (InputFile) 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.apptest.model.transform.InputFileMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy