Interface ContentKeyPolicy


public interface ContentKeyPolicy
An immutable client-side representation of ContentKeyPolicy.
  • 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.
    • policyId

      UUID policyId()
      Gets the policyId property: The legacy Policy ID.
      Returns:
      the policyId value.
    • created

      OffsetDateTime created()
      Gets the created property: The creation date of the Policy.
      Returns:
      the created value.
    • lastModified

      OffsetDateTime lastModified()
      Gets the lastModified property: The last modified date of the Policy.
      Returns:
      the lastModified value.
    • description

      String description()
      Gets the description property: A description for the Policy.
      Returns:
      the description value.
    • options

      Gets the options property: The Key Policy options.
      Returns:
      the options value.
    • resourceGroupName

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

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

      Begins update for the ContentKeyPolicy resource.
      Returns:
      the stage of resource update.
    • refresh

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

      ContentKeyPolicy 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.
    • getPolicyPropertiesWithSecretsWithResponse

      com.azure.core.http.rest.Response<ContentKeyPolicyProperties> getPolicyPropertiesWithSecretsWithResponse(com.azure.core.util.Context context)
      Get a Content Key Policy with secrets

      Get a Content Key Policy including secret values.

      Parameters:
      context - The context to associate with this operation.
      Returns:
      a Content Key Policy including secret values along with 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.
    • getPolicyPropertiesWithSecrets

      ContentKeyPolicyProperties getPolicyPropertiesWithSecrets()
      Get a Content Key Policy with secrets

      Get a Content Key Policy including secret values.

      Returns:
      a Content Key Policy including secret values.
      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.