Class AzureInstancesComputeSource.Builder
java.lang.Object
co.yellowdog.platform.model.builders.ValidatedBuilder<AzureInstancesComputeSource>
co.yellowdog.platform.model.AzureInstancesComputeSource.Builder
- Enclosing class:
AzureInstancesComputeSource
public static class AzureInstancesComputeSource.Builder
extends ValidatedBuilder<AzureInstancesComputeSource>
A builder that can be used to build a new AzureInstancesComputeSource 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<AzureInstancesComputeSource>> 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
public AzureInstancesComputeSource.Builder networkResourceGroupName(String 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 AzureInstancesComputeSource.Builder createProximityPlacementGroup(Boolean createProximityPlacementGroup) - Returns:
this.
-
useAcceleratedNetworking
public AzureInstancesComputeSource.Builder useAcceleratedNetworking(Boolean useAcceleratedNetworking) - Returns:
this.
-
userData
- Returns:
this.
-
instanceTag
public AzureInstancesComputeSource.Builder instanceTag(String instanceTagKey, String instanceTagValue) -
instanceTags
public AzureInstancesComputeSource.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<AzureInstancesComputeSource>- Returns:
- the object being built
-
toString
-