Record Class OracleCloudCertificateConfiguration
java.lang.Object
java.lang.Record
io.micronaut.oraclecloud.certificates.config.OracleCloudCertificateConfiguration
- Record Components:
name- The name of the config.certificateId- The OCID of the certificate.versionNumber- The specific certificate version number to use, or null to resolve by name/latest.certificateVersionName- The named certificate version to use, or null.enabled- Whether this certificate entry is enabled. Defaults to true when unspecified.
- All Implemented Interfaces:
io.micronaut.core.naming.Named,io.micronaut.core.util.Toggleable,OracleCloudCertificateProperties
@EachProperty("oci.certificates")
@Requires(missingProperty="oci.certificates.certificate-id") @Requires(missingProperty="oci.certificates.enabled")
public record OracleCloudCertificateConfiguration(String name, @NonNull String certificateId, @Nullable Long versionNumber, @Nullable String certificateVersionName, boolean enabled)
extends Record
implements OracleCloudCertificateProperties
Configuration entry for an Oracle Cloud Infrastructure (OCI) certificate.
Each instance represents one certificate to be fetched from OCI Certificates service and exposed to Micronaut's SSL infrastructure.
-
Field Summary
Fields inherited from interface io.micronaut.oraclecloud.certificates.config.OracleCloudCertificateProperties
PREFIX -
Constructor Summary
ConstructorsConstructorDescriptionOracleCloudCertificateConfiguration(String name, @NonNull String certificateId, @Nullable Long versionNumber, @Nullable String certificateVersionName, boolean enabled) Creates an instance of aOracleCloudCertificateConfigurationrecord class. -
Method Summary
Modifier and TypeMethodDescription@NonNull StringReturns the value of thecertificateIdrecord component.@Nullable StringReturns the value of thecertificateVersionNamerecord component.booleanenabled()Returns the value of theenabledrecord component.final booleanIndicates whether some other object is "equal to" this one.@NonNull StringgetName()final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.final StringtoString()Returns a string representation of this record class.@Nullable LongReturns the value of theversionNumberrecord component.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface io.micronaut.oraclecloud.certificates.config.OracleCloudCertificateProperties
isEnabled
-
Constructor Details
-
OracleCloudCertificateConfiguration
public OracleCloudCertificateConfiguration(@Parameter String name, @NonNull @NonNull String certificateId, @Nullable @Nullable Long versionNumber, @Nullable @Nullable String certificateVersionName, @Bindable(defaultValue="true") boolean enabled) Creates an instance of aOracleCloudCertificateConfigurationrecord class.- Parameters:
name- the value for thenamerecord componentcertificateId- the value for thecertificateIdrecord componentversionNumber- the value for theversionNumberrecord componentcertificateVersionName- the value for thecertificateVersionNamerecord componentenabled- the value for theenabledrecord component
-
-
Method Details
-
getName
- Specified by:
getNamein interfaceio.micronaut.core.naming.Named
-
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 '=='. -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
certificateId
Returns the value of thecertificateIdrecord component.- Specified by:
certificateIdin interfaceOracleCloudCertificateProperties- Returns:
- the value of the
certificateIdrecord component
-
versionNumber
Returns the value of theversionNumberrecord component.- Specified by:
versionNumberin interfaceOracleCloudCertificateProperties- Returns:
- the value of the
versionNumberrecord component
-
certificateVersionName
Returns the value of thecertificateVersionNamerecord component.- Specified by:
certificateVersionNamein interfaceOracleCloudCertificateProperties- Returns:
- the value of the
certificateVersionNamerecord component
-
enabled
@Bindable(defaultValue="true") public boolean enabled()Returns the value of theenabledrecord component.- Specified by:
enabledin interfaceOracleCloudCertificateProperties- Returns:
- the value of the
enabledrecord component
-