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
Fields -
Constructor Summary
ConstructorsConstructorDescriptionOracleCloudConfigFileConfigurationProperties(@Nullable String profile, @Nullable String path, @Nullable Boolean enabled, @Nullable Boolean sessionToken) Creates an instance of aOracleCloudConfigFileConfigurationPropertiesrecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable Booleanenabled()Returns the value of theenabledrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.boolean@Nullable Stringpath()Returns the value of thepathrecord component.@Nullable Stringprofile()Returns the value of theprofilerecord component.@Nullable BooleanReturns the value of thesessionTokenrecord component.final StringtoString()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 aOracleCloudConfigFileConfigurationPropertiesrecord class.- Parameters:
profile- the value for theprofilerecord componentpath- the value for thepathrecord componentenabled- the value for theenabledrecord componentsessionToken- the value for thesessionTokenrecord component
-
-
Method Details
-
isEnabled
public boolean isEnabled()- Specified by:
isEnabledin 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 theprofilerecord component.- Returns:
- the value of the
profilerecord component
-
path
Returns the value of thepathrecord component.- Returns:
- the value of the
pathrecord component
-
enabled
Returns the value of theenabledrecord component.- Returns:
- the value of the
enabledrecord component
-
sessionToken
Returns the value of thesessionTokenrecord component.- Returns:
- the value of the
sessionTokenrecord component
-