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

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

import com.pulumi.azurenative.media.inputs.ContentKeyPolicyOptionArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
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;


public final class ContentKeyPolicyArgs extends com.pulumi.resources.ResourceArgs {

    public static final ContentKeyPolicyArgs Empty = new ContentKeyPolicyArgs();

    /**
     * The Media Services account name.
     * 
     */
    @Import(name="accountName", required=true)
    private Output accountName;

    /**
     * @return The Media Services account name.
     * 
     */
    public Output accountName() {
        return this.accountName;
    }

    /**
     * The Content Key Policy name.
     * 
     */
    @Import(name="contentKeyPolicyName")
    private @Nullable Output contentKeyPolicyName;

    /**
     * @return The Content Key Policy name.
     * 
     */
    public Optional> contentKeyPolicyName() {
        return Optional.ofNullable(this.contentKeyPolicyName);
    }

    /**
     * A description for the Policy.
     * 
     */
    @Import(name="description")
    private @Nullable Output description;

    /**
     * @return A description for the Policy.
     * 
     */
    public Optional> description() {
        return Optional.ofNullable(this.description);
    }

    /**
     * The Key Policy options.
     * 
     */
    @Import(name="options", required=true)
    private Output> options;

    /**
     * @return The Key Policy options.
     * 
     */
    public Output> options() {
        return this.options;
    }

    /**
     * The name of the resource group within the Azure subscription.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return The name of the resource group within the Azure subscription.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    private ContentKeyPolicyArgs() {}

    private ContentKeyPolicyArgs(ContentKeyPolicyArgs $) {
        this.accountName = $.accountName;
        this.contentKeyPolicyName = $.contentKeyPolicyName;
        this.description = $.description;
        this.options = $.options;
        this.resourceGroupName = $.resourceGroupName;
    }

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

    public static final class Builder {
        private ContentKeyPolicyArgs $;

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

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

        /**
         * @param accountName The Media Services account name.
         * 
         * @return builder
         * 
         */
        public Builder accountName(Output accountName) {
            $.accountName = accountName;
            return this;
        }

        /**
         * @param accountName The Media Services account name.
         * 
         * @return builder
         * 
         */
        public Builder accountName(String accountName) {
            return accountName(Output.of(accountName));
        }

        /**
         * @param contentKeyPolicyName The Content Key Policy name.
         * 
         * @return builder
         * 
         */
        public Builder contentKeyPolicyName(@Nullable Output contentKeyPolicyName) {
            $.contentKeyPolicyName = contentKeyPolicyName;
            return this;
        }

        /**
         * @param contentKeyPolicyName The Content Key Policy name.
         * 
         * @return builder
         * 
         */
        public Builder contentKeyPolicyName(String contentKeyPolicyName) {
            return contentKeyPolicyName(Output.of(contentKeyPolicyName));
        }

        /**
         * @param description A description for the Policy.
         * 
         * @return builder
         * 
         */
        public Builder description(@Nullable Output description) {
            $.description = description;
            return this;
        }

        /**
         * @param description A description for the Policy.
         * 
         * @return builder
         * 
         */
        public Builder description(String description) {
            return description(Output.of(description));
        }

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

        /**
         * @param options The Key Policy options.
         * 
         * @return builder
         * 
         */
        public Builder options(List options) {
            return options(Output.of(options));
        }

        /**
         * @param options The Key Policy options.
         * 
         * @return builder
         * 
         */
        public Builder options(ContentKeyPolicyOptionArgs... options) {
            return options(List.of(options));
        }

        /**
         * @param resourceGroupName The name of the resource group within the Azure subscription.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName The name of the resource group within the Azure subscription.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        public ContentKeyPolicyArgs build() {
            if ($.accountName == null) {
                throw new MissingRequiredPropertyException("ContentKeyPolicyArgs", "accountName");
            }
            if ($.options == null) {
                throw new MissingRequiredPropertyException("ContentKeyPolicyArgs", "options");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("ContentKeyPolicyArgs", "resourceGroupName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy