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

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

There is a newer version: 2.72.0
Show newest version
// *** 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.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 StreamingPolicyFairPlayConfigurationResponse {
    /**
     * @return All license to be persistent or not
     * 
     */
    private Boolean allowPersistentLicense;
    /**
     * @return Template for the URL of the custom service delivering licenses to end user players.  Not required when using Azure Media Services for issuing licenses.  The template supports replaceable tokens that the service will update at runtime with the value specific to the request.  The currently supported token values are {AlternativeMediaId}, which is replaced with the value of StreamingLocatorId.AlternativeMediaId, and {ContentKeyId}, which is replaced with the value of identifier of the key being requested.
     * 
     */
    private @Nullable String customLicenseAcquisitionUrlTemplate;

    private StreamingPolicyFairPlayConfigurationResponse() {}
    /**
     * @return All license to be persistent or not
     * 
     */
    public Boolean allowPersistentLicense() {
        return this.allowPersistentLicense;
    }
    /**
     * @return Template for the URL of the custom service delivering licenses to end user players.  Not required when using Azure Media Services for issuing licenses.  The template supports replaceable tokens that the service will update at runtime with the value specific to the request.  The currently supported token values are {AlternativeMediaId}, which is replaced with the value of StreamingLocatorId.AlternativeMediaId, and {ContentKeyId}, which is replaced with the value of identifier of the key being requested.
     * 
     */
    public Optional customLicenseAcquisitionUrlTemplate() {
        return Optional.ofNullable(this.customLicenseAcquisitionUrlTemplate);
    }

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

    public static Builder builder(StreamingPolicyFairPlayConfigurationResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private Boolean allowPersistentLicense;
        private @Nullable String customLicenseAcquisitionUrlTemplate;
        public Builder() {}
        public Builder(StreamingPolicyFairPlayConfigurationResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.allowPersistentLicense = defaults.allowPersistentLicense;
    	      this.customLicenseAcquisitionUrlTemplate = defaults.customLicenseAcquisitionUrlTemplate;
        }

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

            this.customLicenseAcquisitionUrlTemplate = customLicenseAcquisitionUrlTemplate;
            return this;
        }
        public StreamingPolicyFairPlayConfigurationResponse build() {
            final var _resultValue = new StreamingPolicyFairPlayConfigurationResponse();
            _resultValue.allowPersistentLicense = allowPersistentLicense;
            _resultValue.customLicenseAcquisitionUrlTemplate = customLicenseAcquisitionUrlTemplate;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy