Class AzureStorageSmbFileShareEndpointProperties

java.lang.Object
com.azure.resourcemanager.storagemover.models.EndpointBaseProperties
com.azure.resourcemanager.storagemover.models.AzureStorageSmbFileShareEndpointProperties
All Implemented Interfaces:
com.azure.json.JsonSerializable<EndpointBaseProperties>

public final class AzureStorageSmbFileShareEndpointProperties extends EndpointBaseProperties
The properties of Azure Storage SMB file share endpoint.
  • Constructor Details

    • AzureStorageSmbFileShareEndpointProperties

      public AzureStorageSmbFileShareEndpointProperties()
      Creates an instance of AzureStorageSmbFileShareEndpointProperties class.
  • Method Details

    • endpointType

      public EndpointType endpointType()
      Get the endpointType property: The Endpoint resource type.
      Overrides:
      endpointType in class EndpointBaseProperties
      Returns:
      the endpointType value.
    • storageAccountResourceId

      public String storageAccountResourceId()
      Get the storageAccountResourceId property: The Azure Resource ID of the storage account.
      Returns:
      the storageAccountResourceId value.
    • withStorageAccountResourceId

      public AzureStorageSmbFileShareEndpointProperties withStorageAccountResourceId(String storageAccountResourceId)
      Set the storageAccountResourceId property: The Azure Resource ID of the storage account.
      Parameters:
      storageAccountResourceId - the storageAccountResourceId value to set.
      Returns:
      the AzureStorageSmbFileShareEndpointProperties object itself.
    • fileShareName

      public String fileShareName()
      Get the fileShareName property: The name of the Azure Storage file share.
      Returns:
      the fileShareName value.
    • withFileShareName

      public AzureStorageSmbFileShareEndpointProperties withFileShareName(String fileShareName)
      Set the fileShareName property: The name of the Azure Storage file share.
      Parameters:
      fileShareName - the fileShareName value to set.
      Returns:
      the AzureStorageSmbFileShareEndpointProperties object itself.
    • withDescription

      public AzureStorageSmbFileShareEndpointProperties withDescription(String description)
      Set the description property: A description for the Endpoint.
      Overrides:
      withDescription in class EndpointBaseProperties
      Parameters:
      description - the description value to set.
      Returns:
      the EndpointBaseProperties object itself.
    • validate

      public void validate()
      Validates the instance.
      Overrides:
      validate in class EndpointBaseProperties
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<EndpointBaseProperties>
      Overrides:
      toJson in class EndpointBaseProperties
      Throws:
      IOException
    • fromJson

      public static AzureStorageSmbFileShareEndpointProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of AzureStorageSmbFileShareEndpointProperties from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of AzureStorageSmbFileShareEndpointProperties if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IllegalStateException - If the deserialized JSON object was missing any required properties.
      IOException - If an error occurs while reading the AzureStorageSmbFileShareEndpointProperties.