/* * 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; /** *
* Summary information about a platform branch. *
* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class PlatformBranchSummary implements Serializable, Cloneable { /** ** The name of the platform to which this platform branch belongs. *
*/ private String platformName; /** ** The name of the platform branch. *
*/ private String branchName; /** ** The support life cycle state of the platform branch. *
*
     * Possible values: beta | supported | deprecated | retired
     * 
     * An ordinal number that designates the order in which platform branches have been added to a platform. This can be
     * helpful, for example, if your code calls the ListPlatformBranches action and then displays a list of
     * platform branches.
     * 
     * A larger BranchOrder value designates a newer platform branch within the platform.
     * 
* The environment tiers that platform versions in this branch support. *
*
     * Possible values: WebServer/Standard | Worker/SQS/HTTP
     * 
* The name of the platform to which this platform branch belongs. *
* * @param platformName * The name of the platform to which this platform branch belongs. */ public void setPlatformName(String platformName) { this.platformName = platformName; } /** ** The name of the platform to which this platform branch belongs. *
* * @return The name of the platform to which this platform branch belongs. */ public String getPlatformName() { return this.platformName; } /** ** The name of the platform to which this platform branch belongs. *
* * @param platformName * The name of the platform to which this platform branch belongs. * @return Returns a reference to this object so that method calls can be chained together. */ public PlatformBranchSummary withPlatformName(String platformName) { setPlatformName(platformName); return this; } /** ** The name of the platform branch. *
* * @param branchName * The name of the platform branch. */ public void setBranchName(String branchName) { this.branchName = branchName; } /** ** The name of the platform branch. *
* * @return The name of the platform branch. */ public String getBranchName() { return this.branchName; } /** ** The name of the platform branch. *
* * @param branchName * The name of the platform branch. * @return Returns a reference to this object so that method calls can be chained together. */ public PlatformBranchSummary withBranchName(String branchName) { setBranchName(branchName); return this; } /** ** The support life cycle state of the platform branch. *
*
     * Possible values: beta | supported | deprecated | retired
     * 
     *        Possible values: beta | supported | deprecated |
     *        retired
     */
    public void setLifecycleState(String lifecycleState) {
        this.lifecycleState = lifecycleState;
    }
    /**
     * 
* The support life cycle state of the platform branch. *
*
     * Possible values: beta | supported | deprecated | retired
     * 
     *         Possible values: beta | supported | deprecated |
     *         retired
     */
    public String getLifecycleState() {
        return this.lifecycleState;
    }
    /**
     * 
* The support life cycle state of the platform branch. *
*
     * Possible values: beta | supported | deprecated | retired
     * 
     *        Possible values: beta | supported | deprecated |
     *        retired
     * @return Returns a reference to this object so that method calls can be chained together.
     */
    public PlatformBranchSummary withLifecycleState(String lifecycleState) {
        setLifecycleState(lifecycleState);
        return this;
    }
    /**
     * 
     * An ordinal number that designates the order in which platform branches have been added to a platform. This can be
     * helpful, for example, if your code calls the ListPlatformBranches action and then displays a list of
     * platform branches.
     * 
     * A larger BranchOrder value designates a newer platform branch within the platform.
     * 
ListPlatformBranches action and then
     *        displays a list of platform branches.
     *        
     *        A larger BranchOrder value designates a newer platform branch within the platform.
     */
    public void setBranchOrder(Integer branchOrder) {
        this.branchOrder = branchOrder;
    }
    /**
     * 
     * An ordinal number that designates the order in which platform branches have been added to a platform. This can be
     * helpful, for example, if your code calls the ListPlatformBranches action and then displays a list of
     * platform branches.
     * 
     * A larger BranchOrder value designates a newer platform branch within the platform.
     * 
ListPlatformBranches action and
     *         then displays a list of platform branches.
     *         
     *         A larger BranchOrder value designates a newer platform branch within the platform.
     */
    public Integer getBranchOrder() {
        return this.branchOrder;
    }
    /**
     * 
     * An ordinal number that designates the order in which platform branches have been added to a platform. This can be
     * helpful, for example, if your code calls the ListPlatformBranches action and then displays a list of
     * platform branches.
     * 
     * A larger BranchOrder value designates a newer platform branch within the platform.
     * 
ListPlatformBranches action and then
     *        displays a list of platform branches.
     *        
     *        A larger BranchOrder value designates a newer platform branch within the platform.
     * @return Returns a reference to this object so that method calls can be chained together.
     */
    public PlatformBranchSummary withBranchOrder(Integer branchOrder) {
        setBranchOrder(branchOrder);
        return this;
    }
    /**
     * 
* The environment tiers that platform versions in this branch support. *
*
     * Possible values: WebServer/Standard | Worker/SQS/HTTP
     * 
     *         Possible values:  
     * The environment tiers that platform versions in this branch support.
     *  
     * Possible values: WebServer/Standard | Worker/SQS/HTTP
     */
    public java.util.ListWebServer/Standard | Worker/SQS/HTTP
     * 
     *        Possible values:  
     * The environment tiers that platform versions in this branch support.
     *  
     * Possible values:  
     * NOTE: This method appends the values to the existing list (if any). Use
     * {@link #setSupportedTierList(java.util.Collection)} or {@link #withSupportedTierList(java.util.Collection)} if
     * you want to override the existing values.
     * WebServer/Standard | Worker/SQS/HTTP
     */
    public void setSupportedTierList(java.util.CollectionWebServer/Standard | Worker/SQS/HTTP
     * 
     *        Possible values:  
     * The environment tiers that platform versions in this branch support.
     *  
     * Possible values: WebServer/Standard | Worker/SQS/HTTP
     * @return Returns a reference to this object so that method calls can be chained together.
     */
    public PlatformBranchSummary withSupportedTierList(String... supportedTierList) {
        if (this.supportedTierList == null) {
            setSupportedTierList(new com.amazonaws.internal.SdkInternalListWebServer/Standard | Worker/SQS/HTTP
     * 
     *        Possible values: WebServer/Standard | Worker/SQS/HTTP
     * @return Returns a reference to this object so that method calls can be chained together.
     */
    public PlatformBranchSummary withSupportedTierList(java.util.Collection