/* * 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.codebuild.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* A set of Docker images that are related by programming language and are managed by CodeBuild. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class EnvironmentLanguage implements Serializable, Cloneable, StructuredPojo { /** ** The programming language for the Docker images. *
*/ private String language; /** ** The list of Docker images that are related by the specified programming language. *
*/ private java.util.List* The programming language for the Docker images. *
* * @param language * The programming language for the Docker images. * @see LanguageType */ public void setLanguage(String language) { this.language = language; } /** ** The programming language for the Docker images. *
* * @return The programming language for the Docker images. * @see LanguageType */ public String getLanguage() { return this.language; } /** ** The programming language for the Docker images. *
* * @param language * The programming language for the Docker images. * @return Returns a reference to this object so that method calls can be chained together. * @see LanguageType */ public EnvironmentLanguage withLanguage(String language) { setLanguage(language); return this; } /** ** The programming language for the Docker images. *
* * @param language * The programming language for the Docker images. * @see LanguageType */ public void setLanguage(LanguageType language) { withLanguage(language); } /** ** The programming language for the Docker images. *
* * @param language * The programming language for the Docker images. * @return Returns a reference to this object so that method calls can be chained together. * @see LanguageType */ public EnvironmentLanguage withLanguage(LanguageType language) { this.language = language.toString(); return this; } /** ** The list of Docker images that are related by the specified programming language. *
* * @return The list of Docker images that are related by the specified programming language. */ public java.util.List* The list of Docker images that are related by the specified programming language. *
* * @param images * The list of Docker images that are related by the specified programming language. */ public void setImages(java.util.Collection* The list of Docker images that are related by the specified programming language. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setImages(java.util.Collection)} or {@link #withImages(java.util.Collection)} if you want to override the * existing values. *
* * @param images * The list of Docker images that are related by the specified programming language. * @return Returns a reference to this object so that method calls can be chained together. */ public EnvironmentLanguage withImages(EnvironmentImage... images) { if (this.images == null) { setImages(new java.util.ArrayList* The list of Docker images that are related by the specified programming language. *
* * @param images * The list of Docker images that are related by the specified programming language. * @return Returns a reference to this object so that method calls can be chained together. */ public EnvironmentLanguage withImages(java.util.Collection