Record Class CloudForgeSynthesizer.Result

java.lang.Object
java.lang.Record
com.cloudforgeci.api.deploy.CloudForgeSynthesizer.Result
Record Components:
stackName - the synthesized stack's name (== config.stackName)
templateFile - absolute path to the synthesized CloudFormation template JSON — what DeploymentRequest.canonicalTemplate() expects
assemblyDirectory - the cloud assembly directory (outputDirectory, resolved)
Enclosing class:
CloudForgeSynthesizer

public static record CloudForgeSynthesizer.Result(String stackName, Path templateFile, Path assemblyDirectory) extends Record
  • Constructor Details

    • Result

      public Result(String stackName, Path templateFile, Path assemblyDirectory)
      Creates an instance of a Result record class.
      Parameters:
      stackName - the value for the stackName record component
      templateFile - the value for the templateFile record component
      assemblyDirectory - the value for the assemblyDirectory record component
  • 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.
    • stackName

      public String stackName()
      Returns the value of the stackName record component.
      Returns:
      the value of the stackName record component
    • templateFile

      public Path templateFile()
      Returns the value of the templateFile record component.
      Returns:
      the value of the templateFile record component
    • assemblyDirectory

      public Path assemblyDirectory()
      Returns the value of the assemblyDirectory record component.
      Returns:
      the value of the assemblyDirectory record component