Record Class DeployOptions
java.lang.Object
java.lang.Record
com.cloudforgeci.api.deploy.DeployOptions
public record DeployOptions(boolean replaceSameApplication, boolean persistCatalog, Path catalogDirectory, List<String> managerVolumeRoots, software.amazon.awssdk.auth.credentials.AwsCredentialsProvider credentialsOverride)
extends Record
Optional post-deploy behavior for
CloudForgeDeployment.-
Constructor Summary
ConstructorsConstructorDescriptionDeployOptions(boolean replaceSameApplication, boolean persistCatalog, Path catalogDirectory, List<String> managerVolumeRoots, software.amazon.awssdk.auth.credentials.AwsCredentialsProvider credentialsOverride) Creates an instance of aDeployOptionsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecatalogDirectoryrecord component.software.amazon.awssdk.auth.credentials.AwsCredentialsProviderReturns the value of thecredentialsOverriderecord component.static DeployOptionsdefaults()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of themanagerVolumeRootsrecord component.booleanReturns the value of thepersistCatalogrecord component.booleanReturns the value of thereplaceSameApplicationrecord component.final StringtoString()Returns a string representation of this record class.withCredentialsOverride(software.amazon.awssdk.auth.credentials.AwsCredentialsProvider credentialsOverride) Credentials to use instead of the default chain for real-AWS calls — any caller needing to act as a different principal (e.g.
-
Constructor Details
-
DeployOptions
public DeployOptions(boolean replaceSameApplication, boolean persistCatalog, Path catalogDirectory, List<String> managerVolumeRoots, software.amazon.awssdk.auth.credentials.AwsCredentialsProvider credentialsOverride) Creates an instance of aDeployOptionsrecord class.- Parameters:
replaceSameApplication- the value for thereplaceSameApplicationrecord componentpersistCatalog- the value for thepersistCatalogrecord componentcatalogDirectory- the value for thecatalogDirectoryrecord componentmanagerVolumeRoots- the value for themanagerVolumeRootsrecord componentcredentialsOverride- the value for thecredentialsOverriderecord component
-
-
Method Details
-
defaults
-
withoutCatalog
-
withCredentialsOverride
public DeployOptions withCredentialsOverride(software.amazon.awssdk.auth.credentials.AwsCredentialsProvider credentialsOverride) Credentials to use instead of the default chain for real-AWS calls — any caller needing to act as a different principal (e.g. an assumed cross-account role) can supply one. Ignored for local-emulator targets (LocalStack/MiniStack always use their fixed test credentials — seeAwsDirectDeployer.resolveLocalEmulatorEndpoint()). -
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. -
replaceSameApplication
public boolean replaceSameApplication()Returns the value of thereplaceSameApplicationrecord component.- Returns:
- the value of the
replaceSameApplicationrecord component
-
persistCatalog
public boolean persistCatalog()Returns the value of thepersistCatalogrecord component.- Returns:
- the value of the
persistCatalogrecord component
-
catalogDirectory
Returns the value of thecatalogDirectoryrecord component.- Returns:
- the value of the
catalogDirectoryrecord component
-
managerVolumeRoots
-
credentialsOverride
public software.amazon.awssdk.auth.credentials.AwsCredentialsProvider credentialsOverride()Returns the value of thecredentialsOverriderecord component.- Returns:
- the value of the
credentialsOverriderecord component
-