Record Class DeploymentRequest
java.lang.Object
java.lang.Record
com.cloudforgeci.api.deploy.DeploymentRequest
public record DeploymentRequest(DeploymentConfig config, DeploymentTarget target, DeployMode mode, Path canonicalTemplate, Path outputDirectory, DeployOptions options)
extends Record
Inputs for
CloudForgeDeployment.-
Constructor Summary
ConstructorsConstructorDescriptionDeploymentRequest(DeploymentConfig config, DeploymentTarget target, DeployMode mode, Path canonicalTemplate, Path outputDirectory, DeployOptions options) Creates an instance of aDeploymentRequestrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecanonicalTemplaterecord component.config()Returns the value of theconfigrecord component.static DeploymentRequestdeploy(DeploymentConfig config, DeploymentTarget target, Path canonicalTemplate, Path outputDirectory) static DeploymentRequestdryRun(DeploymentConfig config, DeploymentTarget target, Path canonicalTemplate, Path outputDirectory) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.mode()Returns the value of themoderecord component.options()Returns the value of theoptionsrecord component.Returns the value of theoutputDirectoryrecord component.target()Returns the value of thetargetrecord component.final StringtoString()Returns a string representation of this record class.static DeploymentRequestverify(DeploymentConfig config, DeploymentTarget target)
-
Constructor Details
-
DeploymentRequest
public DeploymentRequest(DeploymentConfig config, DeploymentTarget target, DeployMode mode, Path canonicalTemplate, Path outputDirectory, DeployOptions options) Creates an instance of aDeploymentRequestrecord class.- Parameters:
config- the value for theconfigrecord componenttarget- the value for thetargetrecord componentmode- the value for themoderecord componentcanonicalTemplate- the value for thecanonicalTemplaterecord componentoutputDirectory- the value for theoutputDirectoryrecord componentoptions- the value for theoptionsrecord component
-
-
Method Details
-
deploy
public static DeploymentRequest deploy(DeploymentConfig config, DeploymentTarget target, Path canonicalTemplate, Path outputDirectory) -
dryRun
public static DeploymentRequest dryRun(DeploymentConfig config, DeploymentTarget target, Path canonicalTemplate, Path outputDirectory) -
verify
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
config
Returns the value of theconfigrecord component.- Returns:
- the value of the
configrecord component
-
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
-
canonicalTemplate
Returns the value of thecanonicalTemplaterecord component.- Returns:
- the value of the
canonicalTemplaterecord component
-
outputDirectory
Returns the value of theoutputDirectoryrecord component.- Returns:
- the value of the
outputDirectoryrecord component
-
options
Returns the value of theoptionsrecord component.- Returns:
- the value of the
optionsrecord component
-