Package com.adobe.testing.s3mock
Record Class S3MockProperties
java.lang.Object
java.lang.Record
com.adobe.testing.s3mock.S3MockProperties
-
Constructor Summary
ConstructorsConstructorDescriptionS3MockProperties(int httpPort, String contextPath, software.amazon.awssdk.regions.Region region) Creates an instance of aS3MockPropertiesrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecontextPathrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.inthttpPort()Returns the value of thehttpPortrecord component.software.amazon.awssdk.regions.Regionregion()Returns the value of theregionrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
S3MockProperties
public S3MockProperties(int httpPort, @DefaultValue("") String contextPath, software.amazon.awssdk.regions.Region region) Creates an instance of aS3MockPropertiesrecord class.- Parameters:
httpPort- the value for thehttpPortrecord componentcontextPath- the value for thecontextPathrecord componentregion- the value for theregionrecord component
-
-
Method Details
-
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. -
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. -
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 '=='. -
httpPort
public int httpPort()Returns the value of thehttpPortrecord component.- Returns:
- the value of the
httpPortrecord component
-
contextPath
Returns the value of thecontextPathrecord component.- Returns:
- the value of the
contextPathrecord component
-
region
public software.amazon.awssdk.regions.Region region()Returns the value of theregionrecord component.- Returns:
- the value of the
regionrecord component
-