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

com.pulumi.azurenative.media.inputs.ContentKeyPolicyPlayReadyConfigurationArgs 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.inputs;

import com.pulumi.azurenative.media.inputs.ContentKeyPolicyPlayReadyLicenseArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.core.internal.Codegen;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Specifies a configuration for PlayReady licenses.
 * 
 */
public final class ContentKeyPolicyPlayReadyConfigurationArgs extends com.pulumi.resources.ResourceArgs {

    public static final ContentKeyPolicyPlayReadyConfigurationArgs Empty = new ContentKeyPolicyPlayReadyConfigurationArgs();

    /**
     * The PlayReady licenses.
     * 
     */
    @Import(name="licenses", required=true)
    private Output> licenses;

    /**
     * @return The PlayReady licenses.
     * 
     */
    public Output> licenses() {
        return this.licenses;
    }

    /**
     * The discriminator for derived types.
     * Expected value is '#Microsoft.Media.ContentKeyPolicyPlayReadyConfiguration'.
     * 
     */
    @Import(name="odataType", required=true)
    private Output odataType;

    /**
     * @return The discriminator for derived types.
     * Expected value is '#Microsoft.Media.ContentKeyPolicyPlayReadyConfiguration'.
     * 
     */
    public Output odataType() {
        return this.odataType;
    }

    /**
     * The custom response data.
     * 
     */
    @Import(name="responseCustomData")
    private @Nullable Output responseCustomData;

    /**
     * @return The custom response data.
     * 
     */
    public Optional> responseCustomData() {
        return Optional.ofNullable(this.responseCustomData);
    }

    private ContentKeyPolicyPlayReadyConfigurationArgs() {}

    private ContentKeyPolicyPlayReadyConfigurationArgs(ContentKeyPolicyPlayReadyConfigurationArgs $) {
        this.licenses = $.licenses;
        this.odataType = $.odataType;
        this.responseCustomData = $.responseCustomData;
    }

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

    public static final class Builder {
        private ContentKeyPolicyPlayReadyConfigurationArgs $;

        public Builder() {
            $ = new ContentKeyPolicyPlayReadyConfigurationArgs();
        }

        public Builder(ContentKeyPolicyPlayReadyConfigurationArgs defaults) {
            $ = new ContentKeyPolicyPlayReadyConfigurationArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param licenses The PlayReady licenses.
         * 
         * @return builder
         * 
         */
        public Builder licenses(Output> licenses) {
            $.licenses = licenses;
            return this;
        }

        /**
         * @param licenses The PlayReady licenses.
         * 
         * @return builder
         * 
         */
        public Builder licenses(List licenses) {
            return licenses(Output.of(licenses));
        }

        /**
         * @param licenses The PlayReady licenses.
         * 
         * @return builder
         * 
         */
        public Builder licenses(ContentKeyPolicyPlayReadyLicenseArgs... licenses) {
            return licenses(List.of(licenses));
        }

        /**
         * @param odataType The discriminator for derived types.
         * Expected value is '#Microsoft.Media.ContentKeyPolicyPlayReadyConfiguration'.
         * 
         * @return builder
         * 
         */
        public Builder odataType(Output odataType) {
            $.odataType = odataType;
            return this;
        }

        /**
         * @param odataType The discriminator for derived types.
         * Expected value is '#Microsoft.Media.ContentKeyPolicyPlayReadyConfiguration'.
         * 
         * @return builder
         * 
         */
        public Builder odataType(String odataType) {
            return odataType(Output.of(odataType));
        }

        /**
         * @param responseCustomData The custom response data.
         * 
         * @return builder
         * 
         */
        public Builder responseCustomData(@Nullable Output responseCustomData) {
            $.responseCustomData = responseCustomData;
            return this;
        }

        /**
         * @param responseCustomData The custom response data.
         * 
         * @return builder
         * 
         */
        public Builder responseCustomData(String responseCustomData) {
            return responseCustomData(Output.of(responseCustomData));
        }

        public ContentKeyPolicyPlayReadyConfigurationArgs build() {
            if ($.licenses == null) {
                throw new MissingRequiredPropertyException("ContentKeyPolicyPlayReadyConfigurationArgs", "licenses");
            }
            $.odataType = Codegen.stringProp("odataType").output().arg($.odataType).require();
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy