Class AwsInstancesComputeSource.Builder
java.lang.Object
co.yellowdog.platform.model.builders.ValidatedBuilder<AwsInstancesComputeSource>
co.yellowdog.platform.model.AwsInstancesComputeSource.Builder
- Enclosing class:
AwsInstancesComputeSource
public static class AwsInstancesComputeSource.Builder
extends ValidatedBuilder<AwsInstancesComputeSource>
A builder that can be used to build a new AwsInstancesComputeSource that is automatically validated on build.
-
Method Summary
Modifier and TypeMethodDescriptionassignPublicIp(Boolean assignPublicIp) availabilityZone(String availabilityZone) bootVolumeSizeGb(Integer bootVolumeSizeGb) Builds the object without enforcing validation constraints.capacityReservation(AwsCapacityReservation capacityReservation) createClusterPlacementGroup(Boolean createClusterPlacementGroup) createElasticFabricAdapter(Boolean createElasticFabricAdapter) credential(String credential) enableDetailedMonitoring(Boolean enableDetailedMonitoring) enableInstanceMetadataTags(Boolean enableInstanceMetadataTags) existingPlacementGroup(AwsPlacementGroup existingPlacementGroup) iamInstanceProfileArn(String iamInstanceProfileArn) instanceMetadataHttpPutResponseHopLimit(Integer instanceMetadataHttpPutResponseHopLimit) instanceTag(String instanceTagKey, String instanceTagValue) instanceTags(Map<? extends String, ? extends String> instanceTags) instanceType(String instanceType) limit(int limit) secondaryNetworkInterface(AwsSecondaryNetworkInterface secondaryNetworkInterface) secondaryNetworkInterfaces(Collection<? extends AwsSecondaryNetworkInterface> secondaryNetworkInterfaces) securityGroupId(String securityGroupId) specifyMinimum(boolean specifyMinimum) spot(boolean spot) spotMaxPrice(Double spotMaxPrice) toString()useCapacityBlock(Boolean useCapacityBlock) Methods inherited from class ValidatedBuilder
build, validateModifier and TypeMethodDescriptionbuild()Builds and validates the object.Set<jakarta.validation.ConstraintViolation<AwsInstancesComputeSource>> validate()Performs validation based on the current builder properties and returns the ConstraintViolations without throwing.
-
Method Details
-
name
- Returns:
this.
-
credential
- Returns:
this.
-
region
- Returns:
this.
-
availabilityZone
- Returns:
this.
-
securityGroupId
- Returns:
this.
-
instanceType
- Returns:
this.
-
imageId
- Returns:
this.
-
limit
- Returns:
this.
-
specifyMinimum
- Returns:
this.
-
spot
- Returns:
this.
-
spotMaxPrice
- Returns:
this.
-
assignPublicIp
- Returns:
this.
-
createClusterPlacementGroup
public AwsInstancesComputeSource.Builder createClusterPlacementGroup(Boolean createClusterPlacementGroup) - Returns:
this.
-
existingPlacementGroup
public AwsInstancesComputeSource.Builder existingPlacementGroup(AwsPlacementGroup existingPlacementGroup) - Returns:
this.
-
createElasticFabricAdapter
public AwsInstancesComputeSource.Builder createElasticFabricAdapter(Boolean createElasticFabricAdapter) - Returns:
this.
-
secondaryNetworkInterface
public AwsInstancesComputeSource.Builder secondaryNetworkInterface(AwsSecondaryNetworkInterface secondaryNetworkInterface) -
secondaryNetworkInterfaces
public AwsInstancesComputeSource.Builder secondaryNetworkInterfaces(Collection<? extends AwsSecondaryNetworkInterface> secondaryNetworkInterfaces) -
clearSecondaryNetworkInterfaces
-
capacityReservation
public AwsInstancesComputeSource.Builder capacityReservation(AwsCapacityReservation capacityReservation) - Returns:
this.
-
enableDetailedMonitoring
- Returns:
this.
-
enableInstanceMetadataTags
public AwsInstancesComputeSource.Builder enableInstanceMetadataTags(Boolean enableInstanceMetadataTags) - Returns:
this.
-
instanceMetadataHttpPutResponseHopLimit
public AwsInstancesComputeSource.Builder instanceMetadataHttpPutResponseHopLimit(Integer instanceMetadataHttpPutResponseHopLimit) - Returns:
this.
-
useCapacityBlock
- Returns:
this.
-
keyName
- Returns:
this.
-
iamInstanceProfileArn
- Returns:
this.
-
subnetId
- Returns:
this.
-
userData
- Returns:
this.
-
instanceTag
public AwsInstancesComputeSource.Builder instanceTag(String instanceTagKey, String instanceTagValue) -
instanceTags
public AwsInstancesComputeSource.Builder instanceTags(Map<? extends String, ? extends String> instanceTags) -
clearInstanceTags
-
bootVolumeSizeGb
- Returns:
this.
-
buildUnchecked
Description copied from class:ValidatedBuilderBuilds the object without enforcing validation constraints. Use this when the object is validated later, for example as part of an enclosing object built withValidatedBuilder.build(), or when it does not need to be valid on its own.- Overrides:
buildUncheckedin classValidatedBuilder<AwsInstancesComputeSource>- Returns:
- the object being built
-
toString
-