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

software.amazon.awssdk.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: 2.29.39
Show newest version
/*
 * Copyright 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 software.amazon.awssdk.services.codebuild.model;

import java.io.Serializable;
import java.time.Instant;
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import java.util.function.BiConsumer;
import java.util.function.Consumer;
import java.util.function.Function;
import java.util.stream.Collectors;
import java.util.stream.Stream;
import software.amazon.awssdk.annotations.Generated;
import software.amazon.awssdk.core.SdkField;
import software.amazon.awssdk.core.SdkPojo;
import software.amazon.awssdk.core.protocol.MarshallLocation;
import software.amazon.awssdk.core.protocol.MarshallingType;
import software.amazon.awssdk.core.traits.ListTrait;
import software.amazon.awssdk.core.traits.LocationTrait;
import software.amazon.awssdk.core.util.DefaultSdkAutoConstructList;
import software.amazon.awssdk.core.util.SdkAutoConstructList;
import software.amazon.awssdk.utils.ToString;
import software.amazon.awssdk.utils.builder.CopyableBuilder;
import software.amazon.awssdk.utils.builder.ToCopyableBuilder;

/**
 * 

* A set of dedicated instances for your build environment. *

*/ @Generated("software.amazon.awssdk:codegen") public final class Fleet implements SdkPojo, Serializable, ToCopyableBuilder { private static final SdkField ARN_FIELD = SdkField. builder(MarshallingType.STRING).memberName("arn") .getter(getter(Fleet::arn)).setter(setter(Builder::arn)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("arn").build()).build(); private static final SdkField NAME_FIELD = SdkField. builder(MarshallingType.STRING).memberName("name") .getter(getter(Fleet::name)).setter(setter(Builder::name)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("name").build()).build(); private static final SdkField ID_FIELD = SdkField. builder(MarshallingType.STRING).memberName("id") .getter(getter(Fleet::id)).setter(setter(Builder::id)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("id").build()).build(); private static final SdkField CREATED_FIELD = SdkField. builder(MarshallingType.INSTANT) .memberName("created").getter(getter(Fleet::created)).setter(setter(Builder::created)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("created").build()).build(); private static final SdkField LAST_MODIFIED_FIELD = SdkField. builder(MarshallingType.INSTANT) .memberName("lastModified").getter(getter(Fleet::lastModified)).setter(setter(Builder::lastModified)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("lastModified").build()).build(); private static final SdkField STATUS_FIELD = SdkField. builder(MarshallingType.SDK_POJO) .memberName("status").getter(getter(Fleet::status)).setter(setter(Builder::status)).constructor(FleetStatus::builder) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("status").build()).build(); private static final SdkField BASE_CAPACITY_FIELD = SdkField. builder(MarshallingType.INTEGER) .memberName("baseCapacity").getter(getter(Fleet::baseCapacity)).setter(setter(Builder::baseCapacity)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("baseCapacity").build()).build(); private static final SdkField ENVIRONMENT_TYPE_FIELD = SdkField. builder(MarshallingType.STRING) .memberName("environmentType").getter(getter(Fleet::environmentTypeAsString)) .setter(setter(Builder::environmentType)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("environmentType").build()).build(); private static final SdkField COMPUTE_TYPE_FIELD = SdkField. builder(MarshallingType.STRING) .memberName("computeType").getter(getter(Fleet::computeTypeAsString)).setter(setter(Builder::computeType)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("computeType").build()).build(); private static final SdkField SCALING_CONFIGURATION_FIELD = SdkField . builder(MarshallingType.SDK_POJO).memberName("scalingConfiguration") .getter(getter(Fleet::scalingConfiguration)).setter(setter(Builder::scalingConfiguration)) .constructor(ScalingConfigurationOutput::builder) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("scalingConfiguration").build()) .build(); private static final SdkField> TAGS_FIELD = SdkField .> builder(MarshallingType.LIST) .memberName("tags") .getter(getter(Fleet::tags)) .setter(setter(Builder::tags)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("tags").build(), ListTrait .builder() .memberLocationName(null) .memberFieldInfo( SdkField. builder(MarshallingType.SDK_POJO) .constructor(Tag::builder) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD) .locationName("member").build()).build()).build()).build(); private static final List> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList(ARN_FIELD, NAME_FIELD, ID_FIELD, CREATED_FIELD, LAST_MODIFIED_FIELD, STATUS_FIELD, BASE_CAPACITY_FIELD, ENVIRONMENT_TYPE_FIELD, COMPUTE_TYPE_FIELD, SCALING_CONFIGURATION_FIELD, TAGS_FIELD)); private static final long serialVersionUID = 1L; private final String arn; private final String name; private final String id; private final Instant created; private final Instant lastModified; private final FleetStatus status; private final Integer baseCapacity; private final String environmentType; private final String computeType; private final ScalingConfigurationOutput scalingConfiguration; private final List tags; private Fleet(BuilderImpl builder) { this.arn = builder.arn; this.name = builder.name; this.id = builder.id; this.created = builder.created; this.lastModified = builder.lastModified; this.status = builder.status; this.baseCapacity = builder.baseCapacity; this.environmentType = builder.environmentType; this.computeType = builder.computeType; this.scalingConfiguration = builder.scalingConfiguration; this.tags = builder.tags; } /** *

* The ARN of the compute fleet. *

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

* The name of the compute fleet. *

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

* The ID of the compute fleet. *

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

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

* * @return The time at which the compute fleet was created. */ public final Instant created() { return created; } /** *

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

* * @return The time at which the compute fleet was last modified. */ public final Instant lastModified() { return lastModified; } /** *

* The status of the compute fleet. *

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

* 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 final Integer baseCapacity() { return 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. *

*

* If the service returns an enum value that is not available in the current SDK version, {@link #environmentType} * will return {@link EnvironmentType#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available * from {@link #environmentTypeAsString}. *

* * @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 final EnvironmentType environmentType() { return EnvironmentType.fromValue(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. *

*

* If the service returns an enum value that is not available in the current SDK version, {@link #environmentType} * will return {@link EnvironmentType#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available * from {@link #environmentTypeAsString}. *

* * @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 final String environmentTypeAsString() { return 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. *

*

* If the service returns an enum value that is not available in the current SDK version, {@link #computeType} will * return {@link ComputeType#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available from * {@link #computeTypeAsString}. *

* * @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 final ComputeType computeType() { return ComputeType.fromValue(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. *

*

* If the service returns an enum value that is not available in the current SDK version, {@link #computeType} will * return {@link ComputeType#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available from * {@link #computeTypeAsString}. *

* * @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 final String computeTypeAsString() { return computeType; } /** *

* The scaling configuration of the compute fleet. *

* * @return The scaling configuration of the compute fleet. */ public final ScalingConfigurationOutput scalingConfiguration() { return scalingConfiguration; } /** * For responses, this returns true if the service returned a value for the Tags property. This DOES NOT check that * the value is non-empty (for which, you should check the {@code isEmpty()} method on the property). This is useful * because the SDK will never return a null collection or map, but you may need to differentiate between the service * returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true * if a value for the property was specified in the request builder, and false if a value was not specified. */ public final boolean hasTags() { return tags != null && !(tags instanceof SdkAutoConstructList); } /** *

* 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. *

*

* Attempts to modify the collection returned by this method will result in an UnsupportedOperationException. *

*

* This method will never return null. If you would like to know whether the service returned this field (so that * you can differentiate between null and empty), you can use the {@link #hasTags} method. *

* * @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 final List tags() { return tags; } @Override public Builder toBuilder() { return new BuilderImpl(this); } public static Builder builder() { return new BuilderImpl(); } public static Class serializableBuilderClass() { return BuilderImpl.class; } @Override public final int hashCode() { int hashCode = 1; hashCode = 31 * hashCode + Objects.hashCode(arn()); hashCode = 31 * hashCode + Objects.hashCode(name()); hashCode = 31 * hashCode + Objects.hashCode(id()); hashCode = 31 * hashCode + Objects.hashCode(created()); hashCode = 31 * hashCode + Objects.hashCode(lastModified()); hashCode = 31 * hashCode + Objects.hashCode(status()); hashCode = 31 * hashCode + Objects.hashCode(baseCapacity()); hashCode = 31 * hashCode + Objects.hashCode(environmentTypeAsString()); hashCode = 31 * hashCode + Objects.hashCode(computeTypeAsString()); hashCode = 31 * hashCode + Objects.hashCode(scalingConfiguration()); hashCode = 31 * hashCode + Objects.hashCode(hasTags() ? tags() : null); return hashCode; } @Override public final boolean equals(Object obj) { return equalsBySdkFields(obj); } @Override public final boolean equalsBySdkFields(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!(obj instanceof Fleet)) { return false; } Fleet other = (Fleet) obj; return Objects.equals(arn(), other.arn()) && Objects.equals(name(), other.name()) && Objects.equals(id(), other.id()) && Objects.equals(created(), other.created()) && Objects.equals(lastModified(), other.lastModified()) && Objects.equals(status(), other.status()) && Objects.equals(baseCapacity(), other.baseCapacity()) && Objects.equals(environmentTypeAsString(), other.environmentTypeAsString()) && Objects.equals(computeTypeAsString(), other.computeTypeAsString()) && Objects.equals(scalingConfiguration(), other.scalingConfiguration()) && hasTags() == other.hasTags() && Objects.equals(tags(), other.tags()); } /** * 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. */ @Override public final String toString() { return ToString.builder("Fleet").add("Arn", arn()).add("Name", name()).add("Id", id()).add("Created", created()) .add("LastModified", lastModified()).add("Status", status()).add("BaseCapacity", baseCapacity()) .add("EnvironmentType", environmentTypeAsString()).add("ComputeType", computeTypeAsString()) .add("ScalingConfiguration", scalingConfiguration()).add("Tags", hasTags() ? tags() : null).build(); } public final Optional getValueForField(String fieldName, Class clazz) { switch (fieldName) { case "arn": return Optional.ofNullable(clazz.cast(arn())); case "name": return Optional.ofNullable(clazz.cast(name())); case "id": return Optional.ofNullable(clazz.cast(id())); case "created": return Optional.ofNullable(clazz.cast(created())); case "lastModified": return Optional.ofNullable(clazz.cast(lastModified())); case "status": return Optional.ofNullable(clazz.cast(status())); case "baseCapacity": return Optional.ofNullable(clazz.cast(baseCapacity())); case "environmentType": return Optional.ofNullable(clazz.cast(environmentTypeAsString())); case "computeType": return Optional.ofNullable(clazz.cast(computeTypeAsString())); case "scalingConfiguration": return Optional.ofNullable(clazz.cast(scalingConfiguration())); case "tags": return Optional.ofNullable(clazz.cast(tags())); default: return Optional.empty(); } } @Override public final List> sdkFields() { return SDK_FIELDS; } private static Function getter(Function g) { return obj -> g.apply((Fleet) obj); } private static BiConsumer setter(BiConsumer s) { return (obj, val) -> s.accept((Builder) obj, val); } public interface Builder extends SdkPojo, CopyableBuilder { /** *

* 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. */ Builder arn(String arn); /** *

* 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. */ Builder name(String name); /** *

* 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. */ Builder id(String id); /** *

* 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. */ Builder created(Instant created); /** *

* 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. */ Builder lastModified(Instant lastModified); /** *

* 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. */ Builder status(FleetStatus status); /** *

* The status of the compute fleet. *

* This is a convenience method that creates an instance of the {@link FleetStatus.Builder} avoiding the need to * create one manually via {@link FleetStatus#builder()}. * *

* When the {@link Consumer} completes, {@link FleetStatus.Builder#build()} is called immediately and its result * is passed to {@link #status(FleetStatus)}. * * @param status * a consumer that will call methods on {@link FleetStatus.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #status(FleetStatus) */ default Builder status(Consumer status) { return status(FleetStatus.builder().applyMutation(status).build()); } /** *

* 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. */ Builder baseCapacity(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. *

* * @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 * @return Returns a reference to this object so that method calls can be chained together. * @see EnvironmentType */ Builder environmentType(String 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. * @see EnvironmentType * @return Returns a reference to this object so that method calls can be chained together. * @see EnvironmentType */ Builder environmentType(EnvironmentType 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. *

* * @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 * @return Returns a reference to this object so that method calls can be chained together. * @see ComputeType */ Builder computeType(String 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. * @see ComputeType * @return Returns a reference to this object so that method calls can be chained together. * @see ComputeType */ Builder computeType(ComputeType computeType); /** *

* 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. */ Builder scalingConfiguration(ScalingConfigurationOutput scalingConfiguration); /** *

* The scaling configuration of the compute fleet. *

* This is a convenience method that creates an instance of the {@link ScalingConfigurationOutput.Builder} * avoiding the need to create one manually via {@link ScalingConfigurationOutput#builder()}. * *

* When the {@link Consumer} completes, {@link ScalingConfigurationOutput.Builder#build()} is called immediately * and its result is passed to {@link #scalingConfiguration(ScalingConfigurationOutput)}. * * @param scalingConfiguration * a consumer that will call methods on {@link ScalingConfigurationOutput.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #scalingConfiguration(ScalingConfigurationOutput) */ default Builder scalingConfiguration(Consumer scalingConfiguration) { return scalingConfiguration(ScalingConfigurationOutput.builder().applyMutation(scalingConfiguration).build()); } /** *

* 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. */ Builder tags(Collection 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. * @return Returns a reference to this object so that method calls can be chained together. */ Builder tags(Tag... 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. *

* This is a convenience method that creates an instance of the * {@link software.amazon.awssdk.services.codebuild.model.Tag.Builder} avoiding the need to create one manually * via {@link software.amazon.awssdk.services.codebuild.model.Tag#builder()}. * *

* When the {@link Consumer} completes, * {@link software.amazon.awssdk.services.codebuild.model.Tag.Builder#build()} is called immediately and its * result is passed to {@link #tags(List)}. * * @param tags * a consumer that will call methods on * {@link software.amazon.awssdk.services.codebuild.model.Tag.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #tags(java.util.Collection) */ Builder tags(Consumer... tags); } static final class BuilderImpl implements Builder { private String arn; private String name; private String id; private Instant created; private Instant lastModified; private FleetStatus status; private Integer baseCapacity; private String environmentType; private String computeType; private ScalingConfigurationOutput scalingConfiguration; private List tags = DefaultSdkAutoConstructList.getInstance(); private BuilderImpl() { } private BuilderImpl(Fleet model) { arn(model.arn); name(model.name); id(model.id); created(model.created); lastModified(model.lastModified); status(model.status); baseCapacity(model.baseCapacity); environmentType(model.environmentType); computeType(model.computeType); scalingConfiguration(model.scalingConfiguration); tags(model.tags); } public final String getArn() { return arn; } public final void setArn(String arn) { this.arn = arn; } @Override public final Builder arn(String arn) { this.arn = arn; return this; } public final String getName() { return name; } public final void setName(String name) { this.name = name; } @Override public final Builder name(String name) { this.name = name; return this; } public final String getId() { return id; } public final void setId(String id) { this.id = id; } @Override public final Builder id(String id) { this.id = id; return this; } public final Instant getCreated() { return created; } public final void setCreated(Instant created) { this.created = created; } @Override public final Builder created(Instant created) { this.created = created; return this; } public final Instant getLastModified() { return lastModified; } public final void setLastModified(Instant lastModified) { this.lastModified = lastModified; } @Override public final Builder lastModified(Instant lastModified) { this.lastModified = lastModified; return this; } public final FleetStatus.Builder getStatus() { return status != null ? status.toBuilder() : null; } public final void setStatus(FleetStatus.BuilderImpl status) { this.status = status != null ? status.build() : null; } @Override public final Builder status(FleetStatus status) { this.status = status; return this; } public final Integer getBaseCapacity() { return baseCapacity; } public final void setBaseCapacity(Integer baseCapacity) { this.baseCapacity = baseCapacity; } @Override public final Builder baseCapacity(Integer baseCapacity) { this.baseCapacity = baseCapacity; return this; } public final String getEnvironmentType() { return environmentType; } public final void setEnvironmentType(String environmentType) { this.environmentType = environmentType; } @Override public final Builder environmentType(String environmentType) { this.environmentType = environmentType; return this; } @Override public final Builder environmentType(EnvironmentType environmentType) { this.environmentType(environmentType == null ? null : environmentType.toString()); return this; } public final String getComputeType() { return computeType; } public final void setComputeType(String computeType) { this.computeType = computeType; } @Override public final Builder computeType(String computeType) { this.computeType = computeType; return this; } @Override public final Builder computeType(ComputeType computeType) { this.computeType(computeType == null ? null : computeType.toString()); return this; } public final ScalingConfigurationOutput.Builder getScalingConfiguration() { return scalingConfiguration != null ? scalingConfiguration.toBuilder() : null; } public final void setScalingConfiguration(ScalingConfigurationOutput.BuilderImpl scalingConfiguration) { this.scalingConfiguration = scalingConfiguration != null ? scalingConfiguration.build() : null; } @Override public final Builder scalingConfiguration(ScalingConfigurationOutput scalingConfiguration) { this.scalingConfiguration = scalingConfiguration; return this; } public final List getTags() { List result = TagListCopier.copyToBuilder(this.tags); if (result instanceof SdkAutoConstructList) { return null; } return result; } public final void setTags(Collection tags) { this.tags = TagListCopier.copyFromBuilder(tags); } @Override public final Builder tags(Collection tags) { this.tags = TagListCopier.copy(tags); return this; } @Override @SafeVarargs public final Builder tags(Tag... tags) { tags(Arrays.asList(tags)); return this; } @Override @SafeVarargs public final Builder tags(Consumer... tags) { tags(Stream.of(tags).map(c -> Tag.builder().applyMutation(c).build()).collect(Collectors.toList())); return this; } @Override public Fleet build() { return new Fleet(this); } @Override public List> sdkFields() { return SDK_FIELDS; } } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy