Class Datasource


  • public final class Datasource
    extends Object
    Datasource Datasource to be backed up.
    • Constructor Detail

      • Datasource

        public Datasource()
    • Method Detail

      • datasourceType

        public String datasourceType()
        Get the datasourceType property: DatasourceType of the resource.
        Returns:
        the datasourceType value.
      • withDatasourceType

        public Datasource withDatasourceType​(String datasourceType)
        Set the datasourceType property: DatasourceType of the resource.
        Parameters:
        datasourceType - the datasourceType value to set.
        Returns:
        the Datasource object itself.
      • objectType

        public String objectType()
        Get the objectType property: Type of Datasource object, used to initialize the right inherited type.
        Returns:
        the objectType value.
      • withObjectType

        public Datasource withObjectType​(String objectType)
        Set the objectType property: Type of Datasource object, used to initialize the right inherited type.
        Parameters:
        objectType - the objectType value to set.
        Returns:
        the Datasource object itself.
      • resourceId

        public String resourceId()
        Get the resourceId property: Full ARM ID of the resource. For azure resources, this is ARM ID. For non azure resources, this will be the ID created by backup service via Fabric/Vault.
        Returns:
        the resourceId value.
      • withResourceId

        public Datasource withResourceId​(String resourceId)
        Set the resourceId property: Full ARM ID of the resource. For azure resources, this is ARM ID. For non azure resources, this will be the ID created by backup service via Fabric/Vault.
        Parameters:
        resourceId - the resourceId value to set.
        Returns:
        the Datasource object itself.
      • resourceLocation

        public String resourceLocation()
        Get the resourceLocation property: Location of datasource.
        Returns:
        the resourceLocation value.
      • withResourceLocation

        public Datasource withResourceLocation​(String resourceLocation)
        Set the resourceLocation property: Location of datasource.
        Parameters:
        resourceLocation - the resourceLocation value to set.
        Returns:
        the Datasource object itself.
      • resourceName

        public String resourceName()
        Get the resourceName property: Unique identifier of the resource in the context of parent.
        Returns:
        the resourceName value.
      • withResourceName

        public Datasource withResourceName​(String resourceName)
        Set the resourceName property: Unique identifier of the resource in the context of parent.
        Parameters:
        resourceName - the resourceName value to set.
        Returns:
        the Datasource object itself.
      • resourceType

        public String resourceType()
        Get the resourceType property: Resource Type of Datasource.
        Returns:
        the resourceType value.
      • withResourceType

        public Datasource withResourceType​(String resourceType)
        Set the resourceType property: Resource Type of Datasource.
        Parameters:
        resourceType - the resourceType value to set.
        Returns:
        the Datasource object itself.
      • resourceUri

        public String resourceUri()
        Get the resourceUri property: Uri of the resource.
        Returns:
        the resourceUri value.
      • withResourceUri

        public Datasource withResourceUri​(String resourceUri)
        Set the resourceUri property: Uri of the resource.
        Parameters:
        resourceUri - the resourceUri value to set.
        Returns:
        the Datasource object itself.
      • validate

        public void validate()
        Validates the instance.
        Throws:
        IllegalArgumentException - thrown if the instance is not valid.