Record Class DeploymentResult

java.lang.Object
java.lang.Record
com.cloudforgeci.api.deploy.DeploymentResult

public record DeploymentResult(DeploymentTarget target, DeployMode mode, String localStackName, String endpoint, Path adaptationReport, TemplateAdaptationResult adaptation, LocalDeployResult deployment, LocalSameApplicationStackReplacer.Result replaceResult, Map<String,String> outputs, List<Path> catalogPaths, List<String> messages, boolean historyRecorded) extends Record
Outcome from CloudForgeDeployment.
  • Constructor Details

    • DeploymentResult

      public DeploymentResult(DeploymentTarget target, DeployMode mode, String localStackName, String endpoint, Path adaptationReport, TemplateAdaptationResult adaptation, LocalDeployResult deployment, LocalSameApplicationStackReplacer.Result replaceResult, Map<String,String> outputs, List<Path> catalogPaths, List<String> messages, boolean historyRecorded)
      Creates an instance of a DeploymentResult record class.
      Parameters:
      target - the value for the target record component
      mode - the value for the mode record component
      localStackName - the value for the localStackName record component
      endpoint - the value for the endpoint record component
      adaptationReport - the value for the adaptationReport record component
      adaptation - the value for the adaptation record component
      deployment - the value for the deployment record component
      replaceResult - the value for the replaceResult record component
      outputs - the value for the outputs record component
      catalogPaths - the value for the catalogPaths record component
      messages - the value for the messages record component
      historyRecorded - the value for the historyRecorded record component
  • Method Details

    • success

      public boolean success()
    • warning

      public Optional<String> warning()
    • 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.
    • target

      public DeploymentTarget target()
      Returns the value of the target record component.
      Returns:
      the value of the target record component
    • mode

      public DeployMode mode()
      Returns the value of the mode record component.
      Returns:
      the value of the mode record component
    • localStackName

      public String localStackName()
      Returns the value of the localStackName record component.
      Returns:
      the value of the localStackName record component
    • endpoint

      public String endpoint()
      Returns the value of the endpoint record component.
      Returns:
      the value of the endpoint record component
    • adaptationReport

      public Path adaptationReport()
      Returns the value of the adaptationReport record component.
      Returns:
      the value of the adaptationReport record component
    • adaptation

      public TemplateAdaptationResult adaptation()
      Returns the value of the adaptation record component.
      Returns:
      the value of the adaptation record component
    • deployment

      public LocalDeployResult deployment()
      Returns the value of the deployment record component.
      Returns:
      the value of the deployment record component
    • replaceResult

      Returns the value of the replaceResult record component.
      Returns:
      the value of the replaceResult record component
    • outputs

      public Map<String,String> outputs()
      Returns the value of the outputs record component.
      Returns:
      the value of the outputs record component
    • catalogPaths

      public List<Path> catalogPaths()
      Returns the value of the catalogPaths record component.
      Returns:
      the value of the catalogPaths record component
    • messages

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

      public boolean historyRecorded()
      Returns the value of the historyRecorded record component.
      Returns:
      the value of the historyRecorded record component