Class SingleSourceProvisionStrategy
java.lang.Object
co.yellowdog.platform.model.SingleSourceProvisionStrategy
- All Implemented Interfaces:
ComputeProvisionStrategy
,Credentialed
,Serializable
Instructs YellowDog Compute to use a single compute source for the compute requirement.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
A builder that can be used to build a new SingleSourceProvisionStrategy that is automatically validated on build. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
protected boolean
boolean
Return the names of the credentials to be used for this Credentialed entity.List
<@NotNull @Valid ComputeSource> The compute sources to use for the compute requirement.int
hashCode()
void
setSources
(List<@NotNull @Valid ComputeSource> sources) The compute sources to use for the compute requirement.toString()
-
Method Details
-
getCredentials
Description copied from interface:Credentialed
Return the names of the credentials to be used for this Credentialed entity.- Specified by:
getCredentials
in interfaceCredentialed
- Returns:
- the names of the credentials to be used
-
builder
-
toBuilder
-
getSources
The compute sources to use for the compute requirement.- Specified by:
getSources
in interfaceComputeProvisionStrategy
- Returns:
- the compute sources
-
setSources
The compute sources to use for the compute requirement.- Parameters:
sources
- the compute sources
-
equals
-
canEqual
-
hashCode
-
toString
-