Record Class WorkloadIntent
java.lang.Object
java.lang.Record
com.eqixiac.equinix.design.spec.WorkloadIntent
- Record Components:
label- unique name within the spectype- archetype that supplies default latency sensitivity and facility needs; may benullbandwidthMbps- sustained bandwidth to provision for, in Mbps; may benull(unsized)latencySensitivity- overrides the archetype's sensitivity; may benullmaxLatencyMs- hard round-trip ceiling from every site to this workload, in ms; may benullclouds- ids of theCloudIntents this workload must reach privately; nevernullpinnedMetro- metro code the workload must be placed in, ornull
public record WorkloadIntent(String label, WorkloadType type, Integer bandwidthMbps, LatencySensitivity latencySensitivity, Double maxLatencyMs, List<String> clouds, String pinnedMetro)
extends Record
Something that runs and needs connectivity.
-
Constructor Summary
ConstructorsConstructorDescriptionWorkloadIntent(String label, WorkloadType type, Integer bandwidthMbps, LatencySensitivity latencySensitivity, Double maxLatencyMs, List<String> clouds, String pinnedMetro) Normalisescloudsto an immutable, non-null list. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebandwidthMbpsrecord component.clouds()Returns the value of thecloudsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.label()Returns the value of thelabelrecord component.Returns the value of thelatencySensitivityrecord component.Returns the value of themaxLatencyMsrecord component.Returns the value of thepinnedMetrorecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
WorkloadIntent
public WorkloadIntent(String label, WorkloadType type, Integer bandwidthMbps, LatencySensitivity latencySensitivity, Double maxLatencyMs, List<String> clouds, String pinnedMetro) Normalisescloudsto an immutable, non-null list.
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
label
-
type
-
bandwidthMbps
Returns the value of thebandwidthMbpsrecord component.- Returns:
- the value of the
bandwidthMbpsrecord component
-
latencySensitivity
Returns the value of thelatencySensitivityrecord component.- Returns:
- the value of the
latencySensitivityrecord component
-
maxLatencyMs
Returns the value of themaxLatencyMsrecord component.- Returns:
- the value of the
maxLatencyMsrecord component
-
clouds
-
pinnedMetro
Returns the value of thepinnedMetrorecord component.- Returns:
- the value of the
pinnedMetrorecord component
-