Record Class WorkloadIntent

java.lang.Object
java.lang.Record
com.eqixiac.equinix.design.spec.WorkloadIntent
Record Components:
label - unique name within the spec
type - archetype that supplies default latency sensitivity and facility needs; may be null
bandwidthMbps - sustained bandwidth to provision for, in Mbps; may be null (unsized)
latencySensitivity - overrides the archetype's sensitivity; may be null
maxLatencyMs - hard round-trip ceiling from every site to this workload, in ms; may be null
clouds - ids of the CloudIntents this workload must reach privately; never null
pinnedMetro - metro code the workload must be placed in, or null

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 Details

  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • label

      public String label()
      Returns the value of the label record component.
      Returns:
      the value of the label record component
    • type

      public WorkloadType type()
      Returns the value of the type record component.
      Returns:
      the value of the type record component
    • bandwidthMbps

      public Integer bandwidthMbps()
      Returns the value of the bandwidthMbps record component.
      Returns:
      the value of the bandwidthMbps record component
    • latencySensitivity

      public LatencySensitivity latencySensitivity()
      Returns the value of the latencySensitivity record component.
      Returns:
      the value of the latencySensitivity record component
    • maxLatencyMs

      public Double maxLatencyMs()
      Returns the value of the maxLatencyMs record component.
      Returns:
      the value of the maxLatencyMs record component
    • clouds

      public List<String> clouds()
      Returns the value of the clouds record component.
      Returns:
      the value of the clouds record component
    • pinnedMetro

      public String pinnedMetro()
      Returns the value of the pinnedMetro record component.
      Returns:
      the value of the pinnedMetro record component