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 Summary
ConstructorsConstructorDescriptionDeploymentResult(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 aDeploymentResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theadaptationrecord component.Returns the value of theadaptationReportrecord component.Returns the value of thecatalogPathsrecord component.Returns the value of thedeploymentrecord component.endpoint()Returns the value of theendpointrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of thehistoryRecordedrecord component.Returns the value of thelocalStackNamerecord component.messages()Returns the value of themessagesrecord component.mode()Returns the value of themoderecord component.outputs()Returns the value of theoutputsrecord component.Returns the value of thereplaceResultrecord component.booleansuccess()target()Returns the value of thetargetrecord component.final StringtoString()Returns a string representation of this record class.warning()
-
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 aDeploymentResultrecord class.- Parameters:
target- the value for thetargetrecord componentmode- the value for themoderecord componentlocalStackName- the value for thelocalStackNamerecord componentendpoint- the value for theendpointrecord componentadaptationReport- the value for theadaptationReportrecord componentadaptation- the value for theadaptationrecord componentdeployment- the value for thedeploymentrecord componentreplaceResult- the value for thereplaceResultrecord componentoutputs- the value for theoutputsrecord componentcatalogPaths- the value for thecatalogPathsrecord componentmessages- the value for themessagesrecord componenthistoryRecorded- the value for thehistoryRecordedrecord component
-
-
Method Details
-
success
public boolean success() -
warning
-
toString
-
hashCode
-
equals
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 withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
target
Returns the value of thetargetrecord component.- Returns:
- the value of the
targetrecord component
-
mode
Returns the value of themoderecord component.- Returns:
- the value of the
moderecord component
-
localStackName
Returns the value of thelocalStackNamerecord component.- Returns:
- the value of the
localStackNamerecord component
-
endpoint
Returns the value of theendpointrecord component.- Returns:
- the value of the
endpointrecord component
-
adaptationReport
Returns the value of theadaptationReportrecord component.- Returns:
- the value of the
adaptationReportrecord component
-
adaptation
Returns the value of theadaptationrecord component.- Returns:
- the value of the
adaptationrecord component
-
deployment
Returns the value of thedeploymentrecord component.- Returns:
- the value of the
deploymentrecord component
-
replaceResult
Returns the value of thereplaceResultrecord component.- Returns:
- the value of the
replaceResultrecord component
-
outputs
-
catalogPaths
-
messages
-
historyRecorded
public boolean historyRecorded()Returns the value of thehistoryRecordedrecord component.- Returns:
- the value of the
historyRecordedrecord component
-