/* * 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.robomaker.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Provides upload configuration information. Files are uploaded from the simulation job to a location you specify. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class UploadConfiguration implements Serializable, Cloneable, StructuredPojo { /** ** A prefix that specifies where files will be uploaded in Amazon S3. It is appended to the simulation output * location to determine the final path. *
*
* For example, if your simulation output location is s3://my-bucket
and your upload configuration name
* is robot-test
, your files will be uploaded to
* s3://my-bucket/<simid>/<runid>/robot-test
.
*
* Specifies the path of the file(s) to upload. Standard Unix glob matching rules are accepted, with the addition of
* **
as a super asterisk. For example, specifying /var/log/**.log
causes all .log
* files in the /var/log
directory tree to be collected. For more examples, see Glob Library.
*
* Specifies when to upload the files: *
*
* Matching files are uploaded once the simulation enters the TERMINATING
state. Matching files are not
* uploaded until all of your code (including tools) have stopped.
*
* If there is a problem uploading a file, the upload is retried. If problems persist, no further upload attempts * will be made. *
** Matching files are uploaded as they are created. They are deleted after they are uploaded. The specified path is * checked every 5 seconds. A final check is made when all of your code (including tools) have stopped. *
** A prefix that specifies where files will be uploaded in Amazon S3. It is appended to the simulation output * location to determine the final path. *
*
* For example, if your simulation output location is s3://my-bucket
and your upload configuration name
* is robot-test
, your files will be uploaded to
* s3://my-bucket/<simid>/<runid>/robot-test
.
*
* For example, if your simulation output location is s3://my-bucket
and your upload
* configuration name is robot-test
, your files will be uploaded to
* s3://my-bucket/<simid>/<runid>/robot-test
.
*/
public void setName(String name) {
this.name = name;
}
/**
*
* A prefix that specifies where files will be uploaded in Amazon S3. It is appended to the simulation output * location to determine the final path. *
*
* For example, if your simulation output location is s3://my-bucket
and your upload configuration name
* is robot-test
, your files will be uploaded to
* s3://my-bucket/<simid>/<runid>/robot-test
.
*
* For example, if your simulation output location is s3://my-bucket
and your upload
* configuration name is robot-test
, your files will be uploaded to
* s3://my-bucket/<simid>/<runid>/robot-test
.
*/
public String getName() {
return this.name;
}
/**
*
* A prefix that specifies where files will be uploaded in Amazon S3. It is appended to the simulation output * location to determine the final path. *
*
* For example, if your simulation output location is s3://my-bucket
and your upload configuration name
* is robot-test
, your files will be uploaded to
* s3://my-bucket/<simid>/<runid>/robot-test
.
*
* For example, if your simulation output location is s3://my-bucket
and your upload
* configuration name is robot-test
, your files will be uploaded to
* s3://my-bucket/<simid>/<runid>/robot-test
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UploadConfiguration withName(String name) {
setName(name);
return this;
}
/**
*
* Specifies the path of the file(s) to upload. Standard Unix glob matching rules are accepted, with the addition of
* **
as a super asterisk. For example, specifying /var/log/**.log
causes all .log
* files in the /var/log
directory tree to be collected. For more examples, see Glob Library.
*
**
as a super asterisk. For example, specifying
* /var/log/**.log
causes all .log files in the /var/log
directory tree to be
* collected. For more examples, see Glob Library.
*/
public void setPath(String path) {
this.path = path;
}
/**
*
* Specifies the path of the file(s) to upload. Standard Unix glob matching rules are accepted, with the addition of
* **
as a super asterisk. For example, specifying /var/log/**.log
causes all .log
* files in the /var/log
directory tree to be collected. For more examples, see Glob Library.
*
**
as a super asterisk. For example, specifying
* /var/log/**.log
causes all .log files in the /var/log
directory tree to be
* collected. For more examples, see Glob Library.
*/
public String getPath() {
return this.path;
}
/**
*
* Specifies the path of the file(s) to upload. Standard Unix glob matching rules are accepted, with the addition of
* **
as a super asterisk. For example, specifying /var/log/**.log
causes all .log
* files in the /var/log
directory tree to be collected. For more examples, see Glob Library.
*
**
as a super asterisk. For example, specifying
* /var/log/**.log
causes all .log files in the /var/log
directory tree to be
* collected. For more examples, see Glob Library.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UploadConfiguration withPath(String path) {
setPath(path);
return this;
}
/**
* * Specifies when to upload the files: *
*
* Matching files are uploaded once the simulation enters the TERMINATING
state. Matching files are not
* uploaded until all of your code (including tools) have stopped.
*
* If there is a problem uploading a file, the upload is retried. If problems persist, no further upload attempts * will be made. *
** Matching files are uploaded as they are created. They are deleted after they are uploaded. The specified path is * checked every 5 seconds. A final check is made when all of your code (including tools) have stopped. *
*
* Matching files are uploaded once the simulation enters the TERMINATING
state. Matching files
* are not uploaded until all of your code (including tools) have stopped.
*
* If there is a problem uploading a file, the upload is retried. If problems persist, no further upload * attempts will be made. *
** Matching files are uploaded as they are created. They are deleted after they are uploaded. The specified * path is checked every 5 seconds. A final check is made when all of your code (including tools) have * stopped. *
** Specifies when to upload the files: *
*
* Matching files are uploaded once the simulation enters the TERMINATING
state. Matching files are not
* uploaded until all of your code (including tools) have stopped.
*
* If there is a problem uploading a file, the upload is retried. If problems persist, no further upload attempts * will be made. *
** Matching files are uploaded as they are created. They are deleted after they are uploaded. The specified path is * checked every 5 seconds. A final check is made when all of your code (including tools) have stopped. *
*
* Matching files are uploaded once the simulation enters the TERMINATING
state. Matching files
* are not uploaded until all of your code (including tools) have stopped.
*
* If there is a problem uploading a file, the upload is retried. If problems persist, no further upload * attempts will be made. *
** Matching files are uploaded as they are created. They are deleted after they are uploaded. The specified * path is checked every 5 seconds. A final check is made when all of your code (including tools) have * stopped. *
** Specifies when to upload the files: *
*
* Matching files are uploaded once the simulation enters the TERMINATING
state. Matching files are not
* uploaded until all of your code (including tools) have stopped.
*
* If there is a problem uploading a file, the upload is retried. If problems persist, no further upload attempts * will be made. *
** Matching files are uploaded as they are created. They are deleted after they are uploaded. The specified path is * checked every 5 seconds. A final check is made when all of your code (including tools) have stopped. *
*
* Matching files are uploaded once the simulation enters the TERMINATING
state. Matching files
* are not uploaded until all of your code (including tools) have stopped.
*
* If there is a problem uploading a file, the upload is retried. If problems persist, no further upload * attempts will be made. *
** Matching files are uploaded as they are created. They are deleted after they are uploaded. The specified * path is checked every 5 seconds. A final check is made when all of your code (including tools) have * stopped. *
** Specifies when to upload the files: *
*
* Matching files are uploaded once the simulation enters the TERMINATING
state. Matching files are not
* uploaded until all of your code (including tools) have stopped.
*
* If there is a problem uploading a file, the upload is retried. If problems persist, no further upload attempts * will be made. *
** Matching files are uploaded as they are created. They are deleted after they are uploaded. The specified path is * checked every 5 seconds. A final check is made when all of your code (including tools) have stopped. *
*
* Matching files are uploaded once the simulation enters the TERMINATING
state. Matching files
* are not uploaded until all of your code (including tools) have stopped.
*
* If there is a problem uploading a file, the upload is retried. If problems persist, no further upload * attempts will be made. *
** Matching files are uploaded as they are created. They are deleted after they are uploaded. The specified * path is checked every 5 seconds. A final check is made when all of your code (including tools) have * stopped. *
*