/* * 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.datasync.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; /** *
* CreateLocationS3Request *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class CreateLocationS3Request extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** ** A subdirectory in the Amazon S3 bucket. This subdirectory in Amazon S3 is used to read data from the S3 source * location or write data to the S3 destination. *
*/ private String subdirectory; /** ** The ARN of the Amazon S3 bucket. If the bucket is on an Amazon Web Services Outpost, this must be an access point * ARN. *
*/ private String s3BucketArn; /** ** The Amazon S3 storage class that you want to store your files in when this location is used as a task * destination. For buckets in Amazon Web Services Regions, the storage class defaults to Standard. For buckets on * Outposts, the storage class defaults to Amazon Web Services S3 Outposts. *
** For more information about S3 storage classes, see Amazon S3 * Storage Classes. Some storage classes have behaviors that can affect your S3 storage cost. For detailed * information, see Considerations when working with S3 storage classes in DataSync. *
*/ private String s3StorageClass; private S3Config s3Config; /** ** If you're using DataSync on an Amazon Web Services Outpost, specify the Amazon Resource Names (ARNs) of the * DataSync agents deployed on your Outpost. For more information about launching a DataSync agent on an Amazon Web * Services Outpost, see Deploy your * DataSync agent on Outposts. *
*/ private java.util.List* The key-value pair that represents the tag that you want to add to the location. The value can be an empty * string. We recommend using tags to name your resources. *
*/ private java.util.List* A subdirectory in the Amazon S3 bucket. This subdirectory in Amazon S3 is used to read data from the S3 source * location or write data to the S3 destination. *
* * @param subdirectory * A subdirectory in the Amazon S3 bucket. This subdirectory in Amazon S3 is used to read data from the S3 * source location or write data to the S3 destination. */ public void setSubdirectory(String subdirectory) { this.subdirectory = subdirectory; } /** ** A subdirectory in the Amazon S3 bucket. This subdirectory in Amazon S3 is used to read data from the S3 source * location or write data to the S3 destination. *
* * @return A subdirectory in the Amazon S3 bucket. This subdirectory in Amazon S3 is used to read data from the S3 * source location or write data to the S3 destination. */ public String getSubdirectory() { return this.subdirectory; } /** ** A subdirectory in the Amazon S3 bucket. This subdirectory in Amazon S3 is used to read data from the S3 source * location or write data to the S3 destination. *
* * @param subdirectory * A subdirectory in the Amazon S3 bucket. This subdirectory in Amazon S3 is used to read data from the S3 * source location or write data to the S3 destination. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateLocationS3Request withSubdirectory(String subdirectory) { setSubdirectory(subdirectory); return this; } /** ** The ARN of the Amazon S3 bucket. If the bucket is on an Amazon Web Services Outpost, this must be an access point * ARN. *
* * @param s3BucketArn * The ARN of the Amazon S3 bucket. If the bucket is on an Amazon Web Services Outpost, this must be an * access point ARN. */ public void setS3BucketArn(String s3BucketArn) { this.s3BucketArn = s3BucketArn; } /** ** The ARN of the Amazon S3 bucket. If the bucket is on an Amazon Web Services Outpost, this must be an access point * ARN. *
* * @return The ARN of the Amazon S3 bucket. If the bucket is on an Amazon Web Services Outpost, this must be an * access point ARN. */ public String getS3BucketArn() { return this.s3BucketArn; } /** ** The ARN of the Amazon S3 bucket. If the bucket is on an Amazon Web Services Outpost, this must be an access point * ARN. *
* * @param s3BucketArn * The ARN of the Amazon S3 bucket. If the bucket is on an Amazon Web Services Outpost, this must be an * access point ARN. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateLocationS3Request withS3BucketArn(String s3BucketArn) { setS3BucketArn(s3BucketArn); return this; } /** ** The Amazon S3 storage class that you want to store your files in when this location is used as a task * destination. For buckets in Amazon Web Services Regions, the storage class defaults to Standard. For buckets on * Outposts, the storage class defaults to Amazon Web Services S3 Outposts. *
** For more information about S3 storage classes, see Amazon S3 * Storage Classes. Some storage classes have behaviors that can affect your S3 storage cost. For detailed * information, see Considerations when working with S3 storage classes in DataSync. *
* * @param s3StorageClass * The Amazon S3 storage class that you want to store your files in when this location is used as a task * destination. For buckets in Amazon Web Services Regions, the storage class defaults to Standard. For * buckets on Outposts, the storage class defaults to Amazon Web Services S3 Outposts. ** For more information about S3 storage classes, see Amazon S3 Storage Classes. Some storage classes have * behaviors that can affect your S3 storage cost. For detailed information, see Considerations when working with S3 storage classes in DataSync. * @see S3StorageClass */ public void setS3StorageClass(String s3StorageClass) { this.s3StorageClass = s3StorageClass; } /** *
* The Amazon S3 storage class that you want to store your files in when this location is used as a task * destination. For buckets in Amazon Web Services Regions, the storage class defaults to Standard. For buckets on * Outposts, the storage class defaults to Amazon Web Services S3 Outposts. *
** For more information about S3 storage classes, see Amazon S3 * Storage Classes. Some storage classes have behaviors that can affect your S3 storage cost. For detailed * information, see Considerations when working with S3 storage classes in DataSync. *
* * @return The Amazon S3 storage class that you want to store your files in when this location is used as a task * destination. For buckets in Amazon Web Services Regions, the storage class defaults to Standard. For * buckets on Outposts, the storage class defaults to Amazon Web Services S3 Outposts. ** For more information about S3 storage classes, see Amazon S3 Storage Classes. Some storage classes have * behaviors that can affect your S3 storage cost. For detailed information, see Considerations when working with S3 storage classes in DataSync. * @see S3StorageClass */ public String getS3StorageClass() { return this.s3StorageClass; } /** *
* The Amazon S3 storage class that you want to store your files in when this location is used as a task * destination. For buckets in Amazon Web Services Regions, the storage class defaults to Standard. For buckets on * Outposts, the storage class defaults to Amazon Web Services S3 Outposts. *
** For more information about S3 storage classes, see Amazon S3 * Storage Classes. Some storage classes have behaviors that can affect your S3 storage cost. For detailed * information, see Considerations when working with S3 storage classes in DataSync. *
* * @param s3StorageClass * The Amazon S3 storage class that you want to store your files in when this location is used as a task * destination. For buckets in Amazon Web Services Regions, the storage class defaults to Standard. For * buckets on Outposts, the storage class defaults to Amazon Web Services S3 Outposts. ** For more information about S3 storage classes, see Amazon S3 Storage Classes. Some storage classes have * behaviors that can affect your S3 storage cost. For detailed information, see Considerations when working with S3 storage classes in DataSync. * @return Returns a reference to this object so that method calls can be chained together. * @see S3StorageClass */ public CreateLocationS3Request withS3StorageClass(String s3StorageClass) { setS3StorageClass(s3StorageClass); return this; } /** *
* The Amazon S3 storage class that you want to store your files in when this location is used as a task * destination. For buckets in Amazon Web Services Regions, the storage class defaults to Standard. For buckets on * Outposts, the storage class defaults to Amazon Web Services S3 Outposts. *
** For more information about S3 storage classes, see Amazon S3 * Storage Classes. Some storage classes have behaviors that can affect your S3 storage cost. For detailed * information, see Considerations when working with S3 storage classes in DataSync. *
* * @param s3StorageClass * The Amazon S3 storage class that you want to store your files in when this location is used as a task * destination. For buckets in Amazon Web Services Regions, the storage class defaults to Standard. For * buckets on Outposts, the storage class defaults to Amazon Web Services S3 Outposts. ** For more information about S3 storage classes, see Amazon S3 Storage Classes. Some storage classes have * behaviors that can affect your S3 storage cost. For detailed information, see Considerations when working with S3 storage classes in DataSync. * @return Returns a reference to this object so that method calls can be chained together. * @see S3StorageClass */ public CreateLocationS3Request withS3StorageClass(S3StorageClass s3StorageClass) { this.s3StorageClass = s3StorageClass.toString(); return this; } /** * @param s3Config */ public void setS3Config(S3Config s3Config) { this.s3Config = s3Config; } /** * @return */ public S3Config getS3Config() { return this.s3Config; } /** * @param s3Config * @return Returns a reference to this object so that method calls can be chained together. */ public CreateLocationS3Request withS3Config(S3Config s3Config) { setS3Config(s3Config); return this; } /** *
* If you're using DataSync on an Amazon Web Services Outpost, specify the Amazon Resource Names (ARNs) of the * DataSync agents deployed on your Outpost. For more information about launching a DataSync agent on an Amazon Web * Services Outpost, see Deploy your * DataSync agent on Outposts. *
* * @return If you're using DataSync on an Amazon Web Services Outpost, specify the Amazon Resource Names (ARNs) of * the DataSync agents deployed on your Outpost. For more information about launching a DataSync agent on an * Amazon Web Services Outpost, see Deploy * your DataSync agent on Outposts. */ public java.util.List* If you're using DataSync on an Amazon Web Services Outpost, specify the Amazon Resource Names (ARNs) of the * DataSync agents deployed on your Outpost. For more information about launching a DataSync agent on an Amazon Web * Services Outpost, see Deploy your * DataSync agent on Outposts. *
* * @param agentArns * If you're using DataSync on an Amazon Web Services Outpost, specify the Amazon Resource Names (ARNs) of * the DataSync agents deployed on your Outpost. For more information about launching a DataSync agent on an * Amazon Web Services Outpost, see Deploy your * DataSync agent on Outposts. */ public void setAgentArns(java.util.Collection* If you're using DataSync on an Amazon Web Services Outpost, specify the Amazon Resource Names (ARNs) of the * DataSync agents deployed on your Outpost. For more information about launching a DataSync agent on an Amazon Web * Services Outpost, see Deploy your * DataSync agent on Outposts. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setAgentArns(java.util.Collection)} or {@link #withAgentArns(java.util.Collection)} if you want to * override the existing values. *
* * @param agentArns * If you're using DataSync on an Amazon Web Services Outpost, specify the Amazon Resource Names (ARNs) of * the DataSync agents deployed on your Outpost. For more information about launching a DataSync agent on an * Amazon Web Services Outpost, see Deploy your * DataSync agent on Outposts. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateLocationS3Request withAgentArns(String... agentArns) { if (this.agentArns == null) { setAgentArns(new java.util.ArrayList* If you're using DataSync on an Amazon Web Services Outpost, specify the Amazon Resource Names (ARNs) of the * DataSync agents deployed on your Outpost. For more information about launching a DataSync agent on an Amazon Web * Services Outpost, see Deploy your * DataSync agent on Outposts. *
* * @param agentArns * If you're using DataSync on an Amazon Web Services Outpost, specify the Amazon Resource Names (ARNs) of * the DataSync agents deployed on your Outpost. For more information about launching a DataSync agent on an * Amazon Web Services Outpost, see Deploy your * DataSync agent on Outposts. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateLocationS3Request withAgentArns(java.util.Collection* The key-value pair that represents the tag that you want to add to the location. The value can be an empty * string. We recommend using tags to name your resources. *
* * @return The key-value pair that represents the tag that you want to add to the location. The value can be an * empty string. We recommend using tags to name your resources. */ public java.util.List* The key-value pair that represents the tag that you want to add to the location. The value can be an empty * string. We recommend using tags to name your resources. *
* * @param tags * The key-value pair that represents the tag that you want to add to the location. The value can be an empty * string. We recommend using tags to name your resources. */ public void setTags(java.util.Collection* The key-value pair that represents the tag that you want to add to the location. The value can be an empty * string. We recommend using tags to name your resources. *
** 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 * The key-value pair that represents the tag that you want to add to the location. The value can be an empty * string. We recommend using tags to name your resources. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateLocationS3Request withTags(TagListEntry... tags) { if (this.tags == null) { setTags(new java.util.ArrayList* The key-value pair that represents the tag that you want to add to the location. The value can be an empty * string. We recommend using tags to name your resources. *
* * @param tags * The key-value pair that represents the tag that you want to add to the location. The value can be an empty * string. We recommend using tags to name your resources. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateLocationS3Request withTags(java.util.Collection