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.

  • 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 a OracleCloudCertificateConfiguration record class.
      Parameters:
      name - the value for the name record component
      certificateId - the value for the certificateId record component
      versionNumber - the value for the versionNumber record component
      certificateVersionName - the value for the certificateVersionName record component
      enabled - the value for the enabled record component
  • Method Details

    • getName

      @NonNull public @NonNull String getName()
      Specified by:
      getName in interface io.micronaut.core.naming.Named
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • name

      @Parameter public String name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component
    • certificateId

      @NonNull public @NonNull String certificateId()
      Returns the value of the certificateId record component.
      Specified by:
      certificateId in interface OracleCloudCertificateProperties
      Returns:
      the value of the certificateId record component
    • versionNumber

      @Nullable public @Nullable Long versionNumber()
      Returns the value of the versionNumber record component.
      Specified by:
      versionNumber in interface OracleCloudCertificateProperties
      Returns:
      the value of the versionNumber record component
    • certificateVersionName

      @Nullable public @Nullable String certificateVersionName()
      Returns the value of the certificateVersionName record component.
      Specified by:
      certificateVersionName in interface OracleCloudCertificateProperties
      Returns:
      the value of the certificateVersionName record component
    • enabled

      @Bindable(defaultValue="true") public boolean enabled()
      Returns the value of the enabled record component.
      Specified by:
      enabled in interface OracleCloudCertificateProperties
      Returns:
      the value of the enabled record component