Record Class OracleCloudConfigFileConfigurationProperties

java.lang.Object
java.lang.Record
io.micronaut.oraclecloud.core.OracleCloudConfigFileConfigurationProperties
Record Components:
profile - The profile to use.
path - A custom path for the OCI configuration file.
enabled - Whether to enable or disable using the OCI configuration file.
sessionToken - Whether to enable the configuration of a SessionTokenAuthenticationDetailsProvider.
All Implemented Interfaces:
io.micronaut.core.util.Toggleable

@ConfigurationProperties("oci.config") public record OracleCloudConfigFileConfigurationProperties(@Nullable String profile, @Nullable String path, @Nullable Boolean enabled, @Nullable Boolean sessionToken) extends Record implements io.micronaut.core.util.Toggleable
Configuration properties for the local OCI config file (eg: $USE_HOME/.oci/config).
Since:
3.6.0
Author:
Álvaro Sánchez-Mariscal
  • Field Details

  • Constructor Details

    • OracleCloudConfigFileConfigurationProperties

      public OracleCloudConfigFileConfigurationProperties(@Nullable @Nullable String profile, @Nullable @Nullable String path, @Nullable @Nullable Boolean enabled, @Nullable @Nullable Boolean sessionToken)
      Creates an instance of a OracleCloudConfigFileConfigurationProperties record class.
      Parameters:
      profile - the value for the profile record component
      path - the value for the path record component
      enabled - the value for the enabled record component
      sessionToken - the value for the sessionToken record component
  • Method Details

    • isEnabled

      public boolean isEnabled()
      Specified by:
      isEnabled in interface io.micronaut.core.util.Toggleable
    • 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. All components in this record class are compared with Objects::equals(Object,Object).
      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.
    • profile

      @Nullable public @Nullable String profile()
      Returns the value of the profile record component.
      Returns:
      the value of the profile record component
    • path

      @Nullable public @Nullable String path()
      Returns the value of the path record component.
      Returns:
      the value of the path record component
    • enabled

      @Nullable public @Nullable Boolean enabled()
      Returns the value of the enabled record component.
      Returns:
      the value of the enabled record component
    • sessionToken

      @Nullable public @Nullable Boolean sessionToken()
      Returns the value of the sessionToken record component.
      Returns:
      the value of the sessionToken record component