java.lang.Object
software.amazon.smithy.rulesengine.aws.language.functions.partition.Partitions
All Implemented Interfaces:
FromSourceLocation, ToNode, ToSmithyBuilder<Partitions>

public final class Partitions extends Object implements ToSmithyBuilder<Partitions>, FromSourceLocation, ToNode
A model for defining the set of partitions that are used by the rule-set aws.partition function.
  • Method Details

    • builder

      public static Partitions.Builder builder()
      Builder to create a Partitions instance.
      Returns:
      returns a new Builder.
    • fromNode

      public static Partitions fromNode(Node node)
      Creates a Partitions instance from the given Node information.
      Parameters:
      node - the node to deserialize.
      Returns:
      the created Partitions.
    • getVersion

      public String getVersion()
      Gets the version of the partitions file.
      Returns:
      returns the version of the partitions file.
    • getPartitions

      public List<Partition> getPartitions()
      Gets the list of loaded partitions.
      Returns:
      returns the list of partitions.
    • getSourceLocation

      public SourceLocation getSourceLocation()
      Description copied from interface: FromSourceLocation
      Gets the source location of a value.
      Specified by:
      getSourceLocation in interface FromSourceLocation
      Returns:
      Returns the source location of the value.
    • toBuilder

      public Partitions.Builder toBuilder()
      Description copied from interface: ToSmithyBuilder
      Take this object and create a builder that contains all of the current property values of this object.
      Specified by:
      toBuilder in interface ToSmithyBuilder<Partitions>
      Returns:
      a builder for type T
    • toNode

      public Node toNode()
      Description copied from interface: ToNode
      Converts a value to a Node.
      Specified by:
      toNode in interface ToNode
      Returns:
      Returns the creates Node.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object