Class ContentKeyPolicyTokenClaim
java.lang.Object
com.azure.resourcemanager.mediaservices.models.ContentKeyPolicyTokenClaim
Represents a token claim.
-
Constructor Summary
ConstructorDescriptionCreates an instance of ContentKeyPolicyTokenClaim class. -
Method Summary
Modifier and TypeMethodDescriptionGet the claimType property: Token claim type.Get the claimValue property: Token claim value.void
validate()
Validates the instance.withClaimType
(String claimType) Set the claimType property: Token claim type.withClaimValue
(String claimValue) Set the claimValue property: Token claim value.
-
Constructor Details
-
ContentKeyPolicyTokenClaim
public ContentKeyPolicyTokenClaim()Creates an instance of ContentKeyPolicyTokenClaim class.
-
-
Method Details
-
claimType
Get the claimType property: Token claim type.- Returns:
- the claimType value.
-
withClaimType
Set the claimType property: Token claim type.- Parameters:
claimType
- the claimType value to set.- Returns:
- the ContentKeyPolicyTokenClaim object itself.
-
claimValue
Get the claimValue property: Token claim value.- Returns:
- the claimValue value.
-
withClaimValue
Set the claimValue property: Token claim value.- Parameters:
claimValue
- the claimValue value to set.- Returns:
- the ContentKeyPolicyTokenClaim object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-