/* * 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.applicationdiscovery.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; @Generated("com.amazonaws:aws-java-sdk-code-generator") public class StartImportTaskRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* Optional. A unique token that you can provide to prevent the same import request from occurring more than once. * If you don't provide a token, a token is automatically generated. *
*
* Sending more than one StartImportTask
request with the same client request token will return
* information about the original import task with that client request token.
*
* A descriptive name for this request. You can use this name to filter future requests related to this import task, * such as identifying applications and servers that were included in this import task. We recommend that you use a * meaningful name for each import task. *
*/ private String name; /** ** The URL for your import file that you've uploaded to Amazon S3. *
*
* If you're using the Amazon Web Services CLI, this URL is structured as follows:
* s3://BucketName/ImportFileName.CSV
*
* Optional. A unique token that you can provide to prevent the same import request from occurring more than once. * If you don't provide a token, a token is automatically generated. *
*
* Sending more than one StartImportTask
request with the same client request token will return
* information about the original import task with that client request token.
*
* Sending more than one StartImportTask
request with the same client request token will return
* information about the original import task with that client request token.
*/
public void setClientRequestToken(String clientRequestToken) {
this.clientRequestToken = clientRequestToken;
}
/**
*
* Optional. A unique token that you can provide to prevent the same import request from occurring more than once. * If you don't provide a token, a token is automatically generated. *
*
* Sending more than one StartImportTask
request with the same client request token will return
* information about the original import task with that client request token.
*
* Sending more than one StartImportTask
request with the same client request token will return
* information about the original import task with that client request token.
*/
public String getClientRequestToken() {
return this.clientRequestToken;
}
/**
*
* Optional. A unique token that you can provide to prevent the same import request from occurring more than once. * If you don't provide a token, a token is automatically generated. *
*
* Sending more than one StartImportTask
request with the same client request token will return
* information about the original import task with that client request token.
*
* Sending more than one StartImportTask
request with the same client request token will return
* information about the original import task with that client request token.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public StartImportTaskRequest withClientRequestToken(String clientRequestToken) {
setClientRequestToken(clientRequestToken);
return this;
}
/**
*
* A descriptive name for this request. You can use this name to filter future requests related to this import task, * such as identifying applications and servers that were included in this import task. We recommend that you use a * meaningful name for each import task. *
* * @param name * A descriptive name for this request. You can use this name to filter future requests related to this * import task, such as identifying applications and servers that were included in this import task. We * recommend that you use a meaningful name for each import task. */ public void setName(String name) { this.name = name; } /** ** A descriptive name for this request. You can use this name to filter future requests related to this import task, * such as identifying applications and servers that were included in this import task. We recommend that you use a * meaningful name for each import task. *
* * @return A descriptive name for this request. You can use this name to filter future requests related to this * import task, such as identifying applications and servers that were included in this import task. We * recommend that you use a meaningful name for each import task. */ public String getName() { return this.name; } /** ** A descriptive name for this request. You can use this name to filter future requests related to this import task, * such as identifying applications and servers that were included in this import task. We recommend that you use a * meaningful name for each import task. *
* * @param name * A descriptive name for this request. You can use this name to filter future requests related to this * import task, such as identifying applications and servers that were included in this import task. We * recommend that you use a meaningful name for each import task. * @return Returns a reference to this object so that method calls can be chained together. */ public StartImportTaskRequest withName(String name) { setName(name); return this; } /** ** The URL for your import file that you've uploaded to Amazon S3. *
*
* If you're using the Amazon Web Services CLI, this URL is structured as follows:
* s3://BucketName/ImportFileName.CSV
*
* If you're using the Amazon Web Services CLI, this URL is structured as follows:
* s3://BucketName/ImportFileName.CSV
*
* The URL for your import file that you've uploaded to Amazon S3. *
*
* If you're using the Amazon Web Services CLI, this URL is structured as follows:
* s3://BucketName/ImportFileName.CSV
*
* If you're using the Amazon Web Services CLI, this URL is structured as follows:
* s3://BucketName/ImportFileName.CSV
*
* The URL for your import file that you've uploaded to Amazon S3. *
*
* If you're using the Amazon Web Services CLI, this URL is structured as follows:
* s3://BucketName/ImportFileName.CSV
*
* If you're using the Amazon Web Services CLI, this URL is structured as follows:
* s3://BucketName/ImportFileName.CSV
*