Class LiveEventPreview

java.lang.Object
com.azure.resourcemanager.mediaservices.models.LiveEventPreview

public final class LiveEventPreview extends Object
Live event preview settings.
  • Constructor Details

    • LiveEventPreview

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

    • endpoints

      public List<LiveEventEndpoint> endpoints()
      Get the endpoints property: The endpoints for preview. Do not share the preview URL with the live event audience.
      Returns:
      the endpoints value.
    • withEndpoints

      public LiveEventPreview withEndpoints(List<LiveEventEndpoint> endpoints)
      Set the endpoints property: The endpoints for preview. Do not share the preview URL with the live event audience.
      Parameters:
      endpoints - the endpoints value to set.
      Returns:
      the LiveEventPreview object itself.
    • accessControl

      public LiveEventPreviewAccessControl accessControl()
      Get the accessControl property: The access control for live event preview.
      Returns:
      the accessControl value.
    • withAccessControl

      public LiveEventPreview withAccessControl(LiveEventPreviewAccessControl accessControl)
      Set the accessControl property: The access control for live event preview.
      Parameters:
      accessControl - the accessControl value to set.
      Returns:
      the LiveEventPreview object itself.
    • previewLocator

      public String previewLocator()
      Get the previewLocator property: The identifier of the preview locator in Guid format. Specifying this at creation time allows the caller to know the preview locator url before the event is created. If omitted, the service will generate a random identifier. This value cannot be updated once the live event is created.
      Returns:
      the previewLocator value.
    • withPreviewLocator

      public LiveEventPreview withPreviewLocator(String previewLocator)
      Set the previewLocator property: The identifier of the preview locator in Guid format. Specifying this at creation time allows the caller to know the preview locator url before the event is created. If omitted, the service will generate a random identifier. This value cannot be updated once the live event is created.
      Parameters:
      previewLocator - the previewLocator value to set.
      Returns:
      the LiveEventPreview object itself.
    • streamingPolicyName

      public String streamingPolicyName()
      Get the streamingPolicyName property: The name of streaming policy used for the live event preview. This value is specified at creation time and cannot be updated.
      Returns:
      the streamingPolicyName value.
    • withStreamingPolicyName

      public LiveEventPreview withStreamingPolicyName(String streamingPolicyName)
      Set the streamingPolicyName property: The name of streaming policy used for the live event preview. This value is specified at creation time and cannot be updated.
      Parameters:
      streamingPolicyName - the streamingPolicyName value to set.
      Returns:
      the LiveEventPreview object itself.
    • alternativeMediaId

      public String alternativeMediaId()
      Get the alternativeMediaId property: An alternative media identifier associated with the streaming locator created for the preview. This value is specified at creation time and cannot be updated. The identifier can be used in the CustomLicenseAcquisitionUrlTemplate or the CustomKeyAcquisitionUrlTemplate of the StreamingPolicy specified in the StreamingPolicyName field.
      Returns:
      the alternativeMediaId value.
    • withAlternativeMediaId

      public LiveEventPreview withAlternativeMediaId(String alternativeMediaId)
      Set the alternativeMediaId property: An alternative media identifier associated with the streaming locator created for the preview. This value is specified at creation time and cannot be updated. The identifier can be used in the CustomLicenseAcquisitionUrlTemplate or the CustomKeyAcquisitionUrlTemplate of the StreamingPolicy specified in the StreamingPolicyName field.
      Parameters:
      alternativeMediaId - the alternativeMediaId value to set.
      Returns:
      the LiveEventPreview object itself.
    • validate

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