com.azure.resourcemanager.mediaservices.fluent.models.ContentKeyPolicyInner Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-resourcemanager-mediaservices Show documentation
Show all versions of azure-resourcemanager-mediaservices Show documentation
This package contains Microsoft Azure SDK for MediaServices Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. This Swagger was generated by the API Framework. Package tag package-account-2023-01.
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.mediaservices.fluent.models;
import com.azure.core.annotation.Fluent;
import com.azure.core.management.ProxyResource;
import com.azure.core.management.SystemData;
import com.azure.resourcemanager.mediaservices.models.ContentKeyPolicyOption;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.OffsetDateTime;
import java.util.List;
import java.util.UUID;
/** A Content Key Policy resource. */
@Fluent
public final class ContentKeyPolicyInner extends ProxyResource {
/*
* The properties of the Content Key Policy.
*/
@JsonProperty(value = "properties")
private ContentKeyPolicyPropertiesInner innerProperties;
/*
* The system metadata relating to this resource.
*/
@JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
private SystemData systemData;
/**
* Get the innerProperties property: The properties of the Content Key Policy.
*
* @return the innerProperties value.
*/
private ContentKeyPolicyPropertiesInner innerProperties() {
return this.innerProperties;
}
/**
* Get the systemData property: The system metadata relating to this resource.
*
* @return the systemData value.
*/
public SystemData systemData() {
return this.systemData;
}
/**
* Get the policyId property: The legacy Policy ID.
*
* @return the policyId value.
*/
public UUID policyId() {
return this.innerProperties() == null ? null : this.innerProperties().policyId();
}
/**
* Get the created property: The creation date of the Policy.
*
* @return the created value.
*/
public OffsetDateTime created() {
return this.innerProperties() == null ? null : this.innerProperties().created();
}
/**
* Get the lastModified property: The last modified date of the Policy.
*
* @return the lastModified value.
*/
public OffsetDateTime lastModified() {
return this.innerProperties() == null ? null : this.innerProperties().lastModified();
}
/**
* Get the description property: A description for the Policy.
*
* @return the description value.
*/
public String description() {
return this.innerProperties() == null ? null : this.innerProperties().description();
}
/**
* Set the description property: A description for the Policy.
*
* @param description the description value to set.
* @return the ContentKeyPolicyInner object itself.
*/
public ContentKeyPolicyInner withDescription(String description) {
if (this.innerProperties() == null) {
this.innerProperties = new ContentKeyPolicyPropertiesInner();
}
this.innerProperties().withDescription(description);
return this;
}
/**
* Get the options property: The Key Policy options.
*
* @return the options value.
*/
public List options() {
return this.innerProperties() == null ? null : this.innerProperties().options();
}
/**
* Set the options property: The Key Policy options.
*
* @param options the options value to set.
* @return the ContentKeyPolicyInner object itself.
*/
public ContentKeyPolicyInner withOptions(List options) {
if (this.innerProperties() == null) {
this.innerProperties = new ContentKeyPolicyPropertiesInner();
}
this.innerProperties().withOptions(options);
return this;
}
/**
* Validates the instance.
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
if (innerProperties() != null) {
innerProperties().validate();
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy