com.amazonaws.services.apptest.model.BatchStepOutput Maven / Gradle / Ivy
Show all versions of aws-java-sdk-apptest Show documentation
/*
* 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;
/**
*
* Defines a batch step output.
*
*
* @see AWS API
* Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class BatchStepOutput implements Serializable, Cloneable, StructuredPojo {
/**
*
* The data set export location of the batch step output.
*
*/
private String dataSetExportLocation;
/**
*
* The Database Migration Service (DMS) output location of the batch step output.
*
*/
private String dmsOutputLocation;
/**
*
* The data set details of the batch step output.
*
*/
private java.util.List dataSetDetails;
/**
*
* The data set export location of the batch step output.
*
*
* @param dataSetExportLocation
* The data set export location of the batch step output.
*/
public void setDataSetExportLocation(String dataSetExportLocation) {
this.dataSetExportLocation = dataSetExportLocation;
}
/**
*
* The data set export location of the batch step output.
*
*
* @return The data set export location of the batch step output.
*/
public String getDataSetExportLocation() {
return this.dataSetExportLocation;
}
/**
*
* The data set export location of the batch step output.
*
*
* @param dataSetExportLocation
* The data set export location of the batch step output.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public BatchStepOutput withDataSetExportLocation(String dataSetExportLocation) {
setDataSetExportLocation(dataSetExportLocation);
return this;
}
/**
*
* The Database Migration Service (DMS) output location of the batch step output.
*
*
* @param dmsOutputLocation
* The Database Migration Service (DMS) output location of the batch step output.
*/
public void setDmsOutputLocation(String dmsOutputLocation) {
this.dmsOutputLocation = dmsOutputLocation;
}
/**
*
* The Database Migration Service (DMS) output location of the batch step output.
*
*
* @return The Database Migration Service (DMS) output location of the batch step output.
*/
public String getDmsOutputLocation() {
return this.dmsOutputLocation;
}
/**
*
* The Database Migration Service (DMS) output location of the batch step output.
*
*
* @param dmsOutputLocation
* The Database Migration Service (DMS) output location of the batch step output.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public BatchStepOutput withDmsOutputLocation(String dmsOutputLocation) {
setDmsOutputLocation(dmsOutputLocation);
return this;
}
/**
*
* The data set details of the batch step output.
*
*
* @return The data set details of the batch step output.
*/
public java.util.List getDataSetDetails() {
return dataSetDetails;
}
/**
*
* The data set details of the batch step output.
*
*
* @param dataSetDetails
* The data set details of the batch step output.
*/
public void setDataSetDetails(java.util.Collection dataSetDetails) {
if (dataSetDetails == null) {
this.dataSetDetails = null;
return;
}
this.dataSetDetails = new java.util.ArrayList(dataSetDetails);
}
/**
*
* The data set details of the batch step output.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setDataSetDetails(java.util.Collection)} or {@link #withDataSetDetails(java.util.Collection)} if you want
* to override the existing values.
*
*
* @param dataSetDetails
* The data set details of the batch step output.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public BatchStepOutput withDataSetDetails(DataSet... dataSetDetails) {
if (this.dataSetDetails == null) {
setDataSetDetails(new java.util.ArrayList(dataSetDetails.length));
}
for (DataSet ele : dataSetDetails) {
this.dataSetDetails.add(ele);
}
return this;
}
/**
*
* The data set details of the batch step output.
*
*
* @param dataSetDetails
* The data set details of the batch step output.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public BatchStepOutput withDataSetDetails(java.util.Collection dataSetDetails) {
setDataSetDetails(dataSetDetails);
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 (getDataSetExportLocation() != null)
sb.append("DataSetExportLocation: ").append(getDataSetExportLocation()).append(",");
if (getDmsOutputLocation() != null)
sb.append("DmsOutputLocation: ").append(getDmsOutputLocation()).append(",");
if (getDataSetDetails() != null)
sb.append("DataSetDetails: ").append(getDataSetDetails());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof BatchStepOutput == false)
return false;
BatchStepOutput other = (BatchStepOutput) obj;
if (other.getDataSetExportLocation() == null ^ this.getDataSetExportLocation() == null)
return false;
if (other.getDataSetExportLocation() != null && other.getDataSetExportLocation().equals(this.getDataSetExportLocation()) == false)
return false;
if (other.getDmsOutputLocation() == null ^ this.getDmsOutputLocation() == null)
return false;
if (other.getDmsOutputLocation() != null && other.getDmsOutputLocation().equals(this.getDmsOutputLocation()) == false)
return false;
if (other.getDataSetDetails() == null ^ this.getDataSetDetails() == null)
return false;
if (other.getDataSetDetails() != null && other.getDataSetDetails().equals(this.getDataSetDetails()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getDataSetExportLocation() == null) ? 0 : getDataSetExportLocation().hashCode());
hashCode = prime * hashCode + ((getDmsOutputLocation() == null) ? 0 : getDmsOutputLocation().hashCode());
hashCode = prime * hashCode + ((getDataSetDetails() == null) ? 0 : getDataSetDetails().hashCode());
return hashCode;
}
@Override
public BatchStepOutput clone() {
try {
return (BatchStepOutput) 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.BatchStepOutputMarshaller.getInstance().marshall(this, protocolMarshaller);
}
}