Class AzureProperties
- java.lang.Object
-
- com.azure.spring.cloud.context.core.config.AzureProperties
-
- All Implemented Interfaces:
CredentialSupplier
@Validated @ConfigurationProperties("spring.cloud.azure") public class AzureProperties extends Object implements CredentialSupplier
Azure related properties.
-
-
Constructor Summary
Constructors Constructor Description AzureProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getClientId()
Gets the client ID.String
getClientSecret()
Gets the client secret.AzureEnvironments
getEnvironment()
Gets the Azure environment.String
getRegion()
Gets the region.String
getResourceGroup()
Gets the resource group.String
getSubscriptionId()
Gets the subscription ID.String
getTenantId()
Gets the tenant ID.boolean
isAutoCreateResources()
Whether resources are automatically created.boolean
isMsiEnabled()
Whether MSI is enabled.void
setAutoCreateResources(boolean autoCreateResources)
Sets whether resources are automatically created.void
setClientId(String clientId)
Sets the client ID.void
setClientSecret(String clientSecret)
Sets the client secret.void
setEnvironment(AzureEnvironments environment)
Sets the Azure environment.void
setMsiEnabled(boolean msiEnabled)
Sets whether MSI is enabled.void
setRegion(String region)
Sets the region.void
setResourceGroup(String resourceGroup)
Sets the resource group.void
setSubscriptionId(String subscriptionId)
Sets the subscription ID.void
setTenantId(String tenantId)
Sets the tenant ID.
-
-
-
Field Detail
-
PREFIX
public static final String PREFIX
The prefix.- See Also:
- Constant Field Values
-
-
Method Detail
-
getClientId
public String getClientId()
Gets the client ID.- Specified by:
getClientId
in interfaceCredentialSupplier
- Returns:
- The client ID.
-
setClientId
public void setClientId(String clientId)
Sets the client ID.- Parameters:
clientId
- The client ID.
-
getClientSecret
public String getClientSecret()
Gets the client secret.- Specified by:
getClientSecret
in interfaceCredentialSupplier
- Returns:
- The client secret.
-
setClientSecret
public void setClientSecret(String clientSecret)
Sets the client secret.- Parameters:
clientSecret
- The client secret.
-
getTenantId
public String getTenantId()
Gets the tenant ID.- Specified by:
getTenantId
in interfaceCredentialSupplier
- Returns:
- The tenant ID.
-
setTenantId
public void setTenantId(String tenantId)
Sets the tenant ID.- Parameters:
tenantId
- The tenant ID.
-
getResourceGroup
public String getResourceGroup()
Gets the resource group.- Returns:
- The resource group.
-
setResourceGroup
public void setResourceGroup(String resourceGroup)
Sets the resource group.- Parameters:
resourceGroup
- The resource group.
-
getEnvironment
public AzureEnvironments getEnvironment()
Gets the Azure environment.- Returns:
- The Azure environment.
-
setEnvironment
public void setEnvironment(AzureEnvironments environment)
Sets the Azure environment.- Parameters:
environment
- The Azure environment.
-
getRegion
public String getRegion()
Gets the region.- Returns:
- The region.
-
setRegion
public void setRegion(String region)
Sets the region.- Parameters:
region
- The region.
-
isAutoCreateResources
public boolean isAutoCreateResources()
Whether resources are automatically created.- Returns:
- Whether resources are automatically created.
-
setAutoCreateResources
public void setAutoCreateResources(boolean autoCreateResources)
Sets whether resources are automatically created.- Parameters:
autoCreateResources
- Whether resources are automatically created.
-
isMsiEnabled
public boolean isMsiEnabled()
Whether MSI is enabled.- Specified by:
isMsiEnabled
in interfaceCredentialSupplier
- Returns:
- Whether MSI is enabled.
-
setMsiEnabled
public void setMsiEnabled(boolean msiEnabled)
Sets whether MSI is enabled.- Parameters:
msiEnabled
- Whether MSI is enabeld.
-
getSubscriptionId
public String getSubscriptionId()
Gets the subscription ID.- Specified by:
getSubscriptionId
in interfaceCredentialSupplier
- Returns:
- The subscription ID.
-
setSubscriptionId
public void setSubscriptionId(String subscriptionId)
Sets the subscription ID.- Parameters:
subscriptionId
- The subscription ID.
-
-