Class AzureScaleSetComputeSource.Builder
java.lang.Object
co.yellowdog.platform.model.builders.ValidatedBuilder<AzureScaleSetComputeSource>
co.yellowdog.platform.model.AzureScaleSetComputeSource.Builder
- Enclosing class:
AzureScaleSetComputeSource
public static class AzureScaleSetComputeSource.Builder
extends ValidatedBuilder<AzureScaleSetComputeSource>
A builder that can be used to build a new AzureScaleSetComputeSource that is automatically validated on build.
-
Method Summary
Modifier and TypeMethodDescriptionadminUserCredential(String adminUserCredential) assignPublicIp(Boolean assignPublicIp) bootVolumeSizeGb(Integer bootVolumeSizeGb) Builds the object without enforcing validation constraints.createProximityPlacementGroup(Boolean createProximityPlacementGroup) credential(String credential) environment(String environment) instanceTag(String instanceTagKey, String instanceTagValue) instanceTags(Map<? extends String, ? extends String> instanceTags) limit(int limit) networkName(String networkName) networkResourceGroupName(String networkResourceGroupName) spotMaxPrice(Double spotMaxPrice) subnetName(String subnetName) toString()trustedLaunch(AzureTrustedLaunch trustedLaunch) useAcceleratedNetworking(Boolean useAcceleratedNetworking) Methods inherited from class ValidatedBuilder
build, validateModifier and TypeMethodDescriptionbuild()Builds and validates the object.Set<jakarta.validation.ConstraintViolation<AzureScaleSetComputeSource>> validate()Performs validation based on the current builder properties and returns the ConstraintViolations without throwing.
-
Method Details
-
name
- Returns:
this.
-
credential
- Returns:
this.
-
adminUserCredential
- Returns:
this.
-
sshKey
- Returns:
this.
-
environment
- Returns:
this.
-
networkResourceGroupName
- Returns:
this.
-
networkName
- Returns:
this.
-
subnetName
- Returns:
this.
-
vmSize
- Returns:
this.
-
region
- Returns:
this.
-
imageId
- Returns:
this.
-
limit
- Returns:
this.
-
assignPublicIp
- Returns:
this.
-
useSpot
- Returns:
this.
-
spotMaxPrice
- Returns:
this.
-
createProximityPlacementGroup
public AzureScaleSetComputeSource.Builder createProximityPlacementGroup(Boolean createProximityPlacementGroup) - Returns:
this.
-
useAcceleratedNetworking
public AzureScaleSetComputeSource.Builder useAcceleratedNetworking(Boolean useAcceleratedNetworking) - Returns:
this.
-
userData
- Returns:
this.
-
instanceTag
public AzureScaleSetComputeSource.Builder instanceTag(String instanceTagKey, String instanceTagValue) -
instanceTags
public AzureScaleSetComputeSource.Builder instanceTags(Map<? extends String, ? extends String> instanceTags) -
clearInstanceTags
-
bootVolumeSizeGb
- Returns:
this.
-
trustedLaunch
- 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<AzureScaleSetComputeSource>- Returns:
- the object being built
-
toString
-