Record Class CloudIntent

java.lang.Object
java.lang.Record
com.eqixiac.equinix.design.spec.CloudIntent
Record Components:
id - unique name within the spec; WorkloadIntent.clouds() refers to it
provider - the cloud provider; null when the target is named by service profile only
region - the provider's region (for example us-east-1); may be null
serviceProfileUuid - a specific Fabric service profile, or null to resolve by provider
serviceProfileName - a Fabric service-profile name to match, or null
required - whether every recommended design must reach it; null becomes true
monthlyEgressGb - data leaving this cloud per month, in GB; may be null (not costed)
monthlyIngressGb - data sent to this cloud per month, in GB; may be null

public record CloudIntent(String id, CloudProviderType provider, String region, String serviceProfileUuid, String serviceProfileName, Boolean required, Double monthlyEgressGb, Double monthlyIngressGb) extends Record
A cloud or service provider the design must reach over private interconnect, with the traffic that drives its cost.
  • Constructor Details

    • CloudIntent

      public CloudIntent(String id, CloudProviderType provider, String region, String serviceProfileUuid, String serviceProfileName, Boolean required, Double monthlyEgressGb, Double monthlyIngressGb)
      Defaults required to true: a cloud named in a spec must be reached unless it says otherwise.
  • 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.
    • id

      public String id()
      Returns the value of the id record component.
      Returns:
      the value of the id record component
    • provider

      public CloudProviderType provider()
      Returns the value of the provider record component.
      Returns:
      the value of the provider record component
    • region

      public String region()
      Returns the value of the region record component.
      Returns:
      the value of the region record component
    • serviceProfileUuid

      public String serviceProfileUuid()
      Returns the value of the serviceProfileUuid record component.
      Returns:
      the value of the serviceProfileUuid record component
    • serviceProfileName

      public String serviceProfileName()
      Returns the value of the serviceProfileName record component.
      Returns:
      the value of the serviceProfileName record component
    • required

      public Boolean required()
      Returns the value of the required record component.
      Returns:
      the value of the required record component
    • monthlyEgressGb

      public Double monthlyEgressGb()
      Returns the value of the monthlyEgressGb record component.
      Returns:
      the value of the monthlyEgressGb record component
    • monthlyIngressGb

      public Double monthlyIngressGb()
      Returns the value of the monthlyIngressGb record component.
      Returns:
      the value of the monthlyIngressGb record component