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

com.pulumi.azurenative.devices.inputs.SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionArgs Maven / Gradle / Ivy

There is a newer version: 2.89.2
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.devices.inputs;

import com.pulumi.azurenative.devices.enums.AccessRightsDescription;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Description of the shared access key.
 * 
 */
public final class SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionArgs extends com.pulumi.resources.ResourceArgs {

    public static final SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionArgs Empty = new SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionArgs();

    /**
     * Name of the key.
     * 
     */
    @Import(name="keyName", required=true)
    private Output keyName;

    /**
     * @return Name of the key.
     * 
     */
    public Output keyName() {
        return this.keyName;
    }

    /**
     * Primary SAS key value.
     * 
     */
    @Import(name="primaryKey")
    private @Nullable Output primaryKey;

    /**
     * @return Primary SAS key value.
     * 
     */
    public Optional> primaryKey() {
        return Optional.ofNullable(this.primaryKey);
    }

    /**
     * Rights that this key has.
     * 
     */
    @Import(name="rights", required=true)
    private Output> rights;

    /**
     * @return Rights that this key has.
     * 
     */
    public Output> rights() {
        return this.rights;
    }

    /**
     * Secondary SAS key value.
     * 
     */
    @Import(name="secondaryKey")
    private @Nullable Output secondaryKey;

    /**
     * @return Secondary SAS key value.
     * 
     */
    public Optional> secondaryKey() {
        return Optional.ofNullable(this.secondaryKey);
    }

    private SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionArgs() {}

    private SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionArgs(SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionArgs $) {
        this.keyName = $.keyName;
        this.primaryKey = $.primaryKey;
        this.rights = $.rights;
        this.secondaryKey = $.secondaryKey;
    }

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

    public static final class Builder {
        private SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionArgs $;

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

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

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

        /**
         * @param keyName Name of the key.
         * 
         * @return builder
         * 
         */
        public Builder keyName(String keyName) {
            return keyName(Output.of(keyName));
        }

        /**
         * @param primaryKey Primary SAS key value.
         * 
         * @return builder
         * 
         */
        public Builder primaryKey(@Nullable Output primaryKey) {
            $.primaryKey = primaryKey;
            return this;
        }

        /**
         * @param primaryKey Primary SAS key value.
         * 
         * @return builder
         * 
         */
        public Builder primaryKey(String primaryKey) {
            return primaryKey(Output.of(primaryKey));
        }

        /**
         * @param rights Rights that this key has.
         * 
         * @return builder
         * 
         */
        public Builder rights(Output> rights) {
            $.rights = rights;
            return this;
        }

        /**
         * @param rights Rights that this key has.
         * 
         * @return builder
         * 
         */
        public Builder rights(Either rights) {
            return rights(Output.of(rights));
        }

        /**
         * @param rights Rights that this key has.
         * 
         * @return builder
         * 
         */
        public Builder rights(String rights) {
            return rights(Either.ofLeft(rights));
        }

        /**
         * @param rights Rights that this key has.
         * 
         * @return builder
         * 
         */
        public Builder rights(AccessRightsDescription rights) {
            return rights(Either.ofRight(rights));
        }

        /**
         * @param secondaryKey Secondary SAS key value.
         * 
         * @return builder
         * 
         */
        public Builder secondaryKey(@Nullable Output secondaryKey) {
            $.secondaryKey = secondaryKey;
            return this;
        }

        /**
         * @param secondaryKey Secondary SAS key value.
         * 
         * @return builder
         * 
         */
        public Builder secondaryKey(String secondaryKey) {
            return secondaryKey(Output.of(secondaryKey));
        }

        public SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionArgs build() {
            if ($.keyName == null) {
                throw new MissingRequiredPropertyException("SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionArgs", "keyName");
            }
            if ($.rights == null) {
                throw new MissingRequiredPropertyException("SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionArgs", "rights");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy