All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.codebuild.model.Fleet Maven / Gradle / Ivy

Go to download

The AWS Java SDK for AWS Code Build module holds the client classes that are used for communicating with AWS Code Build.

There is a newer version: 1.12.772
Show newest version
/*
 * Copyright 2019-2024 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 dedicated instances for your build environment. *

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

* The ARN of the compute fleet. *

*/ private String arn; /** *

* The name of the compute fleet. *

*/ private String name; /** *

* The ID of the compute fleet. *

*/ private String id; /** *

* The time at which the compute fleet was created. *

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

* The time at which the compute fleet was last modified. *

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

* The status of the compute fleet. *

*/ private FleetStatus status; /** *

* The initial number of machines allocated to the compute fleet, which defines the number of builds that can run in * parallel. *

*/ private Integer baseCapacity; /** *

* The environment type of the compute fleet. *

*
    *
  • *

    * The environment type ARM_CONTAINER is available only in regions US East (N. Virginia), US East * (Ohio), US West (Oregon), EU (Ireland), Asia Pacific (Mumbai), Asia Pacific (Tokyo), Asia Pacific (Singapore), * Asia Pacific (Sydney), EU (Frankfurt), and South America (São Paulo). *

    *
  • *
  • *

    * The environment type LINUX_CONTAINER is available only in regions US East (N. Virginia), US East * (Ohio), US West (Oregon), EU (Ireland), EU (Frankfurt), Asia Pacific (Tokyo), Asia Pacific (Singapore), Asia * Pacific (Sydney), South America (São Paulo), and Asia Pacific (Mumbai). *

    *
  • *
  • *

    * The environment type LINUX_GPU_CONTAINER is available only in regions US East (N. Virginia), US East * (Ohio), US West (Oregon), EU (Ireland), EU (Frankfurt), Asia Pacific (Tokyo), and Asia Pacific (Sydney). *

    *
  • *
  • *

    * The environment type WINDOWS_SERVER_2019_CONTAINER is available only in regions US East (N. * Virginia), US East (Ohio), US West (Oregon), Asia Pacific (Sydney), Asia Pacific (Tokyo), Asia Pacific (Mumbai) * and EU (Ireland). *

    *
  • *
  • *

    * The environment type WINDOWS_SERVER_2022_CONTAINER is available only in regions US East (N. * Virginia), US East (Ohio), US West (Oregon), EU (Ireland), EU (Frankfurt), Asia Pacific (Sydney), Asia Pacific * (Singapore), Asia Pacific (Tokyo), South America (São Paulo) and Asia Pacific (Mumbai). *

    *
  • *
*

* For more information, see Build environment * compute types in the CodeBuild user guide. *

*/ private String environmentType; /** *

* Information about the compute resources the compute fleet uses. Available values include: *

*
    *
  • *

    * BUILD_GENERAL1_SMALL: Use up to 3 GB memory and 2 vCPUs for builds. *

    *
  • *
  • *

    * BUILD_GENERAL1_MEDIUM: Use up to 7 GB memory and 4 vCPUs for builds. *

    *
  • *
  • *

    * BUILD_GENERAL1_LARGE: Use up to 16 GB memory and 8 vCPUs for builds, depending on your environment * type. *

    *
  • *
  • *

    * BUILD_GENERAL1_XLARGE: Use up to 70 GB memory and 36 vCPUs for builds, depending on your environment * type. *

    *
  • *
  • *

    * BUILD_GENERAL1_2XLARGE: Use up to 145 GB memory, 72 vCPUs, and 824 GB of SSD storage for builds. * This compute type supports Docker images up to 100 GB uncompressed. *

    *
  • *
*

* If you use BUILD_GENERAL1_SMALL: *

*
    *
  • *

    * For environment type LINUX_CONTAINER, you can use up to 3 GB memory and 2 vCPUs for builds. *

    *
  • *
  • *

    * For environment type LINUX_GPU_CONTAINER, you can use up to 16 GB memory, 4 vCPUs, and 1 NVIDIA A10G * Tensor Core GPU for builds. *

    *
  • *
  • *

    * For environment type ARM_CONTAINER, you can use up to 4 GB memory and 2 vCPUs on ARM-based * processors for builds. *

    *
  • *
*

* If you use BUILD_GENERAL1_LARGE: *

*
    *
  • *

    * For environment type LINUX_CONTAINER, you can use up to 15 GB memory and 8 vCPUs for builds. *

    *
  • *
  • *

    * For environment type LINUX_GPU_CONTAINER, you can use up to 255 GB memory, 32 vCPUs, and 4 NVIDIA * Tesla V100 GPUs for builds. *

    *
  • *
  • *

    * For environment type ARM_CONTAINER, you can use up to 16 GB memory and 8 vCPUs on ARM-based * processors for builds. *

    *
  • *
*

* For more information, see Build environment * compute types in the CodeBuild User Guide. *

*/ private String computeType; /** *

* The scaling configuration of the compute fleet. *

*/ private ScalingConfigurationOutput scalingConfiguration; /** *

* The compute fleet overflow behavior. *

* */ private String overflowBehavior; private VpcConfig vpcConfig; /** *

* The service role associated with the compute fleet. For more information, see Allow a user to add a permission policy for a fleet service role in the CodeBuild User Guide. *

*/ private String fleetServiceRole; /** *

* A list of tag key and value pairs associated with this compute fleet. *

*

* These tags are available for use by Amazon Web Services services that support CodeBuild build project tags. *

*/ private java.util.List tags; /** *

* The ARN of the compute fleet. *

* * @param arn * The ARN of the compute fleet. */ public void setArn(String arn) { this.arn = arn; } /** *

* The ARN of the compute fleet. *

* * @return The ARN of the compute fleet. */ public String getArn() { return this.arn; } /** *

* The ARN of the compute fleet. *

* * @param arn * The ARN of the compute fleet. * @return Returns a reference to this object so that method calls can be chained together. */ public Fleet withArn(String arn) { setArn(arn); return this; } /** *

* The name of the compute fleet. *

* * @param name * The name of the compute fleet. */ public void setName(String name) { this.name = name; } /** *

* The name of the compute fleet. *

* * @return The name of the compute fleet. */ public String getName() { return this.name; } /** *

* The name of the compute fleet. *

* * @param name * The name of the compute fleet. * @return Returns a reference to this object so that method calls can be chained together. */ public Fleet withName(String name) { setName(name); return this; } /** *

* The ID of the compute fleet. *

* * @param id * The ID of the compute fleet. */ public void setId(String id) { this.id = id; } /** *

* The ID of the compute fleet. *

* * @return The ID of the compute fleet. */ public String getId() { return this.id; } /** *

* The ID of the compute fleet. *

* * @param id * The ID of the compute fleet. * @return Returns a reference to this object so that method calls can be chained together. */ public Fleet withId(String id) { setId(id); return this; } /** *

* The time at which the compute fleet was created. *

* * @param created * The time at which the compute fleet was created. */ public void setCreated(java.util.Date created) { this.created = created; } /** *

* The time at which the compute fleet was created. *

* * @return The time at which the compute fleet was created. */ public java.util.Date getCreated() { return this.created; } /** *

* The time at which the compute fleet was created. *

* * @param created * The time at which the compute fleet was created. * @return Returns a reference to this object so that method calls can be chained together. */ public Fleet withCreated(java.util.Date created) { setCreated(created); return this; } /** *

* The time at which the compute fleet was last modified. *

* * @param lastModified * The time at which the compute fleet was last modified. */ public void setLastModified(java.util.Date lastModified) { this.lastModified = lastModified; } /** *

* The time at which the compute fleet was last modified. *

* * @return The time at which the compute fleet was last modified. */ public java.util.Date getLastModified() { return this.lastModified; } /** *

* The time at which the compute fleet was last modified. *

* * @param lastModified * The time at which the compute fleet was last modified. * @return Returns a reference to this object so that method calls can be chained together. */ public Fleet withLastModified(java.util.Date lastModified) { setLastModified(lastModified); return this; } /** *

* The status of the compute fleet. *

* * @param status * The status of the compute fleet. */ public void setStatus(FleetStatus status) { this.status = status; } /** *

* The status of the compute fleet. *

* * @return The status of the compute fleet. */ public FleetStatus getStatus() { return this.status; } /** *

* The status of the compute fleet. *

* * @param status * The status of the compute fleet. * @return Returns a reference to this object so that method calls can be chained together. */ public Fleet withStatus(FleetStatus status) { setStatus(status); return this; } /** *

* The initial number of machines allocated to the compute fleet, which defines the number of builds that can run in * parallel. *

* * @param baseCapacity * The initial number of machines allocated to the compute fleet, which defines the number of builds that can * run in parallel. */ public void setBaseCapacity(Integer baseCapacity) { this.baseCapacity = baseCapacity; } /** *

* The initial number of machines allocated to the compute fleet, which defines the number of builds that can run in * parallel. *

* * @return The initial number of machines allocated to the compute fleet, which defines the number of builds that can * run in parallel. */ public Integer getBaseCapacity() { return this.baseCapacity; } /** *

* The initial number of machines allocated to the compute fleet, which defines the number of builds that can run in * parallel. *

* * @param baseCapacity * The initial number of machines allocated to the compute fleet, which defines the number of builds that can * run in parallel. * @return Returns a reference to this object so that method calls can be chained together. */ public Fleet withBaseCapacity(Integer baseCapacity) { setBaseCapacity(baseCapacity); return this; } /** *

* The environment type of the compute fleet. *

*
    *
  • *

    * The environment type ARM_CONTAINER is available only in regions US East (N. Virginia), US East * (Ohio), US West (Oregon), EU (Ireland), Asia Pacific (Mumbai), Asia Pacific (Tokyo), Asia Pacific (Singapore), * Asia Pacific (Sydney), EU (Frankfurt), and South America (São Paulo). *

    *
  • *
  • *

    * The environment type LINUX_CONTAINER is available only in regions US East (N. Virginia), US East * (Ohio), US West (Oregon), EU (Ireland), EU (Frankfurt), Asia Pacific (Tokyo), Asia Pacific (Singapore), Asia * Pacific (Sydney), South America (São Paulo), and Asia Pacific (Mumbai). *

    *
  • *
  • *

    * The environment type LINUX_GPU_CONTAINER is available only in regions US East (N. Virginia), US East * (Ohio), US West (Oregon), EU (Ireland), EU (Frankfurt), Asia Pacific (Tokyo), and Asia Pacific (Sydney). *

    *
  • *
  • *

    * The environment type WINDOWS_SERVER_2019_CONTAINER is available only in regions US East (N. * Virginia), US East (Ohio), US West (Oregon), Asia Pacific (Sydney), Asia Pacific (Tokyo), Asia Pacific (Mumbai) * and EU (Ireland). *

    *
  • *
  • *

    * The environment type WINDOWS_SERVER_2022_CONTAINER is available only in regions US East (N. * Virginia), US East (Ohio), US West (Oregon), EU (Ireland), EU (Frankfurt), Asia Pacific (Sydney), Asia Pacific * (Singapore), Asia Pacific (Tokyo), South America (São Paulo) and Asia Pacific (Mumbai). *

    *
  • *
*

* For more information, see Build environment * compute types in the CodeBuild user guide. *

* * @param environmentType * The environment type of the compute fleet.

*
    *
  • *

    * The environment type ARM_CONTAINER is available only in regions US East (N. Virginia), US * East (Ohio), US West (Oregon), EU (Ireland), Asia Pacific (Mumbai), Asia Pacific (Tokyo), Asia Pacific * (Singapore), Asia Pacific (Sydney), EU (Frankfurt), and South America (São Paulo). *

    *
  • *
  • *

    * The environment type LINUX_CONTAINER is available only in regions US East (N. Virginia), US * East (Ohio), US West (Oregon), EU (Ireland), EU (Frankfurt), Asia Pacific (Tokyo), Asia Pacific * (Singapore), Asia Pacific (Sydney), South America (São Paulo), and Asia Pacific (Mumbai). *

    *
  • *
  • *

    * The environment type LINUX_GPU_CONTAINER is available only in regions US East (N. Virginia), * US East (Ohio), US West (Oregon), EU (Ireland), EU (Frankfurt), Asia Pacific (Tokyo), and Asia Pacific * (Sydney). *

    *
  • *
  • *

    * The environment type WINDOWS_SERVER_2019_CONTAINER is available only in regions US East (N. * Virginia), US East (Ohio), US West (Oregon), Asia Pacific (Sydney), Asia Pacific (Tokyo), Asia Pacific * (Mumbai) and EU (Ireland). *

    *
  • *
  • *

    * The environment type WINDOWS_SERVER_2022_CONTAINER is available only in regions US East (N. * Virginia), US East (Ohio), US West (Oregon), EU (Ireland), EU (Frankfurt), Asia Pacific (Sydney), Asia * Pacific (Singapore), Asia Pacific (Tokyo), South America (São Paulo) and Asia Pacific (Mumbai). *

    *
  • *
*

* For more information, see Build * environment compute types in the CodeBuild user guide. * @see EnvironmentType */ public void setEnvironmentType(String environmentType) { this.environmentType = environmentType; } /** *

* The environment type of the compute fleet. *

*
    *
  • *

    * The environment type ARM_CONTAINER is available only in regions US East (N. Virginia), US East * (Ohio), US West (Oregon), EU (Ireland), Asia Pacific (Mumbai), Asia Pacific (Tokyo), Asia Pacific (Singapore), * Asia Pacific (Sydney), EU (Frankfurt), and South America (São Paulo). *

    *
  • *
  • *

    * The environment type LINUX_CONTAINER is available only in regions US East (N. Virginia), US East * (Ohio), US West (Oregon), EU (Ireland), EU (Frankfurt), Asia Pacific (Tokyo), Asia Pacific (Singapore), Asia * Pacific (Sydney), South America (São Paulo), and Asia Pacific (Mumbai). *

    *
  • *
  • *

    * The environment type LINUX_GPU_CONTAINER is available only in regions US East (N. Virginia), US East * (Ohio), US West (Oregon), EU (Ireland), EU (Frankfurt), Asia Pacific (Tokyo), and Asia Pacific (Sydney). *

    *
  • *
  • *

    * The environment type WINDOWS_SERVER_2019_CONTAINER is available only in regions US East (N. * Virginia), US East (Ohio), US West (Oregon), Asia Pacific (Sydney), Asia Pacific (Tokyo), Asia Pacific (Mumbai) * and EU (Ireland). *

    *
  • *
  • *

    * The environment type WINDOWS_SERVER_2022_CONTAINER is available only in regions US East (N. * Virginia), US East (Ohio), US West (Oregon), EU (Ireland), EU (Frankfurt), Asia Pacific (Sydney), Asia Pacific * (Singapore), Asia Pacific (Tokyo), South America (São Paulo) and Asia Pacific (Mumbai). *

    *
  • *
*

* For more information, see Build environment * compute types in the CodeBuild user guide. *

* * @return The environment type of the compute fleet.

*
    *
  • *

    * The environment type ARM_CONTAINER is available only in regions US East (N. Virginia), US * East (Ohio), US West (Oregon), EU (Ireland), Asia Pacific (Mumbai), Asia Pacific (Tokyo), Asia Pacific * (Singapore), Asia Pacific (Sydney), EU (Frankfurt), and South America (São Paulo). *

    *
  • *
  • *

    * The environment type LINUX_CONTAINER is available only in regions US East (N. Virginia), US * East (Ohio), US West (Oregon), EU (Ireland), EU (Frankfurt), Asia Pacific (Tokyo), Asia Pacific * (Singapore), Asia Pacific (Sydney), South America (São Paulo), and Asia Pacific (Mumbai). *

    *
  • *
  • *

    * The environment type LINUX_GPU_CONTAINER is available only in regions US East (N. Virginia), * US East (Ohio), US West (Oregon), EU (Ireland), EU (Frankfurt), Asia Pacific (Tokyo), and Asia Pacific * (Sydney). *

    *
  • *
  • *

    * The environment type WINDOWS_SERVER_2019_CONTAINER is available only in regions US East (N. * Virginia), US East (Ohio), US West (Oregon), Asia Pacific (Sydney), Asia Pacific (Tokyo), Asia Pacific * (Mumbai) and EU (Ireland). *

    *
  • *
  • *

    * The environment type WINDOWS_SERVER_2022_CONTAINER is available only in regions US East (N. * Virginia), US East (Ohio), US West (Oregon), EU (Ireland), EU (Frankfurt), Asia Pacific (Sydney), Asia * Pacific (Singapore), Asia Pacific (Tokyo), South America (São Paulo) and Asia Pacific (Mumbai). *

    *
  • *
*

* For more information, see Build * environment compute types in the CodeBuild user guide. * @see EnvironmentType */ public String getEnvironmentType() { return this.environmentType; } /** *

* The environment type of the compute fleet. *

*
    *
  • *

    * The environment type ARM_CONTAINER is available only in regions US East (N. Virginia), US East * (Ohio), US West (Oregon), EU (Ireland), Asia Pacific (Mumbai), Asia Pacific (Tokyo), Asia Pacific (Singapore), * Asia Pacific (Sydney), EU (Frankfurt), and South America (São Paulo). *

    *
  • *
  • *

    * The environment type LINUX_CONTAINER is available only in regions US East (N. Virginia), US East * (Ohio), US West (Oregon), EU (Ireland), EU (Frankfurt), Asia Pacific (Tokyo), Asia Pacific (Singapore), Asia * Pacific (Sydney), South America (São Paulo), and Asia Pacific (Mumbai). *

    *
  • *
  • *

    * The environment type LINUX_GPU_CONTAINER is available only in regions US East (N. Virginia), US East * (Ohio), US West (Oregon), EU (Ireland), EU (Frankfurt), Asia Pacific (Tokyo), and Asia Pacific (Sydney). *

    *
  • *
  • *

    * The environment type WINDOWS_SERVER_2019_CONTAINER is available only in regions US East (N. * Virginia), US East (Ohio), US West (Oregon), Asia Pacific (Sydney), Asia Pacific (Tokyo), Asia Pacific (Mumbai) * and EU (Ireland). *

    *
  • *
  • *

    * The environment type WINDOWS_SERVER_2022_CONTAINER is available only in regions US East (N. * Virginia), US East (Ohio), US West (Oregon), EU (Ireland), EU (Frankfurt), Asia Pacific (Sydney), Asia Pacific * (Singapore), Asia Pacific (Tokyo), South America (São Paulo) and Asia Pacific (Mumbai). *

    *
  • *
*

* For more information, see Build environment * compute types in the CodeBuild user guide. *

* * @param environmentType * The environment type of the compute fleet.

*
    *
  • *

    * The environment type ARM_CONTAINER is available only in regions US East (N. Virginia), US * East (Ohio), US West (Oregon), EU (Ireland), Asia Pacific (Mumbai), Asia Pacific (Tokyo), Asia Pacific * (Singapore), Asia Pacific (Sydney), EU (Frankfurt), and South America (São Paulo). *

    *
  • *
  • *

    * The environment type LINUX_CONTAINER is available only in regions US East (N. Virginia), US * East (Ohio), US West (Oregon), EU (Ireland), EU (Frankfurt), Asia Pacific (Tokyo), Asia Pacific * (Singapore), Asia Pacific (Sydney), South America (São Paulo), and Asia Pacific (Mumbai). *

    *
  • *
  • *

    * The environment type LINUX_GPU_CONTAINER is available only in regions US East (N. Virginia), * US East (Ohio), US West (Oregon), EU (Ireland), EU (Frankfurt), Asia Pacific (Tokyo), and Asia Pacific * (Sydney). *

    *
  • *
  • *

    * The environment type WINDOWS_SERVER_2019_CONTAINER is available only in regions US East (N. * Virginia), US East (Ohio), US West (Oregon), Asia Pacific (Sydney), Asia Pacific (Tokyo), Asia Pacific * (Mumbai) and EU (Ireland). *

    *
  • *
  • *

    * The environment type WINDOWS_SERVER_2022_CONTAINER is available only in regions US East (N. * Virginia), US East (Ohio), US West (Oregon), EU (Ireland), EU (Frankfurt), Asia Pacific (Sydney), Asia * Pacific (Singapore), Asia Pacific (Tokyo), South America (São Paulo) and Asia Pacific (Mumbai). *

    *
  • *
*

* For more information, see Build * environment compute types in the CodeBuild user guide. * @return Returns a reference to this object so that method calls can be chained together. * @see EnvironmentType */ public Fleet withEnvironmentType(String environmentType) { setEnvironmentType(environmentType); return this; } /** *

* The environment type of the compute fleet. *

*
    *
  • *

    * The environment type ARM_CONTAINER is available only in regions US East (N. Virginia), US East * (Ohio), US West (Oregon), EU (Ireland), Asia Pacific (Mumbai), Asia Pacific (Tokyo), Asia Pacific (Singapore), * Asia Pacific (Sydney), EU (Frankfurt), and South America (São Paulo). *

    *
  • *
  • *

    * The environment type LINUX_CONTAINER is available only in regions US East (N. Virginia), US East * (Ohio), US West (Oregon), EU (Ireland), EU (Frankfurt), Asia Pacific (Tokyo), Asia Pacific (Singapore), Asia * Pacific (Sydney), South America (São Paulo), and Asia Pacific (Mumbai). *

    *
  • *
  • *

    * The environment type LINUX_GPU_CONTAINER is available only in regions US East (N. Virginia), US East * (Ohio), US West (Oregon), EU (Ireland), EU (Frankfurt), Asia Pacific (Tokyo), and Asia Pacific (Sydney). *

    *
  • *
  • *

    * The environment type WINDOWS_SERVER_2019_CONTAINER is available only in regions US East (N. * Virginia), US East (Ohio), US West (Oregon), Asia Pacific (Sydney), Asia Pacific (Tokyo), Asia Pacific (Mumbai) * and EU (Ireland). *

    *
  • *
  • *

    * The environment type WINDOWS_SERVER_2022_CONTAINER is available only in regions US East (N. * Virginia), US East (Ohio), US West (Oregon), EU (Ireland), EU (Frankfurt), Asia Pacific (Sydney), Asia Pacific * (Singapore), Asia Pacific (Tokyo), South America (São Paulo) and Asia Pacific (Mumbai). *

    *
  • *
*

* For more information, see Build environment * compute types in the CodeBuild user guide. *

* * @param environmentType * The environment type of the compute fleet.

*
    *
  • *

    * The environment type ARM_CONTAINER is available only in regions US East (N. Virginia), US * East (Ohio), US West (Oregon), EU (Ireland), Asia Pacific (Mumbai), Asia Pacific (Tokyo), Asia Pacific * (Singapore), Asia Pacific (Sydney), EU (Frankfurt), and South America (São Paulo). *

    *
  • *
  • *

    * The environment type LINUX_CONTAINER is available only in regions US East (N. Virginia), US * East (Ohio), US West (Oregon), EU (Ireland), EU (Frankfurt), Asia Pacific (Tokyo), Asia Pacific * (Singapore), Asia Pacific (Sydney), South America (São Paulo), and Asia Pacific (Mumbai). *

    *
  • *
  • *

    * The environment type LINUX_GPU_CONTAINER is available only in regions US East (N. Virginia), * US East (Ohio), US West (Oregon), EU (Ireland), EU (Frankfurt), Asia Pacific (Tokyo), and Asia Pacific * (Sydney). *

    *
  • *
  • *

    * The environment type WINDOWS_SERVER_2019_CONTAINER is available only in regions US East (N. * Virginia), US East (Ohio), US West (Oregon), Asia Pacific (Sydney), Asia Pacific (Tokyo), Asia Pacific * (Mumbai) and EU (Ireland). *

    *
  • *
  • *

    * The environment type WINDOWS_SERVER_2022_CONTAINER is available only in regions US East (N. * Virginia), US East (Ohio), US West (Oregon), EU (Ireland), EU (Frankfurt), Asia Pacific (Sydney), Asia * Pacific (Singapore), Asia Pacific (Tokyo), South America (São Paulo) and Asia Pacific (Mumbai). *

    *
  • *
*

* For more information, see Build * environment compute types in the CodeBuild user guide. * @return Returns a reference to this object so that method calls can be chained together. * @see EnvironmentType */ public Fleet withEnvironmentType(EnvironmentType environmentType) { this.environmentType = environmentType.toString(); return this; } /** *

* Information about the compute resources the compute fleet uses. Available values include: *

*
    *
  • *

    * BUILD_GENERAL1_SMALL: Use up to 3 GB memory and 2 vCPUs for builds. *

    *
  • *
  • *

    * BUILD_GENERAL1_MEDIUM: Use up to 7 GB memory and 4 vCPUs for builds. *

    *
  • *
  • *

    * BUILD_GENERAL1_LARGE: Use up to 16 GB memory and 8 vCPUs for builds, depending on your environment * type. *

    *
  • *
  • *

    * BUILD_GENERAL1_XLARGE: Use up to 70 GB memory and 36 vCPUs for builds, depending on your environment * type. *

    *
  • *
  • *

    * BUILD_GENERAL1_2XLARGE: Use up to 145 GB memory, 72 vCPUs, and 824 GB of SSD storage for builds. * This compute type supports Docker images up to 100 GB uncompressed. *

    *
  • *
*

* If you use BUILD_GENERAL1_SMALL: *

*
    *
  • *

    * For environment type LINUX_CONTAINER, you can use up to 3 GB memory and 2 vCPUs for builds. *

    *
  • *
  • *

    * For environment type LINUX_GPU_CONTAINER, you can use up to 16 GB memory, 4 vCPUs, and 1 NVIDIA A10G * Tensor Core GPU for builds. *

    *
  • *
  • *

    * For environment type ARM_CONTAINER, you can use up to 4 GB memory and 2 vCPUs on ARM-based * processors for builds. *

    *
  • *
*

* If you use BUILD_GENERAL1_LARGE: *

*
    *
  • *

    * For environment type LINUX_CONTAINER, you can use up to 15 GB memory and 8 vCPUs for builds. *

    *
  • *
  • *

    * For environment type LINUX_GPU_CONTAINER, you can use up to 255 GB memory, 32 vCPUs, and 4 NVIDIA * Tesla V100 GPUs for builds. *

    *
  • *
  • *

    * For environment type ARM_CONTAINER, you can use up to 16 GB memory and 8 vCPUs on ARM-based * processors for builds. *

    *
  • *
*

* For more information, see Build environment * compute types in the CodeBuild User Guide. *

* * @param computeType * Information about the compute resources the compute fleet uses. Available values include:

*
    *
  • *

    * BUILD_GENERAL1_SMALL: Use up to 3 GB memory and 2 vCPUs for builds. *

    *
  • *
  • *

    * BUILD_GENERAL1_MEDIUM: Use up to 7 GB memory and 4 vCPUs for builds. *

    *
  • *
  • *

    * BUILD_GENERAL1_LARGE: Use up to 16 GB memory and 8 vCPUs for builds, depending on your * environment type. *

    *
  • *
  • *

    * BUILD_GENERAL1_XLARGE: Use up to 70 GB memory and 36 vCPUs for builds, depending on your * environment type. *

    *
  • *
  • *

    * BUILD_GENERAL1_2XLARGE: Use up to 145 GB memory, 72 vCPUs, and 824 GB of SSD storage for * builds. This compute type supports Docker images up to 100 GB uncompressed. *

    *
  • *
*

* If you use BUILD_GENERAL1_SMALL: *

*
    *
  • *

    * For environment type LINUX_CONTAINER, you can use up to 3 GB memory and 2 vCPUs for builds. *

    *
  • *
  • *

    * For environment type LINUX_GPU_CONTAINER, you can use up to 16 GB memory, 4 vCPUs, and 1 * NVIDIA A10G Tensor Core GPU for builds. *

    *
  • *
  • *

    * For environment type ARM_CONTAINER, you can use up to 4 GB memory and 2 vCPUs on ARM-based * processors for builds. *

    *
  • *
*

* If you use BUILD_GENERAL1_LARGE: *

*
    *
  • *

    * For environment type LINUX_CONTAINER, you can use up to 15 GB memory and 8 vCPUs for builds. *

    *
  • *
  • *

    * For environment type LINUX_GPU_CONTAINER, you can use up to 255 GB memory, 32 vCPUs, and 4 * NVIDIA Tesla V100 GPUs for builds. *

    *
  • *
  • *

    * For environment type ARM_CONTAINER, you can use up to 16 GB memory and 8 vCPUs on ARM-based * processors for builds. *

    *
  • *
*

* For more information, see Build * environment compute types in the CodeBuild User Guide. * @see ComputeType */ public void setComputeType(String computeType) { this.computeType = computeType; } /** *

* Information about the compute resources the compute fleet uses. Available values include: *

*
    *
  • *

    * BUILD_GENERAL1_SMALL: Use up to 3 GB memory and 2 vCPUs for builds. *

    *
  • *
  • *

    * BUILD_GENERAL1_MEDIUM: Use up to 7 GB memory and 4 vCPUs for builds. *

    *
  • *
  • *

    * BUILD_GENERAL1_LARGE: Use up to 16 GB memory and 8 vCPUs for builds, depending on your environment * type. *

    *
  • *
  • *

    * BUILD_GENERAL1_XLARGE: Use up to 70 GB memory and 36 vCPUs for builds, depending on your environment * type. *

    *
  • *
  • *

    * BUILD_GENERAL1_2XLARGE: Use up to 145 GB memory, 72 vCPUs, and 824 GB of SSD storage for builds. * This compute type supports Docker images up to 100 GB uncompressed. *

    *
  • *
*

* If you use BUILD_GENERAL1_SMALL: *

*
    *
  • *

    * For environment type LINUX_CONTAINER, you can use up to 3 GB memory and 2 vCPUs for builds. *

    *
  • *
  • *

    * For environment type LINUX_GPU_CONTAINER, you can use up to 16 GB memory, 4 vCPUs, and 1 NVIDIA A10G * Tensor Core GPU for builds. *

    *
  • *
  • *

    * For environment type ARM_CONTAINER, you can use up to 4 GB memory and 2 vCPUs on ARM-based * processors for builds. *

    *
  • *
*

* If you use BUILD_GENERAL1_LARGE: *

*
    *
  • *

    * For environment type LINUX_CONTAINER, you can use up to 15 GB memory and 8 vCPUs for builds. *

    *
  • *
  • *

    * For environment type LINUX_GPU_CONTAINER, you can use up to 255 GB memory, 32 vCPUs, and 4 NVIDIA * Tesla V100 GPUs for builds. *

    *
  • *
  • *

    * For environment type ARM_CONTAINER, you can use up to 16 GB memory and 8 vCPUs on ARM-based * processors for builds. *

    *
  • *
*

* For more information, see Build environment * compute types in the CodeBuild User Guide. *

* * @return Information about the compute resources the compute fleet uses. Available values include:

*
    *
  • *

    * BUILD_GENERAL1_SMALL: Use up to 3 GB memory and 2 vCPUs for builds. *

    *
  • *
  • *

    * BUILD_GENERAL1_MEDIUM: Use up to 7 GB memory and 4 vCPUs for builds. *

    *
  • *
  • *

    * BUILD_GENERAL1_LARGE: Use up to 16 GB memory and 8 vCPUs for builds, depending on your * environment type. *

    *
  • *
  • *

    * BUILD_GENERAL1_XLARGE: Use up to 70 GB memory and 36 vCPUs for builds, depending on your * environment type. *

    *
  • *
  • *

    * BUILD_GENERAL1_2XLARGE: Use up to 145 GB memory, 72 vCPUs, and 824 GB of SSD storage for * builds. This compute type supports Docker images up to 100 GB uncompressed. *

    *
  • *
*

* If you use BUILD_GENERAL1_SMALL: *

*
    *
  • *

    * For environment type LINUX_CONTAINER, you can use up to 3 GB memory and 2 vCPUs for builds. *

    *
  • *
  • *

    * For environment type LINUX_GPU_CONTAINER, you can use up to 16 GB memory, 4 vCPUs, and 1 * NVIDIA A10G Tensor Core GPU for builds. *

    *
  • *
  • *

    * For environment type ARM_CONTAINER, you can use up to 4 GB memory and 2 vCPUs on ARM-based * processors for builds. *

    *
  • *
*

* If you use BUILD_GENERAL1_LARGE: *

*
    *
  • *

    * For environment type LINUX_CONTAINER, you can use up to 15 GB memory and 8 vCPUs for builds. *

    *
  • *
  • *

    * For environment type LINUX_GPU_CONTAINER, you can use up to 255 GB memory, 32 vCPUs, and 4 * NVIDIA Tesla V100 GPUs for builds. *

    *
  • *
  • *

    * For environment type ARM_CONTAINER, you can use up to 16 GB memory and 8 vCPUs on ARM-based * processors for builds. *

    *
  • *
*

* For more information, see Build * environment compute types in the CodeBuild User Guide. * @see ComputeType */ public String getComputeType() { return this.computeType; } /** *

* Information about the compute resources the compute fleet uses. Available values include: *

*
    *
  • *

    * BUILD_GENERAL1_SMALL: Use up to 3 GB memory and 2 vCPUs for builds. *

    *
  • *
  • *

    * BUILD_GENERAL1_MEDIUM: Use up to 7 GB memory and 4 vCPUs for builds. *

    *
  • *
  • *

    * BUILD_GENERAL1_LARGE: Use up to 16 GB memory and 8 vCPUs for builds, depending on your environment * type. *

    *
  • *
  • *

    * BUILD_GENERAL1_XLARGE: Use up to 70 GB memory and 36 vCPUs for builds, depending on your environment * type. *

    *
  • *
  • *

    * BUILD_GENERAL1_2XLARGE: Use up to 145 GB memory, 72 vCPUs, and 824 GB of SSD storage for builds. * This compute type supports Docker images up to 100 GB uncompressed. *

    *
  • *
*

* If you use BUILD_GENERAL1_SMALL: *

*
    *
  • *

    * For environment type LINUX_CONTAINER, you can use up to 3 GB memory and 2 vCPUs for builds. *

    *
  • *
  • *

    * For environment type LINUX_GPU_CONTAINER, you can use up to 16 GB memory, 4 vCPUs, and 1 NVIDIA A10G * Tensor Core GPU for builds. *

    *
  • *
  • *

    * For environment type ARM_CONTAINER, you can use up to 4 GB memory and 2 vCPUs on ARM-based * processors for builds. *

    *
  • *
*

* If you use BUILD_GENERAL1_LARGE: *

*
    *
  • *

    * For environment type LINUX_CONTAINER, you can use up to 15 GB memory and 8 vCPUs for builds. *

    *
  • *
  • *

    * For environment type LINUX_GPU_CONTAINER, you can use up to 255 GB memory, 32 vCPUs, and 4 NVIDIA * Tesla V100 GPUs for builds. *

    *
  • *
  • *

    * For environment type ARM_CONTAINER, you can use up to 16 GB memory and 8 vCPUs on ARM-based * processors for builds. *

    *
  • *
*

* For more information, see Build environment * compute types in the CodeBuild User Guide. *

* * @param computeType * Information about the compute resources the compute fleet uses. Available values include:

*
    *
  • *

    * BUILD_GENERAL1_SMALL: Use up to 3 GB memory and 2 vCPUs for builds. *

    *
  • *
  • *

    * BUILD_GENERAL1_MEDIUM: Use up to 7 GB memory and 4 vCPUs for builds. *

    *
  • *
  • *

    * BUILD_GENERAL1_LARGE: Use up to 16 GB memory and 8 vCPUs for builds, depending on your * environment type. *

    *
  • *
  • *

    * BUILD_GENERAL1_XLARGE: Use up to 70 GB memory and 36 vCPUs for builds, depending on your * environment type. *

    *
  • *
  • *

    * BUILD_GENERAL1_2XLARGE: Use up to 145 GB memory, 72 vCPUs, and 824 GB of SSD storage for * builds. This compute type supports Docker images up to 100 GB uncompressed. *

    *
  • *
*

* If you use BUILD_GENERAL1_SMALL: *

*
    *
  • *

    * For environment type LINUX_CONTAINER, you can use up to 3 GB memory and 2 vCPUs for builds. *

    *
  • *
  • *

    * For environment type LINUX_GPU_CONTAINER, you can use up to 16 GB memory, 4 vCPUs, and 1 * NVIDIA A10G Tensor Core GPU for builds. *

    *
  • *
  • *

    * For environment type ARM_CONTAINER, you can use up to 4 GB memory and 2 vCPUs on ARM-based * processors for builds. *

    *
  • *
*

* If you use BUILD_GENERAL1_LARGE: *

*
    *
  • *

    * For environment type LINUX_CONTAINER, you can use up to 15 GB memory and 8 vCPUs for builds. *

    *
  • *
  • *

    * For environment type LINUX_GPU_CONTAINER, you can use up to 255 GB memory, 32 vCPUs, and 4 * NVIDIA Tesla V100 GPUs for builds. *

    *
  • *
  • *

    * For environment type ARM_CONTAINER, you can use up to 16 GB memory and 8 vCPUs on ARM-based * processors for builds. *

    *
  • *
*

* For more information, see Build * environment compute types in the CodeBuild User Guide. * @return Returns a reference to this object so that method calls can be chained together. * @see ComputeType */ public Fleet withComputeType(String computeType) { setComputeType(computeType); return this; } /** *

* Information about the compute resources the compute fleet uses. Available values include: *

*
    *
  • *

    * BUILD_GENERAL1_SMALL: Use up to 3 GB memory and 2 vCPUs for builds. *

    *
  • *
  • *

    * BUILD_GENERAL1_MEDIUM: Use up to 7 GB memory and 4 vCPUs for builds. *

    *
  • *
  • *

    * BUILD_GENERAL1_LARGE: Use up to 16 GB memory and 8 vCPUs for builds, depending on your environment * type. *

    *
  • *
  • *

    * BUILD_GENERAL1_XLARGE: Use up to 70 GB memory and 36 vCPUs for builds, depending on your environment * type. *

    *
  • *
  • *

    * BUILD_GENERAL1_2XLARGE: Use up to 145 GB memory, 72 vCPUs, and 824 GB of SSD storage for builds. * This compute type supports Docker images up to 100 GB uncompressed. *

    *
  • *
*

* If you use BUILD_GENERAL1_SMALL: *

*
    *
  • *

    * For environment type LINUX_CONTAINER, you can use up to 3 GB memory and 2 vCPUs for builds. *

    *
  • *
  • *

    * For environment type LINUX_GPU_CONTAINER, you can use up to 16 GB memory, 4 vCPUs, and 1 NVIDIA A10G * Tensor Core GPU for builds. *

    *
  • *
  • *

    * For environment type ARM_CONTAINER, you can use up to 4 GB memory and 2 vCPUs on ARM-based * processors for builds. *

    *
  • *
*

* If you use BUILD_GENERAL1_LARGE: *

*
    *
  • *

    * For environment type LINUX_CONTAINER, you can use up to 15 GB memory and 8 vCPUs for builds. *

    *
  • *
  • *

    * For environment type LINUX_GPU_CONTAINER, you can use up to 255 GB memory, 32 vCPUs, and 4 NVIDIA * Tesla V100 GPUs for builds. *

    *
  • *
  • *

    * For environment type ARM_CONTAINER, you can use up to 16 GB memory and 8 vCPUs on ARM-based * processors for builds. *

    *
  • *
*

* For more information, see Build environment * compute types in the CodeBuild User Guide. *

* * @param computeType * Information about the compute resources the compute fleet uses. Available values include:

*
    *
  • *

    * BUILD_GENERAL1_SMALL: Use up to 3 GB memory and 2 vCPUs for builds. *

    *
  • *
  • *

    * BUILD_GENERAL1_MEDIUM: Use up to 7 GB memory and 4 vCPUs for builds. *

    *
  • *
  • *

    * BUILD_GENERAL1_LARGE: Use up to 16 GB memory and 8 vCPUs for builds, depending on your * environment type. *

    *
  • *
  • *

    * BUILD_GENERAL1_XLARGE: Use up to 70 GB memory and 36 vCPUs for builds, depending on your * environment type. *

    *
  • *
  • *

    * BUILD_GENERAL1_2XLARGE: Use up to 145 GB memory, 72 vCPUs, and 824 GB of SSD storage for * builds. This compute type supports Docker images up to 100 GB uncompressed. *

    *
  • *
*

* If you use BUILD_GENERAL1_SMALL: *

*
    *
  • *

    * For environment type LINUX_CONTAINER, you can use up to 3 GB memory and 2 vCPUs for builds. *

    *
  • *
  • *

    * For environment type LINUX_GPU_CONTAINER, you can use up to 16 GB memory, 4 vCPUs, and 1 * NVIDIA A10G Tensor Core GPU for builds. *

    *
  • *
  • *

    * For environment type ARM_CONTAINER, you can use up to 4 GB memory and 2 vCPUs on ARM-based * processors for builds. *

    *
  • *
*

* If you use BUILD_GENERAL1_LARGE: *

*
    *
  • *

    * For environment type LINUX_CONTAINER, you can use up to 15 GB memory and 8 vCPUs for builds. *

    *
  • *
  • *

    * For environment type LINUX_GPU_CONTAINER, you can use up to 255 GB memory, 32 vCPUs, and 4 * NVIDIA Tesla V100 GPUs for builds. *

    *
  • *
  • *

    * For environment type ARM_CONTAINER, you can use up to 16 GB memory and 8 vCPUs on ARM-based * processors for builds. *

    *
  • *
*

* For more information, see Build * environment compute types in the CodeBuild User Guide. * @return Returns a reference to this object so that method calls can be chained together. * @see ComputeType */ public Fleet withComputeType(ComputeType computeType) { this.computeType = computeType.toString(); return this; } /** *

* The scaling configuration of the compute fleet. *

* * @param scalingConfiguration * The scaling configuration of the compute fleet. */ public void setScalingConfiguration(ScalingConfigurationOutput scalingConfiguration) { this.scalingConfiguration = scalingConfiguration; } /** *

* The scaling configuration of the compute fleet. *

* * @return The scaling configuration of the compute fleet. */ public ScalingConfigurationOutput getScalingConfiguration() { return this.scalingConfiguration; } /** *

* The scaling configuration of the compute fleet. *

* * @param scalingConfiguration * The scaling configuration of the compute fleet. * @return Returns a reference to this object so that method calls can be chained together. */ public Fleet withScalingConfiguration(ScalingConfigurationOutput scalingConfiguration) { setScalingConfiguration(scalingConfiguration); return this; } /** *

* The compute fleet overflow behavior. *

* * * @param overflowBehavior * The compute fleet overflow behavior.

*
    *
  • *

    * For overflow behavior QUEUE, your overflow builds need to wait on the existing fleet instance * to become available. *

    *
  • *
  • *

    * For overflow behavior ON_DEMAND, your overflow builds run on CodeBuild on-demand. *

    * *

    * If you choose to set your overflow behavior to on-demand while creating a VPC-connected fleet, make sure * that you add the required VPC permissions to your project service role. For more information, see Example policy statement to allow CodeBuild access to Amazon Web Services services required to create a * VPC network interface. *

    *
  • * @see FleetOverflowBehavior */ public void setOverflowBehavior(String overflowBehavior) { this.overflowBehavior = overflowBehavior; } /** *

    * The compute fleet overflow behavior. *

    * * * @return The compute fleet overflow behavior.

    *
      *
    • *

      * For overflow behavior QUEUE, your overflow builds need to wait on the existing fleet * instance to become available. *

      *
    • *
    • *

      * For overflow behavior ON_DEMAND, your overflow builds run on CodeBuild on-demand. *

      * *

      * If you choose to set your overflow behavior to on-demand while creating a VPC-connected fleet, make sure * that you add the required VPC permissions to your project service role. For more information, see Example policy statement to allow CodeBuild access to Amazon Web Services services required to create a * VPC network interface. *

      *
    • * @see FleetOverflowBehavior */ public String getOverflowBehavior() { return this.overflowBehavior; } /** *

      * The compute fleet overflow behavior. *

      * * * @param overflowBehavior * The compute fleet overflow behavior.

      *
        *
      • *

        * For overflow behavior QUEUE, your overflow builds need to wait on the existing fleet instance * to become available. *

        *
      • *
      • *

        * For overflow behavior ON_DEMAND, your overflow builds run on CodeBuild on-demand. *

        * *

        * If you choose to set your overflow behavior to on-demand while creating a VPC-connected fleet, make sure * that you add the required VPC permissions to your project service role. For more information, see Example policy statement to allow CodeBuild access to Amazon Web Services services required to create a * VPC network interface. *

        *
      • * @return Returns a reference to this object so that method calls can be chained together. * @see FleetOverflowBehavior */ public Fleet withOverflowBehavior(String overflowBehavior) { setOverflowBehavior(overflowBehavior); return this; } /** *

        * The compute fleet overflow behavior. *

        * * * @param overflowBehavior * The compute fleet overflow behavior.

        *
          *
        • *

          * For overflow behavior QUEUE, your overflow builds need to wait on the existing fleet instance * to become available. *

          *
        • *
        • *

          * For overflow behavior ON_DEMAND, your overflow builds run on CodeBuild on-demand. *

          * *

          * If you choose to set your overflow behavior to on-demand while creating a VPC-connected fleet, make sure * that you add the required VPC permissions to your project service role. For more information, see Example policy statement to allow CodeBuild access to Amazon Web Services services required to create a * VPC network interface. *

          *
        • * @return Returns a reference to this object so that method calls can be chained together. * @see FleetOverflowBehavior */ public Fleet withOverflowBehavior(FleetOverflowBehavior overflowBehavior) { this.overflowBehavior = overflowBehavior.toString(); return this; } /** * @param vpcConfig */ public void setVpcConfig(VpcConfig vpcConfig) { this.vpcConfig = vpcConfig; } /** * @return */ public VpcConfig getVpcConfig() { return this.vpcConfig; } /** * @param vpcConfig * @return Returns a reference to this object so that method calls can be chained together. */ public Fleet withVpcConfig(VpcConfig vpcConfig) { setVpcConfig(vpcConfig); return this; } /** *

          * The service role associated with the compute fleet. For more information, see Allow a user to add a permission policy for a fleet service role in the CodeBuild User Guide. *

          * * @param fleetServiceRole * The service role associated with the compute fleet. For more information, see Allow a user to add a permission policy for a fleet service role in the CodeBuild User Guide. */ public void setFleetServiceRole(String fleetServiceRole) { this.fleetServiceRole = fleetServiceRole; } /** *

          * The service role associated with the compute fleet. For more information, see Allow a user to add a permission policy for a fleet service role in the CodeBuild User Guide. *

          * * @return The service role associated with the compute fleet. For more information, see Allow a user to add a permission policy for a fleet service role in the CodeBuild User * Guide. */ public String getFleetServiceRole() { return this.fleetServiceRole; } /** *

          * The service role associated with the compute fleet. For more information, see Allow a user to add a permission policy for a fleet service role in the CodeBuild User Guide. *

          * * @param fleetServiceRole * The service role associated with the compute fleet. For more information, see Allow a user to add a permission policy for a fleet service role in the CodeBuild User Guide. * @return Returns a reference to this object so that method calls can be chained together. */ public Fleet withFleetServiceRole(String fleetServiceRole) { setFleetServiceRole(fleetServiceRole); return this; } /** *

          * A list of tag key and value pairs associated with this compute fleet. *

          *

          * These tags are available for use by Amazon Web Services services that support CodeBuild build project tags. *

          * * @return A list of tag key and value pairs associated with this compute fleet.

          *

          * These tags are available for use by Amazon Web Services services that support CodeBuild build project * tags. */ public java.util.List getTags() { return tags; } /** *

          * A list of tag key and value pairs associated with this compute fleet. *

          *

          * These tags are available for use by Amazon Web Services services that support CodeBuild build project tags. *

          * * @param tags * A list of tag key and value pairs associated with this compute fleet.

          *

          * These tags are available for use by Amazon Web Services services that support CodeBuild build project * tags. */ public void setTags(java.util.Collection tags) { if (tags == null) { this.tags = null; return; } this.tags = new java.util.ArrayList(tags); } /** *

          * A list of tag key and value pairs associated with this compute fleet. *

          *

          * These tags are available for use by Amazon Web Services services that support CodeBuild build project 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. *

          * * @param tags * A list of tag key and value pairs associated with this compute fleet.

          *

          * These tags are available for use by Amazon Web Services services that support CodeBuild build project * tags. * @return Returns a reference to this object so that method calls can be chained together. */ public Fleet withTags(Tag... tags) { if (this.tags == null) { setTags(new java.util.ArrayList(tags.length)); } for (Tag ele : tags) { this.tags.add(ele); } return this; } /** *

          * A list of tag key and value pairs associated with this compute fleet. *

          *

          * These tags are available for use by Amazon Web Services services that support CodeBuild build project tags. *

          * * @param tags * A list of tag key and value pairs associated with this compute fleet.

          *

          * These tags are available for use by Amazon Web Services services that support CodeBuild build project * tags. * @return Returns a reference to this object so that method calls can be chained together. */ public Fleet withTags(java.util.Collection tags) { setTags(tags); return this; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getArn() != null) sb.append("Arn: ").append(getArn()).append(","); if (getName() != null) sb.append("Name: ").append(getName()).append(","); if (getId() != null) sb.append("Id: ").append(getId()).append(","); if (getCreated() != null) sb.append("Created: ").append(getCreated()).append(","); if (getLastModified() != null) sb.append("LastModified: ").append(getLastModified()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()).append(","); if (getBaseCapacity() != null) sb.append("BaseCapacity: ").append(getBaseCapacity()).append(","); if (getEnvironmentType() != null) sb.append("EnvironmentType: ").append(getEnvironmentType()).append(","); if (getComputeType() != null) sb.append("ComputeType: ").append(getComputeType()).append(","); if (getScalingConfiguration() != null) sb.append("ScalingConfiguration: ").append(getScalingConfiguration()).append(","); if (getOverflowBehavior() != null) sb.append("OverflowBehavior: ").append(getOverflowBehavior()).append(","); if (getVpcConfig() != null) sb.append("VpcConfig: ").append(getVpcConfig()).append(","); if (getFleetServiceRole() != null) sb.append("FleetServiceRole: ").append(getFleetServiceRole()).append(","); if (getTags() != null) sb.append("Tags: ").append(getTags()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof Fleet == false) return false; Fleet other = (Fleet) obj; if (other.getArn() == null ^ this.getArn() == null) return false; if (other.getArn() != null && other.getArn().equals(this.getArn()) == false) return false; if (other.getName() == null ^ this.getName() == null) return false; if (other.getName() != null && other.getName().equals(this.getName()) == false) return false; if (other.getId() == null ^ this.getId() == null) return false; if (other.getId() != null && other.getId().equals(this.getId()) == false) return false; if (other.getCreated() == null ^ this.getCreated() == null) return false; if (other.getCreated() != null && other.getCreated().equals(this.getCreated()) == false) return false; if (other.getLastModified() == null ^ this.getLastModified() == null) return false; if (other.getLastModified() != null && other.getLastModified().equals(this.getLastModified()) == false) return false; if (other.getStatus() == null ^ this.getStatus() == null) return false; if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) return false; if (other.getBaseCapacity() == null ^ this.getBaseCapacity() == null) return false; if (other.getBaseCapacity() != null && other.getBaseCapacity().equals(this.getBaseCapacity()) == false) return false; if (other.getEnvironmentType() == null ^ this.getEnvironmentType() == null) return false; if (other.getEnvironmentType() != null && other.getEnvironmentType().equals(this.getEnvironmentType()) == false) return false; if (other.getComputeType() == null ^ this.getComputeType() == null) return false; if (other.getComputeType() != null && other.getComputeType().equals(this.getComputeType()) == false) return false; if (other.getScalingConfiguration() == null ^ this.getScalingConfiguration() == null) return false; if (other.getScalingConfiguration() != null && other.getScalingConfiguration().equals(this.getScalingConfiguration()) == false) return false; if (other.getOverflowBehavior() == null ^ this.getOverflowBehavior() == null) return false; if (other.getOverflowBehavior() != null && other.getOverflowBehavior().equals(this.getOverflowBehavior()) == false) return false; if (other.getVpcConfig() == null ^ this.getVpcConfig() == null) return false; if (other.getVpcConfig() != null && other.getVpcConfig().equals(this.getVpcConfig()) == false) return false; if (other.getFleetServiceRole() == null ^ this.getFleetServiceRole() == null) return false; if (other.getFleetServiceRole() != null && other.getFleetServiceRole().equals(this.getFleetServiceRole()) == false) return false; if (other.getTags() == null ^ this.getTags() == null) return false; if (other.getTags() != null && other.getTags().equals(this.getTags()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getArn() == null) ? 0 : getArn().hashCode()); hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getId() == null) ? 0 : getId().hashCode()); hashCode = prime * hashCode + ((getCreated() == null) ? 0 : getCreated().hashCode()); hashCode = prime * hashCode + ((getLastModified() == null) ? 0 : getLastModified().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getBaseCapacity() == null) ? 0 : getBaseCapacity().hashCode()); hashCode = prime * hashCode + ((getEnvironmentType() == null) ? 0 : getEnvironmentType().hashCode()); hashCode = prime * hashCode + ((getComputeType() == null) ? 0 : getComputeType().hashCode()); hashCode = prime * hashCode + ((getScalingConfiguration() == null) ? 0 : getScalingConfiguration().hashCode()); hashCode = prime * hashCode + ((getOverflowBehavior() == null) ? 0 : getOverflowBehavior().hashCode()); hashCode = prime * hashCode + ((getVpcConfig() == null) ? 0 : getVpcConfig().hashCode()); hashCode = prime * hashCode + ((getFleetServiceRole() == null) ? 0 : getFleetServiceRole().hashCode()); hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode()); return hashCode; } @Override public Fleet clone() { try { return (Fleet) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } @com.amazonaws.annotation.SdkInternalApi @Override public void marshall(ProtocolMarshaller protocolMarshaller) { com.amazonaws.services.codebuild.model.transform.FleetMarshaller.getInstance().marshall(this, protocolMarshaller); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy