Record Class DesignDecisionRecord.PlanSummary

java.lang.Object
java.lang.Record
com.eqixiac.equinix.design.record.DesignDecisionRecord.PlanSummary
Record Components:
planId - the plan's content id
deploymentName - the deployment name
steps - plan steps
executableSteps - steps the SDK will execute
routers - Cloud Routers
connections - provider connections
backboneLinks - backbone links
monthlyTotal - the plan's monthly total, or null when it spans currencies
setupTotal - the one-time total, or null
currency - the currency of the totals, or null
pricingSource - the dominant price source
valid - whether the plan passed validation
validationErrors - what failed validation
Enclosing class:
DesignDecisionRecord

public static record DesignDecisionRecord.PlanSummary(String planId, String deploymentName, int steps, int executableSteps, int routers, int connections, int backboneLinks, BigDecimal monthlyTotal, BigDecimal setupTotal, String currency, String pricingSource, boolean valid, List<String> validationErrors) extends Record
A deployment plan in brief.
  • Constructor Details

    • PlanSummary

      public PlanSummary(String planId, String deploymentName, int steps, int executableSteps, int routers, int connections, int backboneLinks, BigDecimal monthlyTotal, BigDecimal setupTotal, String currency, String pricingSource, boolean valid, List<String> validationErrors)
      Copies the list.
  • 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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      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.
    • planId

      public String planId()
      Returns the value of the planId record component.
      Returns:
      the value of the planId record component
    • deploymentName

      public String deploymentName()
      Returns the value of the deploymentName record component.
      Returns:
      the value of the deploymentName record component
    • steps

      public int steps()
      Returns the value of the steps record component.
      Returns:
      the value of the steps record component
    • executableSteps

      public int executableSteps()
      Returns the value of the executableSteps record component.
      Returns:
      the value of the executableSteps record component
    • routers

      public int routers()
      Returns the value of the routers record component.
      Returns:
      the value of the routers record component
    • connections

      public int connections()
      Returns the value of the connections record component.
      Returns:
      the value of the connections record component
    • backboneLinks

      public int backboneLinks()
      Returns the value of the backboneLinks record component.
      Returns:
      the value of the backboneLinks record component
    • monthlyTotal

      public BigDecimal monthlyTotal()
      Returns the value of the monthlyTotal record component.
      Returns:
      the value of the monthlyTotal record component
    • setupTotal

      public BigDecimal setupTotal()
      Returns the value of the setupTotal record component.
      Returns:
      the value of the setupTotal record component
    • currency

      public String currency()
      Returns the value of the currency record component.
      Returns:
      the value of the currency record component
    • pricingSource

      public String pricingSource()
      Returns the value of the pricingSource record component.
      Returns:
      the value of the pricingSource record component
    • valid

      public boolean valid()
      Returns the value of the valid record component.
      Returns:
      the value of the valid record component
    • validationErrors

      public List<String> validationErrors()
      Returns the value of the validationErrors record component.
      Returns:
      the value of the validationErrors record component