All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azurenative.media.outputs.ContentKeyPolicyPlayReadyLicenseResponse Maven / Gradle / Ivy

// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.azurenative.media.outputs;

import com.pulumi.azurenative.media.outputs.ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeaderResponse;
import com.pulumi.azurenative.media.outputs.ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifierResponse;
import com.pulumi.azurenative.media.outputs.ContentKeyPolicyPlayReadyPlayRightResponse;
import com.pulumi.core.Either;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class ContentKeyPolicyPlayReadyLicenseResponse {
    /**
     * @return A flag indicating whether test devices can use the license.
     * 
     */
    private Boolean allowTestDevices;
    /**
     * @return The begin date of license
     * 
     */
    private @Nullable String beginDate;
    /**
     * @return The content key location.
     * 
     */
    private Either contentKeyLocation;
    /**
     * @return The PlayReady content type.
     * 
     */
    private String contentType;
    /**
     * @return The expiration date of license.
     * 
     */
    private @Nullable String expirationDate;
    /**
     * @return The grace period of license.
     * 
     */
    private @Nullable String gracePeriod;
    /**
     * @return The license type.
     * 
     */
    private String licenseType;
    /**
     * @return The license PlayRight
     * 
     */
    private @Nullable ContentKeyPolicyPlayReadyPlayRightResponse playRight;
    /**
     * @return The relative begin date of license.
     * 
     */
    private @Nullable String relativeBeginDate;
    /**
     * @return The relative expiration date of license.
     * 
     */
    private @Nullable String relativeExpirationDate;
    /**
     * @return The security level.
     * 
     */
    private @Nullable String securityLevel;

    private ContentKeyPolicyPlayReadyLicenseResponse() {}
    /**
     * @return A flag indicating whether test devices can use the license.
     * 
     */
    public Boolean allowTestDevices() {
        return this.allowTestDevices;
    }
    /**
     * @return The begin date of license
     * 
     */
    public Optional beginDate() {
        return Optional.ofNullable(this.beginDate);
    }
    /**
     * @return The content key location.
     * 
     */
    public Either contentKeyLocation() {
        return this.contentKeyLocation;
    }
    /**
     * @return The PlayReady content type.
     * 
     */
    public String contentType() {
        return this.contentType;
    }
    /**
     * @return The expiration date of license.
     * 
     */
    public Optional expirationDate() {
        return Optional.ofNullable(this.expirationDate);
    }
    /**
     * @return The grace period of license.
     * 
     */
    public Optional gracePeriod() {
        return Optional.ofNullable(this.gracePeriod);
    }
    /**
     * @return The license type.
     * 
     */
    public String licenseType() {
        return this.licenseType;
    }
    /**
     * @return The license PlayRight
     * 
     */
    public Optional playRight() {
        return Optional.ofNullable(this.playRight);
    }
    /**
     * @return The relative begin date of license.
     * 
     */
    public Optional relativeBeginDate() {
        return Optional.ofNullable(this.relativeBeginDate);
    }
    /**
     * @return The relative expiration date of license.
     * 
     */
    public Optional relativeExpirationDate() {
        return Optional.ofNullable(this.relativeExpirationDate);
    }
    /**
     * @return The security level.
     * 
     */
    public Optional securityLevel() {
        return Optional.ofNullable(this.securityLevel);
    }

    public static Builder builder() {
        return new Builder();
    }

    public static Builder builder(ContentKeyPolicyPlayReadyLicenseResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private Boolean allowTestDevices;
        private @Nullable String beginDate;
        private Either contentKeyLocation;
        private String contentType;
        private @Nullable String expirationDate;
        private @Nullable String gracePeriod;
        private String licenseType;
        private @Nullable ContentKeyPolicyPlayReadyPlayRightResponse playRight;
        private @Nullable String relativeBeginDate;
        private @Nullable String relativeExpirationDate;
        private @Nullable String securityLevel;
        public Builder() {}
        public Builder(ContentKeyPolicyPlayReadyLicenseResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.allowTestDevices = defaults.allowTestDevices;
    	      this.beginDate = defaults.beginDate;
    	      this.contentKeyLocation = defaults.contentKeyLocation;
    	      this.contentType = defaults.contentType;
    	      this.expirationDate = defaults.expirationDate;
    	      this.gracePeriod = defaults.gracePeriod;
    	      this.licenseType = defaults.licenseType;
    	      this.playRight = defaults.playRight;
    	      this.relativeBeginDate = defaults.relativeBeginDate;
    	      this.relativeExpirationDate = defaults.relativeExpirationDate;
    	      this.securityLevel = defaults.securityLevel;
        }

        @CustomType.Setter
        public Builder allowTestDevices(Boolean allowTestDevices) {
            if (allowTestDevices == null) {
              throw new MissingRequiredPropertyException("ContentKeyPolicyPlayReadyLicenseResponse", "allowTestDevices");
            }
            this.allowTestDevices = allowTestDevices;
            return this;
        }
        @CustomType.Setter
        public Builder beginDate(@Nullable String beginDate) {

            this.beginDate = beginDate;
            return this;
        }
        @CustomType.Setter
        public Builder contentKeyLocation(Either contentKeyLocation) {
            if (contentKeyLocation == null) {
              throw new MissingRequiredPropertyException("ContentKeyPolicyPlayReadyLicenseResponse", "contentKeyLocation");
            }
            this.contentKeyLocation = contentKeyLocation;
            return this;
        }
        @CustomType.Setter
        public Builder contentType(String contentType) {
            if (contentType == null) {
              throw new MissingRequiredPropertyException("ContentKeyPolicyPlayReadyLicenseResponse", "contentType");
            }
            this.contentType = contentType;
            return this;
        }
        @CustomType.Setter
        public Builder expirationDate(@Nullable String expirationDate) {

            this.expirationDate = expirationDate;
            return this;
        }
        @CustomType.Setter
        public Builder gracePeriod(@Nullable String gracePeriod) {

            this.gracePeriod = gracePeriod;
            return this;
        }
        @CustomType.Setter
        public Builder licenseType(String licenseType) {
            if (licenseType == null) {
              throw new MissingRequiredPropertyException("ContentKeyPolicyPlayReadyLicenseResponse", "licenseType");
            }
            this.licenseType = licenseType;
            return this;
        }
        @CustomType.Setter
        public Builder playRight(@Nullable ContentKeyPolicyPlayReadyPlayRightResponse playRight) {

            this.playRight = playRight;
            return this;
        }
        @CustomType.Setter
        public Builder relativeBeginDate(@Nullable String relativeBeginDate) {

            this.relativeBeginDate = relativeBeginDate;
            return this;
        }
        @CustomType.Setter
        public Builder relativeExpirationDate(@Nullable String relativeExpirationDate) {

            this.relativeExpirationDate = relativeExpirationDate;
            return this;
        }
        @CustomType.Setter
        public Builder securityLevel(@Nullable String securityLevel) {

            this.securityLevel = securityLevel;
            return this;
        }
        public ContentKeyPolicyPlayReadyLicenseResponse build() {
            final var _resultValue = new ContentKeyPolicyPlayReadyLicenseResponse();
            _resultValue.allowTestDevices = allowTestDevices;
            _resultValue.beginDate = beginDate;
            _resultValue.contentKeyLocation = contentKeyLocation;
            _resultValue.contentType = contentType;
            _resultValue.expirationDate = expirationDate;
            _resultValue.gracePeriod = gracePeriod;
            _resultValue.licenseType = licenseType;
            _resultValue.playRight = playRight;
            _resultValue.relativeBeginDate = relativeBeginDate;
            _resultValue.relativeExpirationDate = relativeExpirationDate;
            _resultValue.securityLevel = securityLevel;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy