public interface Job
An immutable client-side representation of Job.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
    The entirety of the Job definition.
    static interface 
    The Job definition stages.
    static interface 
    The template for Job update.
    static interface 
    The Job update stages.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Cancel Job
    com.azure.core.http.rest.Response<Void>
    cancelJobWithResponse(com.azure.core.util.Context context)
    Cancel Job
    Gets the correlationData property: Customer provided key, value pairs that will be returned in Job and JobOutput state events.
    Gets the created property: The UTC date and time when the customer has created the Job, in 'YYYY-MM-DDThh:mm:ssZ' format.
    Gets the description property: Optional customer supplied description of the Job.
    Gets the endTime property: The UTC date and time at which this Job finished processing.
    id()
    Gets the id property: Fully qualified resource Id for the resource.
    Gets the inner com.azure.resourcemanager.mediaservices.fluent.models.JobInner object.
    Gets the input property: The inputs for the Job.
    Gets the lastModified property: The UTC date and time when the customer has last updated the Job, in 'YYYY-MM-DDThh:mm:ssZ' format.
    Gets the name property: The name of the resource.
    Gets the outputs property: The outputs for the Job.
    Gets the priority property: Priority with which the job should be processed.
    Refreshes the resource to sync with Azure.
    refresh(com.azure.core.util.Context context)
    Refreshes the resource to sync with Azure.
    Gets the name of the resource group.
    Gets the startTime property: The UTC date and time at which this Job began processing.
    Gets the state property: The current state of the job.
    com.azure.core.management.SystemData
    Gets the systemData property: The system metadata relating to this resource.
    Gets the type property: The type of the resource.
    Begins update for the Job resource.
  • Method Details

    • id

      String id()
      Gets the id property: Fully qualified resource Id for the resource.
      Returns:
      the id value.
    • name

      String name()
      Gets the name property: The name of the resource.
      Returns:
      the name value.
    • type

      String type()
      Gets the type property: The type of the resource.
      Returns:
      the type value.
    • systemData

      com.azure.core.management.SystemData systemData()
      Gets the systemData property: The system metadata relating to this resource.
      Returns:
      the systemData value.
    • created

      OffsetDateTime created()
      Gets the created property: The UTC date and time when the customer has created the Job, in 'YYYY-MM-DDThh:mm:ssZ' format.
      Returns:
      the created value.
    • state

      JobState state()
      Gets the state property: The current state of the job.
      Returns:
      the state value.
    • description

      String description()
      Gets the description property: Optional customer supplied description of the Job.
      Returns:
      the description value.
    • input

      JobInput input()
      Gets the input property: The inputs for the Job.
      Returns:
      the input value.
    • lastModified

      OffsetDateTime lastModified()
      Gets the lastModified property: The UTC date and time when the customer has last updated the Job, in 'YYYY-MM-DDThh:mm:ssZ' format.
      Returns:
      the lastModified value.
    • outputs

      List<JobOutput> outputs()
      Gets the outputs property: The outputs for the Job.
      Returns:
      the outputs value.
    • priority

      Priority priority()
      Gets the priority property: Priority with which the job should be processed. Higher priority jobs are processed before lower priority jobs. If not set, the default is normal.
      Returns:
      the priority value.
    • correlationData

      Map<String,String> correlationData()
      Gets the correlationData property: Customer provided key, value pairs that will be returned in Job and JobOutput state events.
      Returns:
      the correlationData value.
    • startTime

      OffsetDateTime startTime()
      Gets the startTime property: The UTC date and time at which this Job began processing.
      Returns:
      the startTime value.
    • endTime

      OffsetDateTime endTime()
      Gets the endTime property: The UTC date and time at which this Job finished processing.
      Returns:
      the endTime value.
    • resourceGroupName

      String resourceGroupName()
      Gets the name of the resource group.
      Returns:
      the name of the resource group.
    • innerModel

      JobInner innerModel()
      Gets the inner com.azure.resourcemanager.mediaservices.fluent.models.JobInner object.
      Returns:
      the inner object.
    • update

      Job.Update update()
      Begins update for the Job resource.
      Returns:
      the stage of resource update.
    • refresh

      Job refresh()
      Refreshes the resource to sync with Azure.
      Returns:
      the refreshed resource.
    • refresh

      Job refresh(com.azure.core.util.Context context)
      Refreshes the resource to sync with Azure.
      Parameters:
      context - The context to associate with this operation.
      Returns:
      the refreshed resource.
    • cancelJobWithResponse

      com.azure.core.http.rest.Response<Void> cancelJobWithResponse(com.azure.core.util.Context context)
      Cancel Job

      Cancel a Job.

      Parameters:
      context - The context to associate with this operation.
      Returns:
      the Response.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • cancelJob

      void cancelJob()
      Cancel Job

      Cancel a Job.

      Throws:
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.