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

com.amazonaws.services.frauddetector.model.CreateBatchImportJobRequest Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Amazon Fraud Detector module holds the client classes that are used for communicating with Amazon Fraud Detector 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.frauddetector.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 CreateBatchImportJobRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {

    /**
     * 

* The ID of the batch import job. The ID cannot be of a past job, unless the job exists in * CREATE_FAILED state. *

*/ private String jobId; /** *

* The URI that points to the Amazon S3 location of your data file. *

*/ private String inputPath; /** *

* The URI that points to the Amazon S3 location for storing your results. *

*/ private String outputPath; /** *

* The name of the event type. *

*/ private String eventTypeName; /** *

* The ARN of the IAM role created for Amazon S3 bucket that holds your data file. *

*

* The IAM role must have read permissions to your input S3 bucket and write permissions to your output S3 bucket. * For more information about bucket permissions, see User policy examples in * the Amazon S3 User Guide. *

*/ private String iamRoleArn; /** *

* A collection of key-value pairs associated with this request. *

*/ private java.util.List tags; /** *

* The ID of the batch import job. The ID cannot be of a past job, unless the job exists in * CREATE_FAILED state. *

* * @param jobId * The ID of the batch import job. The ID cannot be of a past job, unless the job exists in * CREATE_FAILED state. */ public void setJobId(String jobId) { this.jobId = jobId; } /** *

* The ID of the batch import job. The ID cannot be of a past job, unless the job exists in * CREATE_FAILED state. *

* * @return The ID of the batch import job. The ID cannot be of a past job, unless the job exists in * CREATE_FAILED state. */ public String getJobId() { return this.jobId; } /** *

* The ID of the batch import job. The ID cannot be of a past job, unless the job exists in * CREATE_FAILED state. *

* * @param jobId * The ID of the batch import job. The ID cannot be of a past job, unless the job exists in * CREATE_FAILED state. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateBatchImportJobRequest withJobId(String jobId) { setJobId(jobId); return this; } /** *

* The URI that points to the Amazon S3 location of your data file. *

* * @param inputPath * The URI that points to the Amazon S3 location of your data file. */ public void setInputPath(String inputPath) { this.inputPath = inputPath; } /** *

* The URI that points to the Amazon S3 location of your data file. *

* * @return The URI that points to the Amazon S3 location of your data file. */ public String getInputPath() { return this.inputPath; } /** *

* The URI that points to the Amazon S3 location of your data file. *

* * @param inputPath * The URI that points to the Amazon S3 location of your data file. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateBatchImportJobRequest withInputPath(String inputPath) { setInputPath(inputPath); return this; } /** *

* The URI that points to the Amazon S3 location for storing your results. *

* * @param outputPath * The URI that points to the Amazon S3 location for storing your results. */ public void setOutputPath(String outputPath) { this.outputPath = outputPath; } /** *

* The URI that points to the Amazon S3 location for storing your results. *

* * @return The URI that points to the Amazon S3 location for storing your results. */ public String getOutputPath() { return this.outputPath; } /** *

* The URI that points to the Amazon S3 location for storing your results. *

* * @param outputPath * The URI that points to the Amazon S3 location for storing your results. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateBatchImportJobRequest withOutputPath(String outputPath) { setOutputPath(outputPath); return this; } /** *

* The name of the event type. *

* * @param eventTypeName * The name of the event type. */ public void setEventTypeName(String eventTypeName) { this.eventTypeName = eventTypeName; } /** *

* The name of the event type. *

* * @return The name of the event type. */ public String getEventTypeName() { return this.eventTypeName; } /** *

* The name of the event type. *

* * @param eventTypeName * The name of the event type. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateBatchImportJobRequest withEventTypeName(String eventTypeName) { setEventTypeName(eventTypeName); return this; } /** *

* The ARN of the IAM role created for Amazon S3 bucket that holds your data file. *

*

* The IAM role must have read permissions to your input S3 bucket and write permissions to your output S3 bucket. * For more information about bucket permissions, see User policy examples in * the Amazon S3 User Guide. *

* * @param iamRoleArn * The ARN of the IAM role created for Amazon S3 bucket that holds your data file.

*

* The IAM role must have read permissions to your input S3 bucket and write permissions to your output S3 * bucket. For more information about bucket permissions, see User policy * examples in the Amazon S3 User Guide. */ public void setIamRoleArn(String iamRoleArn) { this.iamRoleArn = iamRoleArn; } /** *

* The ARN of the IAM role created for Amazon S3 bucket that holds your data file. *

*

* The IAM role must have read permissions to your input S3 bucket and write permissions to your output S3 bucket. * For more information about bucket permissions, see User policy examples in * the Amazon S3 User Guide. *

* * @return The ARN of the IAM role created for Amazon S3 bucket that holds your data file.

*

* The IAM role must have read permissions to your input S3 bucket and write permissions to your output S3 * bucket. For more information about bucket permissions, see User policy * examples in the Amazon S3 User Guide. */ public String getIamRoleArn() { return this.iamRoleArn; } /** *

* The ARN of the IAM role created for Amazon S3 bucket that holds your data file. *

*

* The IAM role must have read permissions to your input S3 bucket and write permissions to your output S3 bucket. * For more information about bucket permissions, see User policy examples in * the Amazon S3 User Guide. *

* * @param iamRoleArn * The ARN of the IAM role created for Amazon S3 bucket that holds your data file.

*

* The IAM role must have read permissions to your input S3 bucket and write permissions to your output S3 * bucket. For more information about bucket permissions, see User policy * examples in the Amazon S3 User Guide. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateBatchImportJobRequest withIamRoleArn(String iamRoleArn) { setIamRoleArn(iamRoleArn); return this; } /** *

* A collection of key-value pairs associated with this request. *

* * @return A collection of key-value pairs associated with this request. */ public java.util.List getTags() { return tags; } /** *

* A collection of key-value pairs associated with this request. *

* * @param tags * A collection of key-value pairs associated with this request. */ public void setTags(java.util.Collection tags) { if (tags == null) { this.tags = null; return; } this.tags = new java.util.ArrayList(tags); } /** *

* A collection of key-value pairs associated with this request. *

*

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setTags(java.util.Collection)} or {@link #withTags(java.util.Collection)} if you want to override the * existing values. *

* * @param tags * A collection of key-value pairs associated with this request. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateBatchImportJobRequest withTags(Tag... tags) { if (this.tags == null) { setTags(new java.util.ArrayList(tags.length)); } for (Tag ele : tags) { this.tags.add(ele); } return this; } /** *

* A collection of key-value pairs associated with this request. *

* * @param tags * A collection of key-value pairs associated with this request. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateBatchImportJobRequest withTags(java.util.Collection tags) { setTags(tags); 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 (getJobId() != null) sb.append("JobId: ").append(getJobId()).append(","); if (getInputPath() != null) sb.append("InputPath: ").append(getInputPath()).append(","); if (getOutputPath() != null) sb.append("OutputPath: ").append(getOutputPath()).append(","); if (getEventTypeName() != null) sb.append("EventTypeName: ").append(getEventTypeName()).append(","); if (getIamRoleArn() != null) sb.append("IamRoleArn: ").append(getIamRoleArn()).append(","); if (getTags() != null) sb.append("Tags: ").append(getTags()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CreateBatchImportJobRequest == false) return false; CreateBatchImportJobRequest other = (CreateBatchImportJobRequest) obj; if (other.getJobId() == null ^ this.getJobId() == null) return false; if (other.getJobId() != null && other.getJobId().equals(this.getJobId()) == false) return false; if (other.getInputPath() == null ^ this.getInputPath() == null) return false; if (other.getInputPath() != null && other.getInputPath().equals(this.getInputPath()) == false) return false; if (other.getOutputPath() == null ^ this.getOutputPath() == null) return false; if (other.getOutputPath() != null && other.getOutputPath().equals(this.getOutputPath()) == false) return false; if (other.getEventTypeName() == null ^ this.getEventTypeName() == null) return false; if (other.getEventTypeName() != null && other.getEventTypeName().equals(this.getEventTypeName()) == false) return false; if (other.getIamRoleArn() == null ^ this.getIamRoleArn() == null) return false; if (other.getIamRoleArn() != null && other.getIamRoleArn().equals(this.getIamRoleArn()) == false) return false; if (other.getTags() == null ^ this.getTags() == null) return false; if (other.getTags() != null && other.getTags().equals(this.getTags()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getJobId() == null) ? 0 : getJobId().hashCode()); hashCode = prime * hashCode + ((getInputPath() == null) ? 0 : getInputPath().hashCode()); hashCode = prime * hashCode + ((getOutputPath() == null) ? 0 : getOutputPath().hashCode()); hashCode = prime * hashCode + ((getEventTypeName() == null) ? 0 : getEventTypeName().hashCode()); hashCode = prime * hashCode + ((getIamRoleArn() == null) ? 0 : getIamRoleArn().hashCode()); hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode()); return hashCode; } @Override public CreateBatchImportJobRequest clone() { return (CreateBatchImportJobRequest) super.clone(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy