
com.amazonaws.services.sagemakergeospatial.model.ExportVectorEnrichmentJobRequest 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 ExportVectorEnrichmentJobRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {
/**
*
* The Amazon Resource Name (ARN) of the Vector Enrichment job.
*
*/
private String arn;
/**
*
* The Amazon Resource Name (ARN) of the IAM rolewith permission to upload to the location in OutputConfig.
*
*/
private String executionRoleArn;
/**
*
* Output location information for exporting Vector Enrichment Job results.
*
*/
private ExportVectorEnrichmentJobOutputConfig outputConfig;
/**
*
* The Amazon Resource Name (ARN) of the Vector Enrichment job.
*
*
* @param arn
* The Amazon Resource Name (ARN) of the Vector Enrichment job.
*/
public void setArn(String arn) {
this.arn = arn;
}
/**
*
* The Amazon Resource Name (ARN) of the Vector Enrichment job.
*
*
* @return The Amazon Resource Name (ARN) of the Vector Enrichment job.
*/
public String getArn() {
return this.arn;
}
/**
*
* The Amazon Resource Name (ARN) of the Vector Enrichment job.
*
*
* @param arn
* The Amazon Resource Name (ARN) of the Vector Enrichment job.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ExportVectorEnrichmentJobRequest withArn(String arn) {
setArn(arn);
return this;
}
/**
*
* The Amazon Resource Name (ARN) of the IAM rolewith permission to upload to the location in OutputConfig.
*
*
* @param executionRoleArn
* The Amazon Resource Name (ARN) of the IAM rolewith permission to upload to the location in OutputConfig.
*/
public void setExecutionRoleArn(String executionRoleArn) {
this.executionRoleArn = executionRoleArn;
}
/**
*
* The Amazon Resource Name (ARN) of the IAM rolewith permission to upload to the location in OutputConfig.
*
*
* @return The Amazon Resource Name (ARN) of the IAM rolewith permission to upload to the location in OutputConfig.
*/
public String getExecutionRoleArn() {
return this.executionRoleArn;
}
/**
*
* The Amazon Resource Name (ARN) of the IAM rolewith permission to upload to the location in OutputConfig.
*
*
* @param executionRoleArn
* The Amazon Resource Name (ARN) of the IAM rolewith permission to upload to the location in OutputConfig.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ExportVectorEnrichmentJobRequest withExecutionRoleArn(String executionRoleArn) {
setExecutionRoleArn(executionRoleArn);
return this;
}
/**
*
* Output location information for exporting Vector Enrichment Job results.
*
*
* @param outputConfig
* Output location information for exporting Vector Enrichment Job results.
*/
public void setOutputConfig(ExportVectorEnrichmentJobOutputConfig outputConfig) {
this.outputConfig = outputConfig;
}
/**
*
* Output location information for exporting Vector Enrichment Job results.
*
*
* @return Output location information for exporting Vector Enrichment Job results.
*/
public ExportVectorEnrichmentJobOutputConfig getOutputConfig() {
return this.outputConfig;
}
/**
*
* Output location information for exporting Vector Enrichment Job results.
*
*
* @param outputConfig
* Output location information for exporting Vector Enrichment Job results.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ExportVectorEnrichmentJobRequest withOutputConfig(ExportVectorEnrichmentJobOutputConfig 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 (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 ExportVectorEnrichmentJobRequest == false)
return false;
ExportVectorEnrichmentJobRequest other = (ExportVectorEnrichmentJobRequest) 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.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 + ((getOutputConfig() == null) ? 0 : getOutputConfig().hashCode());
return hashCode;
}
@Override
public ExportVectorEnrichmentJobRequest clone() {
return (ExportVectorEnrichmentJobRequest) super.clone();
}
}