Record Class StackPortSpec
java.lang.Object
java.lang.Record
com.cloudforge.core.local.StackPortSpec
-
Constructor Summary
ConstructorsConstructorDescriptionStackPortSpec(DeploymentTarget target, String containerName, String conflictingContainerName, String emulatorContainerName, String image, int hostPort, int containerPort, String displayName) Creates an instance of aStackPortSpecrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theconflictingContainerNamerecord component.Returns the value of thecontainerNamerecord component.intReturns the value of thecontainerPortrecord component.Returns the value of thedisplayNamerecord component.Returns the value of theemulatorContainerNamerecord component.Named StackPort endpoint key (used inSTACKPORT_ENDPOINTS).final booleanIndicates whether some other object is "equal to" this one.static StackPortSpecforTarget(DeploymentTarget target) final inthashCode()Returns a hash code value for this object.inthostPort()Returns the value of thehostPortrecord component.image()Returns the value of theimagerecord component.static StackPortSpecstatic StackPortSpectarget()Returns the value of thetargetrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
StackPortSpec
public StackPortSpec(DeploymentTarget target, String containerName, String conflictingContainerName, String emulatorContainerName, String image, int hostPort, int containerPort, String displayName) Creates an instance of aStackPortSpecrecord class.- Parameters:
target- the value for thetargetrecord componentcontainerName- the value for thecontainerNamerecord componentconflictingContainerName- the value for theconflictingContainerNamerecord componentemulatorContainerName- the value for theemulatorContainerNamerecord componentimage- the value for theimagerecord componenthostPort- the value for thehostPortrecord componentcontainerPort- the value for thecontainerPortrecord componentdisplayName- the value for thedisplayNamerecord component
-
-
Method Details
-
ministack
-
localstack
-
forTarget
-
browserUrl
-
emulatorEndpointUrl
-
endpointConfigName
Named StackPort endpoint key (used inSTACKPORT_ENDPOINTS). -
stackPortEndpointsEnvValue
-
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
-
containerName
Returns the value of thecontainerNamerecord component.- Returns:
- the value of the
containerNamerecord component
-
conflictingContainerName
Returns the value of theconflictingContainerNamerecord component.- Returns:
- the value of the
conflictingContainerNamerecord component
-
emulatorContainerName
Returns the value of theemulatorContainerNamerecord component.- Returns:
- the value of the
emulatorContainerNamerecord component
-
image
Returns the value of theimagerecord component.- Returns:
- the value of the
imagerecord component
-
hostPort
public int hostPort()Returns the value of thehostPortrecord component.- Returns:
- the value of the
hostPortrecord component
-
containerPort
public int containerPort()Returns the value of thecontainerPortrecord component.- Returns:
- the value of the
containerPortrecord component
-
displayName
Returns the value of thedisplayNamerecord component.- Returns:
- the value of the
displayNamerecord component
-