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 aOracleCloudCertificateConfiguration
record class. -
Method Summary
Modifier and TypeMethodDescription@NonNull String
Returns the value of thecertificateId
record component.@Nullable String
Returns the value of thecertificateVersionName
record component.boolean
enabled()
Returns the value of theenabled
record component.final boolean
Indicates whether some other object is "equal to" this one.@NonNull String
getName()
final int
hashCode()
Returns a hash code value for this object.name()
Returns the value of thename
record component.final String
toString()
Returns a string representation of this record class.@Nullable Long
Returns the value of theversionNumber
record component.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods 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 aOracleCloudCertificateConfiguration
record class.- Parameters:
name
- the value for thename
record componentcertificateId
- the value for thecertificateId
record componentversionNumber
- the value for theversionNumber
record componentcertificateVersionName
- the value for thecertificateVersionName
record componentenabled
- the value for theenabled
record component
-
-
Method Details
-
getName
- Specified by:
getName
in 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 thename
record component.- Returns:
- the value of the
name
record component
-
certificateId
Returns the value of thecertificateId
record component.- Specified by:
certificateId
in interfaceOracleCloudCertificateProperties
- Returns:
- the value of the
certificateId
record component
-
versionNumber
Returns the value of theversionNumber
record component.- Specified by:
versionNumber
in interfaceOracleCloudCertificateProperties
- Returns:
- the value of the
versionNumber
record component
-
certificateVersionName
Returns the value of thecertificateVersionName
record component.- Specified by:
certificateVersionName
in interfaceOracleCloudCertificateProperties
- Returns:
- the value of the
certificateVersionName
record component
-
enabled
@Bindable(defaultValue="true") public boolean enabled()Returns the value of theenabled
record component.- Specified by:
enabled
in interfaceOracleCloudCertificateProperties
- Returns:
- the value of the
enabled
record component
-