Class EndpointBaseProperties

java.lang.Object
com.azure.resourcemanager.storagemover.models.EndpointBaseProperties
All Implemented Interfaces:
com.azure.json.JsonSerializable<EndpointBaseProperties>
Direct Known Subclasses:
AzureStorageBlobContainerEndpointProperties, AzureStorageSmbFileShareEndpointProperties, NfsMountEndpointProperties, SmbMountEndpointProperties

public class EndpointBaseProperties extends Object implements com.azure.json.JsonSerializable<EndpointBaseProperties>
The resource specific properties for the Storage Mover resource.
  • Constructor Details

    • EndpointBaseProperties

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

    • endpointType

      public EndpointType endpointType()
      Get the endpointType property: The Endpoint resource type.
      Returns:
      the endpointType value.
    • description

      public String description()
      Get the description property: A description for the Endpoint.
      Returns:
      the description value.
    • withDescription

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

      public ProvisioningState provisioningState()
      Get the provisioningState property: The provisioning state of this resource.
      Returns:
      the provisioningState value.
    • validate

      public void validate()
      Validates the instance.
      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>
      Throws:
      IOException
    • fromJson

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