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

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


/**
 * Specifies a symmetric key for token validation.
 * 
 */
public final class ContentKeyPolicySymmetricTokenKeyArgs extends com.pulumi.resources.ResourceArgs {

    public static final ContentKeyPolicySymmetricTokenKeyArgs Empty = new ContentKeyPolicySymmetricTokenKeyArgs();

    /**
     * The key value of the key
     * 
     */
    @Import(name="keyValue", required=true)
    private Output keyValue;

    /**
     * @return The key value of the key
     * 
     */
    public Output keyValue() {
        return this.keyValue;
    }

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

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

    private ContentKeyPolicySymmetricTokenKeyArgs() {}

    private ContentKeyPolicySymmetricTokenKeyArgs(ContentKeyPolicySymmetricTokenKeyArgs $) {
        this.keyValue = $.keyValue;
        this.odataType = $.odataType;
    }

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

    public static final class Builder {
        private ContentKeyPolicySymmetricTokenKeyArgs $;

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

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

        /**
         * @param keyValue The key value of the key
         * 
         * @return builder
         * 
         */
        public Builder keyValue(Output keyValue) {
            $.keyValue = keyValue;
            return this;
        }

        /**
         * @param keyValue The key value of the key
         * 
         * @return builder
         * 
         */
        public Builder keyValue(String keyValue) {
            return keyValue(Output.of(keyValue));
        }

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

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

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy