Package io.micronaut.oraclecloud.core
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 aSessionTokenAuthenticationDetailsProvider
.
- 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 Summary
-
Constructor Summary
ConstructorDescriptionOracleCloudConfigFileConfigurationProperties
(@Nullable String profile, @Nullable String path, @Nullable Boolean enabled, @Nullable Boolean sessionToken) Creates an instance of aOracleCloudConfigFileConfigurationProperties
record class. -
Method Summary
Modifier and TypeMethodDescription@Nullable Boolean
enabled()
Returns the value of theenabled
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.boolean
@Nullable String
path()
Returns the value of thepath
record component.@Nullable String
profile()
Returns the value of theprofile
record component.@Nullable Boolean
Returns the value of thesessionToken
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
PREFIX
- See Also:
-
-
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 aOracleCloudConfigFileConfigurationProperties
record class.- Parameters:
profile
- the value for theprofile
record componentpath
- the value for thepath
record componentenabled
- the value for theenabled
record componentsessionToken
- the value for thesessionToken
record component
-
-
Method Details
-
isEnabled
public boolean isEnabled()- Specified by:
isEnabled
in interfaceio.micronaut.core.util.Toggleable
-
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. All components in this record class are compared withObjects::equals(Object,Object)
. -
profile
Returns the value of theprofile
record component.- Returns:
- the value of the
profile
record component
-
path
Returns the value of thepath
record component.- Returns:
- the value of the
path
record component
-
enabled
Returns the value of theenabled
record component.- Returns:
- the value of the
enabled
record component
-
sessionToken
Returns the value of thesessionToken
record component.- Returns:
- the value of the
sessionToken
record component
-