
com.amazonaws.services.sagemakergeospatial.model.ExportEarthObservationJobRequest Maven / Gradle / Ivy
/*
* 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.sagemakergeospatial.model;
import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.AmazonWebServiceRequest;
/**
*
* @see AWS API Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class ExportEarthObservationJobRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {
/**
*
* The input Amazon Resource Name (ARN) of the Earth Observation job being exported.
*
*/
private String arn;
/**
*
* The Amazon Resource Name (ARN) of the IAM role that you specified for the job.
*
*/
private String executionRoleArn;
/**
*
* The source images provided to the Earth Observation job being exported.
*
*/
private Boolean exportSourceImages;
/**
*
* An object containing information about the output file.
*
*/
private OutputConfigInput outputConfig;
/**
*
* The input Amazon Resource Name (ARN) of the Earth Observation job being exported.
*
*
* @param arn
* The input Amazon Resource Name (ARN) of the Earth Observation job being exported.
*/
public void setArn(String arn) {
this.arn = arn;
}
/**
*
* The input Amazon Resource Name (ARN) of the Earth Observation job being exported.
*
*
* @return The input Amazon Resource Name (ARN) of the Earth Observation job being exported.
*/
public String getArn() {
return this.arn;
}
/**
*
* The input Amazon Resource Name (ARN) of the Earth Observation job being exported.
*
*
* @param arn
* The input Amazon Resource Name (ARN) of the Earth Observation job being exported.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ExportEarthObservationJobRequest withArn(String arn) {
setArn(arn);
return this;
}
/**
*
* The Amazon Resource Name (ARN) of the IAM role that you specified for the job.
*
*
* @param executionRoleArn
* The Amazon Resource Name (ARN) of the IAM role that you specified for the job.
*/
public void setExecutionRoleArn(String executionRoleArn) {
this.executionRoleArn = executionRoleArn;
}
/**
*
* The Amazon Resource Name (ARN) of the IAM role that you specified for the job.
*
*
* @return The Amazon Resource Name (ARN) of the IAM role that you specified for the job.
*/
public String getExecutionRoleArn() {
return this.executionRoleArn;
}
/**
*
* The Amazon Resource Name (ARN) of the IAM role that you specified for the job.
*
*
* @param executionRoleArn
* The Amazon Resource Name (ARN) of the IAM role that you specified for the job.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ExportEarthObservationJobRequest withExecutionRoleArn(String executionRoleArn) {
setExecutionRoleArn(executionRoleArn);
return this;
}
/**
*
* The source images provided to the Earth Observation job being exported.
*
*
* @param exportSourceImages
* The source images provided to the Earth Observation job being exported.
*/
public void setExportSourceImages(Boolean exportSourceImages) {
this.exportSourceImages = exportSourceImages;
}
/**
*
* The source images provided to the Earth Observation job being exported.
*
*
* @return The source images provided to the Earth Observation job being exported.
*/
public Boolean getExportSourceImages() {
return this.exportSourceImages;
}
/**
*
* The source images provided to the Earth Observation job being exported.
*
*
* @param exportSourceImages
* The source images provided to the Earth Observation job being exported.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ExportEarthObservationJobRequest withExportSourceImages(Boolean exportSourceImages) {
setExportSourceImages(exportSourceImages);
return this;
}
/**
*
* The source images provided to the Earth Observation job being exported.
*
*
* @return The source images provided to the Earth Observation job being exported.
*/
public Boolean isExportSourceImages() {
return this.exportSourceImages;
}
/**
*
* An object containing information about the output file.
*
*
* @param outputConfig
* An object containing information about the output file.
*/
public void setOutputConfig(OutputConfigInput outputConfig) {
this.outputConfig = outputConfig;
}
/**
*
* An object containing information about the output file.
*
*
* @return An object containing information about the output file.
*/
public OutputConfigInput getOutputConfig() {
return this.outputConfig;
}
/**
*
* An object containing information about the output file.
*
*
* @param outputConfig
* An object containing information about the output file.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ExportEarthObservationJobRequest withOutputConfig(OutputConfigInput outputConfig) {
setOutputConfig(outputConfig);
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 (getArn() != null)
sb.append("Arn: ").append(getArn()).append(",");
if (getExecutionRoleArn() != null)
sb.append("ExecutionRoleArn: ").append(getExecutionRoleArn()).append(",");
if (getExportSourceImages() != null)
sb.append("ExportSourceImages: ").append(getExportSourceImages()).append(",");
if (getOutputConfig() != null)
sb.append("OutputConfig: ").append(getOutputConfig());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof ExportEarthObservationJobRequest == false)
return false;
ExportEarthObservationJobRequest other = (ExportEarthObservationJobRequest) obj;
if (other.getArn() == null ^ this.getArn() == null)
return false;
if (other.getArn() != null && other.getArn().equals(this.getArn()) == false)
return false;
if (other.getExecutionRoleArn() == null ^ this.getExecutionRoleArn() == null)
return false;
if (other.getExecutionRoleArn() != null && other.getExecutionRoleArn().equals(this.getExecutionRoleArn()) == false)
return false;
if (other.getExportSourceImages() == null ^ this.getExportSourceImages() == null)
return false;
if (other.getExportSourceImages() != null && other.getExportSourceImages().equals(this.getExportSourceImages()) == false)
return false;
if (other.getOutputConfig() == null ^ this.getOutputConfig() == null)
return false;
if (other.getOutputConfig() != null && other.getOutputConfig().equals(this.getOutputConfig()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getArn() == null) ? 0 : getArn().hashCode());
hashCode = prime * hashCode + ((getExecutionRoleArn() == null) ? 0 : getExecutionRoleArn().hashCode());
hashCode = prime * hashCode + ((getExportSourceImages() == null) ? 0 : getExportSourceImages().hashCode());
hashCode = prime * hashCode + ((getOutputConfig() == null) ? 0 : getOutputConfig().hashCode());
return hashCode;
}
@Override
public ExportEarthObservationJobRequest clone() {
return (ExportEarthObservationJobRequest) super.clone();
}
}