Class FunctionsDeploymentStorageAuthentication
java.lang.Object
com.azure.resourcemanager.appservice.models.FunctionsDeploymentStorageAuthentication
- All Implemented Interfaces:
com.azure.json.JsonSerializable<FunctionsDeploymentStorageAuthentication>
public final class FunctionsDeploymentStorageAuthentication
extends Object
implements com.azure.json.JsonSerializable<FunctionsDeploymentStorageAuthentication>
Authentication method to access the storage account for deployment.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of FunctionsDeploymentStorageAuthentication class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of FunctionsDeploymentStorageAuthentication from the JsonReader.Get the storageAccountConnectionStringName property: Use this property for StorageAccountConnectionString.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) type()
Get the type property: Property to select authentication type to access the selected storage account.Get the userAssignedIdentityResourceId property: Use this property for UserAssignedIdentity.void
validate()
Validates the instance.withStorageAccountConnectionStringName
(String storageAccountConnectionStringName) Set the storageAccountConnectionStringName property: Use this property for StorageAccountConnectionString.withType
(AuthenticationType type) Set the type property: Property to select authentication type to access the selected storage account.withUserAssignedIdentityResourceId
(String userAssignedIdentityResourceId) Set the userAssignedIdentityResourceId property: Use this property for UserAssignedIdentity.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
FunctionsDeploymentStorageAuthentication
public FunctionsDeploymentStorageAuthentication()Creates an instance of FunctionsDeploymentStorageAuthentication class.
-
-
Method Details
-
type
Get the type property: Property to select authentication type to access the selected storage account. Available options: SystemAssignedIdentity, UserAssignedIdentity, StorageAccountConnectionString.- Returns:
- the type value.
-
withType
Set the type property: Property to select authentication type to access the selected storage account. Available options: SystemAssignedIdentity, UserAssignedIdentity, StorageAccountConnectionString.- Parameters:
type
- the type value to set.- Returns:
- the FunctionsDeploymentStorageAuthentication object itself.
-
userAssignedIdentityResourceId
Get the userAssignedIdentityResourceId property: Use this property for UserAssignedIdentity. Set the resource ID of the identity. Do not set a value for this property when using other authentication type.- Returns:
- the userAssignedIdentityResourceId value.
-
withUserAssignedIdentityResourceId
public FunctionsDeploymentStorageAuthentication withUserAssignedIdentityResourceId(String userAssignedIdentityResourceId) Set the userAssignedIdentityResourceId property: Use this property for UserAssignedIdentity. Set the resource ID of the identity. Do not set a value for this property when using other authentication type.- Parameters:
userAssignedIdentityResourceId
- the userAssignedIdentityResourceId value to set.- Returns:
- the FunctionsDeploymentStorageAuthentication object itself.
-
storageAccountConnectionStringName
Get the storageAccountConnectionStringName property: Use this property for StorageAccountConnectionString. Set the name of the app setting that has the storage account connection string. Do not set a value for this property when using other authentication type.- Returns:
- the storageAccountConnectionStringName value.
-
withStorageAccountConnectionStringName
public FunctionsDeploymentStorageAuthentication withStorageAccountConnectionStringName(String storageAccountConnectionStringName) Set the storageAccountConnectionStringName property: Use this property for StorageAccountConnectionString. Set the name of the app setting that has the storage account connection string. Do not set a value for this property when using other authentication type.- Parameters:
storageAccountConnectionStringName
- the storageAccountConnectionStringName value to set.- Returns:
- the FunctionsDeploymentStorageAuthentication object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<FunctionsDeploymentStorageAuthentication>
- Throws:
IOException
-
fromJson
public static FunctionsDeploymentStorageAuthentication fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of FunctionsDeploymentStorageAuthentication from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of FunctionsDeploymentStorageAuthentication if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException
- If an error occurs while reading the FunctionsDeploymentStorageAuthentication.
-