Class ComputeConfiguration
- java.lang.Object
-
- software.amazon.awssdk.services.codebuild.model.ComputeConfiguration
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ComputeConfiguration.Builder,ComputeConfiguration>
@Generated("software.amazon.awssdk:codegen") public final class ComputeConfiguration extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ComputeConfiguration.Builder,ComputeConfiguration>
Contains compute attributes. These attributes only need be specified when your project's or fleet's
computeTypeis set toATTRIBUTE_BASED_COMPUTE.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceComputeConfiguration.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ComputeConfiguration.Builderbuilder()Longdisk()The amount of disk space of the instance type included in your fleet.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()MachineTypemachineType()The machine type of the instance type included in your fleet.StringmachineTypeAsString()The machine type of the instance type included in your fleet.Longmemory()The amount of memory of the instance type included in your fleet.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends ComputeConfiguration.Builder>serializableBuilderClass()ComputeConfiguration.BuildertoBuilder()StringtoString()Returns a string representation of this object.LongvCpu()The number of vCPUs of the instance type included in your fleet.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
vCpu
public final Long vCpu()
The number of vCPUs of the instance type included in your fleet.
- Returns:
- The number of vCPUs of the instance type included in your fleet.
-
memory
public final Long memory()
The amount of memory of the instance type included in your fleet.
- Returns:
- The amount of memory of the instance type included in your fleet.
-
disk
public final Long disk()
The amount of disk space of the instance type included in your fleet.
- Returns:
- The amount of disk space of the instance type included in your fleet.
-
machineType
public final MachineType machineType()
The machine type of the instance type included in your fleet.
If the service returns an enum value that is not available in the current SDK version,
machineTypewill returnMachineType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frommachineTypeAsString().- Returns:
- The machine type of the instance type included in your fleet.
- See Also:
MachineType
-
machineTypeAsString
public final String machineTypeAsString()
The machine type of the instance type included in your fleet.
If the service returns an enum value that is not available in the current SDK version,
machineTypewill returnMachineType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frommachineTypeAsString().- Returns:
- The machine type of the instance type included in your fleet.
- See Also:
MachineType
-
toBuilder
public ComputeConfiguration.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<ComputeConfiguration.Builder,ComputeConfiguration>
-
builder
public static ComputeConfiguration.Builder builder()
-
serializableBuilderClass
public static Class<? extends ComputeConfiguration.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
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.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-