Class SmbMountEndpointProperties

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

public final class SmbMountEndpointProperties extends EndpointBaseProperties
The properties of SMB share endpoint.
  • Constructor Details

    • SmbMountEndpointProperties

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

    • endpointType

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

      public String host()
      Get the host property: The host name or IP address of the server exporting the file system.
      Returns:
      the host value.
    • withHost

      public SmbMountEndpointProperties withHost(String host)
      Set the host property: The host name or IP address of the server exporting the file system.
      Parameters:
      host - the host value to set.
      Returns:
      the SmbMountEndpointProperties object itself.
    • shareName

      public String shareName()
      Get the shareName property: The name of the SMB share being exported from the server.
      Returns:
      the shareName value.
    • withShareName

      public SmbMountEndpointProperties withShareName(String shareName)
      Set the shareName property: The name of the SMB share being exported from the server.
      Parameters:
      shareName - the shareName value to set.
      Returns:
      the SmbMountEndpointProperties object itself.
    • credentials

      public AzureKeyVaultSmbCredentials credentials()
      Get the credentials property: The Azure Key Vault secret URIs which store the required credentials to access the SMB share.
      Returns:
      the credentials value.
    • withCredentials

      public SmbMountEndpointProperties withCredentials(AzureKeyVaultSmbCredentials credentials)
      Set the credentials property: The Azure Key Vault secret URIs which store the required credentials to access the SMB share.
      Parameters:
      credentials - the credentials value to set.
      Returns:
      the SmbMountEndpointProperties object itself.
    • withDescription

      public SmbMountEndpointProperties 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 SmbMountEndpointProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of SmbMountEndpointProperties from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of SmbMountEndpointProperties 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 SmbMountEndpointProperties.