Interface ContentKeyPolicy
public interface ContentKeyPolicy
An immutable client-side representation of ContentKeyPolicy.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
The entirety of the ContentKeyPolicy definition.static interface
The ContentKeyPolicy definition stages.static interface
The template for ContentKeyPolicy update.static interface
The ContentKeyPolicy update stages. -
Method Summary
Modifier and TypeMethodDescriptioncreated()
Gets the created property: The creation date of the Policy.Gets the description property: A description for the Policy.Get a Content Key Policy with secretscom.azure.core.http.rest.Response<ContentKeyPolicyProperties>
getPolicyPropertiesWithSecretsWithResponse
(com.azure.core.util.Context context) Get a Content Key Policy with secretsid()
Gets the id property: Fully qualified resource Id for the resource.Gets the inner com.azure.resourcemanager.mediaservices.fluent.models.ContentKeyPolicyInner object.Gets the lastModified property: The last modified date of the Policy.name()
Gets the name property: The name of the resource.options()
Gets the options property: The Key Policy options.policyId()
Gets the policyId property: The legacy Policy ID.refresh()
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.com.azure.core.management.SystemData
Gets the systemData property: The system metadata relating to this resource.type()
Gets the type property: The type of the resource.update()
Begins update for the ContentKeyPolicy 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.
-
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
List<ContentKeyPolicyOption> 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
ContentKeyPolicy.Update 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
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 secretsGet 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 secretsGet 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.
-