/* * 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.codedeploy.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *

* Information about the location of application artifacts stored in Amazon S3. *

* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class S3Location implements Serializable, Cloneable, StructuredPojo { /** *

* The name of the Amazon S3 bucket where the application revision is stored. *

*/ private String bucket; /** *

* The name of the Amazon S3 object that represents the bundled artifacts for the application revision. *

*/ private String key; /** *

* The file type of the application revision. Must be one of the following: *

* */ private String bundleType; /** *

* A specific version of the Amazon S3 object that represents the bundled artifacts for the application revision. *

*

* If the version is not specified, the system uses the most recent version by default. *

*/ private String version; /** *

* The ETag of the Amazon S3 object that represents the bundled artifacts for the application revision. *

*

* If the ETag is not specified as an input parameter, ETag validation of the object is skipped. *

*/ private String eTag; /** *

* The name of the Amazon S3 bucket where the application revision is stored. *

* * @param bucket * The name of the Amazon S3 bucket where the application revision is stored. */ public void setBucket(String bucket) { this.bucket = bucket; } /** *

* The name of the Amazon S3 bucket where the application revision is stored. *

* * @return The name of the Amazon S3 bucket where the application revision is stored. */ public String getBucket() { return this.bucket; } /** *

* The name of the Amazon S3 bucket where the application revision is stored. *

* * @param bucket * The name of the Amazon S3 bucket where the application revision is stored. * @return Returns a reference to this object so that method calls can be chained together. */ public S3Location withBucket(String bucket) { setBucket(bucket); return this; } /** *

* The name of the Amazon S3 object that represents the bundled artifacts for the application revision. *

* * @param key * The name of the Amazon S3 object that represents the bundled artifacts for the application revision. */ public void setKey(String key) { this.key = key; } /** *

* The name of the Amazon S3 object that represents the bundled artifacts for the application revision. *

* * @return The name of the Amazon S3 object that represents the bundled artifacts for the application revision. */ public String getKey() { return this.key; } /** *

* The name of the Amazon S3 object that represents the bundled artifacts for the application revision. *

* * @param key * The name of the Amazon S3 object that represents the bundled artifacts for the application revision. * @return Returns a reference to this object so that method calls can be chained together. */ public S3Location withKey(String key) { setKey(key); return this; } /** *

* The file type of the application revision. Must be one of the following: *

* * * @param bundleType * The file type of the application revision. Must be one of the following:

*