Record Class AzureConfiguration
java.lang.Object
java.lang.Record
org.elasticsearch.xpack.esql.datasource.azure.AzureConfiguration
public record AzureConfiguration(String connectionString, String account, String key, String sasToken, String endpoint, String auth)
extends Record
Configuration for Azure Blob Storage access including credentials and endpoint settings.
Supports multiple authentication modes:
- Connection string (full connection string)
- Account + key (SharedKey auth)
- SAS token
auth=nonefor anonymous access to public containers- DefaultAzureCredential when no explicit credentials are provided
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccount()Returns the value of theaccountrecord component.auth()Returns the value of theauthrecord component.Returns the value of theconnectionStringrecord component.endpoint()Returns the value of theendpointrecord component.final booleanIndicates whether some other object is "equal to" this one.static AzureConfigurationstatic AzureConfigurationfromFields(String connectionString, String account, String key, String sasToken, String endpoint, String auth) static AzureConfigurationfromParams(Map<String, Expression> params) booleanfinal inthashCode()Returns a hash code value for this object.booleankey()Returns the value of thekeyrecord component.sasToken()Returns the value of thesasTokenrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AzureConfiguration
public AzureConfiguration(String connectionString, String account, String key, String sasToken, String endpoint, String auth) Creates an instance of aAzureConfigurationrecord class.- Parameters:
connectionString- the value for theconnectionStringrecord componentaccount- the value for theaccountrecord componentkey- the value for thekeyrecord componentsasToken- the value for thesasTokenrecord componentendpoint- the value for theendpointrecord componentauth- the value for theauthrecord component
-
-
Method Details
-
fromParams
-
fromFields
-
fromFields
-
isAnonymous
public boolean isAnonymous() -
hasCredentials
public boolean hasCredentials() -
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). -
connectionString
Returns the value of theconnectionStringrecord component.- Returns:
- the value of the
connectionStringrecord component
-
account
Returns the value of theaccountrecord component.- Returns:
- the value of the
accountrecord component
-
key
Returns the value of thekeyrecord component.- Returns:
- the value of the
keyrecord component
-
sasToken
Returns the value of thesasTokenrecord component.- Returns:
- the value of the
sasTokenrecord component
-
endpoint
Returns the value of theendpointrecord component.- Returns:
- the value of the
endpointrecord component
-
auth
Returns the value of theauthrecord component.- Returns:
- the value of the
authrecord component
-