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

* Describes a container deployment configuration of an Amazon Lightsail container service. *

*

* A deployment specifies the settings, such as the ports and launch command, of containers that are deployed to your * container service. *

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

* The version number of the deployment. *

*/ private Integer version; /** *

* The state of the deployment. *

*

* A deployment can be in one of the following states: *

* */ private String state; /** *

* An object that describes the configuration for the containers of the deployment. *

*/ private java.util.Map containers; /** *

* An object that describes the endpoint of the deployment. *

*/ private ContainerServiceEndpoint publicEndpoint; /** *

* The timestamp when the deployment was created. *

*/ private java.util.Date createdAt; /** *

* The version number of the deployment. *

* * @param version * The version number of the deployment. */ public void setVersion(Integer version) { this.version = version; } /** *

* The version number of the deployment. *

* * @return The version number of the deployment. */ public Integer getVersion() { return this.version; } /** *

* The version number of the deployment. *

* * @param version * The version number of the deployment. * @return Returns a reference to this object so that method calls can be chained together. */ public ContainerServiceDeployment withVersion(Integer version) { setVersion(version); return this; } /** *

* The state of the deployment. *

*

* A deployment can be in one of the following states: *

* * * @param state * The state of the deployment.

*

* A deployment can be in one of the following states: *

*