/* * 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.elasticbeanstalk.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; /** *
* Request to create a new platform version. *
* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class CreatePlatformVersionRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** ** The name of your custom platform. *
*/ private String platformName; /** ** The number, such as 1.0.2, for the new platform version. *
*/ private String platformVersion; /** ** The location of the platform definition archive in Amazon S3. *
*/ private S3Location platformDefinitionBundle; /** ** The name of the builder environment. *
*/ private String environmentName; /** ** The configuration option settings to apply to the builder environment. *
*/ private com.amazonaws.internal.SdkInternalList* Specifies the tags applied to the new platform version. *
** Elastic Beanstalk applies these tags only to the platform version. Environments that you create using the * platform version don't inherit the tags. *
*/ private com.amazonaws.internal.SdkInternalList* The name of your custom platform. *
* * @param platformName * The name of your custom platform. */ public void setPlatformName(String platformName) { this.platformName = platformName; } /** ** The name of your custom platform. *
* * @return The name of your custom platform. */ public String getPlatformName() { return this.platformName; } /** ** The name of your custom platform. *
* * @param platformName * The name of your custom platform. * @return Returns a reference to this object so that method calls can be chained together. */ public CreatePlatformVersionRequest withPlatformName(String platformName) { setPlatformName(platformName); return this; } /** ** The number, such as 1.0.2, for the new platform version. *
* * @param platformVersion * The number, such as 1.0.2, for the new platform version. */ public void setPlatformVersion(String platformVersion) { this.platformVersion = platformVersion; } /** ** The number, such as 1.0.2, for the new platform version. *
* * @return The number, such as 1.0.2, for the new platform version. */ public String getPlatformVersion() { return this.platformVersion; } /** ** The number, such as 1.0.2, for the new platform version. *
* * @param platformVersion * The number, such as 1.0.2, for the new platform version. * @return Returns a reference to this object so that method calls can be chained together. */ public CreatePlatformVersionRequest withPlatformVersion(String platformVersion) { setPlatformVersion(platformVersion); return this; } /** ** The location of the platform definition archive in Amazon S3. *
* * @param platformDefinitionBundle * The location of the platform definition archive in Amazon S3. */ public void setPlatformDefinitionBundle(S3Location platformDefinitionBundle) { this.platformDefinitionBundle = platformDefinitionBundle; } /** ** The location of the platform definition archive in Amazon S3. *
* * @return The location of the platform definition archive in Amazon S3. */ public S3Location getPlatformDefinitionBundle() { return this.platformDefinitionBundle; } /** ** The location of the platform definition archive in Amazon S3. *
* * @param platformDefinitionBundle * The location of the platform definition archive in Amazon S3. * @return Returns a reference to this object so that method calls can be chained together. */ public CreatePlatformVersionRequest withPlatformDefinitionBundle(S3Location platformDefinitionBundle) { setPlatformDefinitionBundle(platformDefinitionBundle); return this; } /** ** The name of the builder environment. *
* * @param environmentName * The name of the builder environment. */ public void setEnvironmentName(String environmentName) { this.environmentName = environmentName; } /** ** The name of the builder environment. *
* * @return The name of the builder environment. */ public String getEnvironmentName() { return this.environmentName; } /** ** The name of the builder environment. *
* * @param environmentName * The name of the builder environment. * @return Returns a reference to this object so that method calls can be chained together. */ public CreatePlatformVersionRequest withEnvironmentName(String environmentName) { setEnvironmentName(environmentName); return this; } /** ** The configuration option settings to apply to the builder environment. *
* * @return The configuration option settings to apply to the builder environment. */ public java.util.List* The configuration option settings to apply to the builder environment. *
* * @param optionSettings * The configuration option settings to apply to the builder environment. */ public void setOptionSettings(java.util.Collection* The configuration option settings to apply to the builder environment. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setOptionSettings(java.util.Collection)} or {@link #withOptionSettings(java.util.Collection)} if you want * to override the existing values. *
* * @param optionSettings * The configuration option settings to apply to the builder environment. * @return Returns a reference to this object so that method calls can be chained together. */ public CreatePlatformVersionRequest withOptionSettings(ConfigurationOptionSetting... optionSettings) { if (this.optionSettings == null) { setOptionSettings(new com.amazonaws.internal.SdkInternalList* The configuration option settings to apply to the builder environment. *
* * @param optionSettings * The configuration option settings to apply to the builder environment. * @return Returns a reference to this object so that method calls can be chained together. */ public CreatePlatformVersionRequest withOptionSettings(java.util.Collection* Specifies the tags applied to the new platform version. *
** Elastic Beanstalk applies these tags only to the platform version. Environments that you create using the * platform version don't inherit the tags. *
* * @return Specifies the tags applied to the new platform version. *
* Elastic Beanstalk applies these tags only to the platform version. Environments that you create using the
* platform version don't inherit the tags.
*/
public java.util.List
* Specifies the tags applied to the new platform version.
*
* Elastic Beanstalk applies these tags only to the platform version. Environments that you create using the
* platform version don't inherit the tags.
*
* Elastic Beanstalk applies these tags only to the platform version. Environments that you create using the
* platform version don't inherit the tags.
*/
public void setTags(java.util.Collection
* Specifies the tags applied to the new platform version.
*
* Elastic Beanstalk applies these tags only to the platform version. Environments that you create using the
* platform version don't inherit the tags.
*
* 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.
*
* Elastic Beanstalk applies these tags only to the platform version. Environments that you create using the
* platform version don't inherit the tags.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreatePlatformVersionRequest withTags(Tag... tags) {
if (this.tags == null) {
setTags(new com.amazonaws.internal.SdkInternalList
* Specifies the tags applied to the new platform version.
*
* Elastic Beanstalk applies these tags only to the platform version. Environments that you create using the
* platform version don't inherit the tags.
*
* Elastic Beanstalk applies these tags only to the platform version. Environments that you create using the
* platform version don't inherit the tags.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreatePlatformVersionRequest withTags(java.util.Collection