/* * 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.imagebuilder.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* A container encapsulates the runtime environment for an application. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class Container implements Serializable, Cloneable, StructuredPojo { /** ** Containers and container images are Region-specific. This is the Region context for the container. *
*/ private String region; /** ** A list of URIs for containers created in the context Region. *
*/ private java.util.List* Containers and container images are Region-specific. This is the Region context for the container. *
* * @param region * Containers and container images are Region-specific. This is the Region context for the container. */ public void setRegion(String region) { this.region = region; } /** ** Containers and container images are Region-specific. This is the Region context for the container. *
* * @return Containers and container images are Region-specific. This is the Region context for the container. */ public String getRegion() { return this.region; } /** ** Containers and container images are Region-specific. This is the Region context for the container. *
* * @param region * Containers and container images are Region-specific. This is the Region context for the container. * @return Returns a reference to this object so that method calls can be chained together. */ public Container withRegion(String region) { setRegion(region); return this; } /** ** A list of URIs for containers created in the context Region. *
* * @return A list of URIs for containers created in the context Region. */ public java.util.List* A list of URIs for containers created in the context Region. *
* * @param imageUris * A list of URIs for containers created in the context Region. */ public void setImageUris(java.util.Collection* A list of URIs for containers created in the context Region. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setImageUris(java.util.Collection)} or {@link #withImageUris(java.util.Collection)} if you want to * override the existing values. *
* * @param imageUris * A list of URIs for containers created in the context Region. * @return Returns a reference to this object so that method calls can be chained together. */ public Container withImageUris(String... imageUris) { if (this.imageUris == null) { setImageUris(new java.util.ArrayList* A list of URIs for containers created in the context Region. *
* * @param imageUris * A list of URIs for containers created in the context Region. * @return Returns a reference to this object so that method calls can be chained together. */ public Container withImageUris(java.util.Collection