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

com.pulumi.azurenative.cognitiveservices.inputs.AccountPropertiesArgs Maven / Gradle / Ivy

// *** 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.cognitiveservices.inputs;

import com.pulumi.azurenative.cognitiveservices.enums.PublicNetworkAccess;
import com.pulumi.azurenative.cognitiveservices.inputs.ApiPropertiesArgs;
import com.pulumi.azurenative.cognitiveservices.inputs.EncryptionArgs;
import com.pulumi.azurenative.cognitiveservices.inputs.MultiRegionSettingsArgs;
import com.pulumi.azurenative.cognitiveservices.inputs.NetworkRuleSetArgs;
import com.pulumi.azurenative.cognitiveservices.inputs.UserOwnedStorageArgs;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Boolean;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Properties of Cognitive Services account.
 * 
 */
public final class AccountPropertiesArgs extends com.pulumi.resources.ResourceArgs {

    public static final AccountPropertiesArgs Empty = new AccountPropertiesArgs();

    @Import(name="allowedFqdnList")
    private @Nullable Output> allowedFqdnList;

    public Optional>> allowedFqdnList() {
        return Optional.ofNullable(this.allowedFqdnList);
    }

    /**
     * The api properties for special APIs.
     * 
     */
    @Import(name="apiProperties")
    private @Nullable Output apiProperties;

    /**
     * @return The api properties for special APIs.
     * 
     */
    public Optional> apiProperties() {
        return Optional.ofNullable(this.apiProperties);
    }

    /**
     * Optional subdomain name used for token-based authentication.
     * 
     */
    @Import(name="customSubDomainName")
    private @Nullable Output customSubDomainName;

    /**
     * @return Optional subdomain name used for token-based authentication.
     * 
     */
    public Optional> customSubDomainName() {
        return Optional.ofNullable(this.customSubDomainName);
    }

    @Import(name="disableLocalAuth")
    private @Nullable Output disableLocalAuth;

    public Optional> disableLocalAuth() {
        return Optional.ofNullable(this.disableLocalAuth);
    }

    /**
     * The flag to enable dynamic throttling.
     * 
     */
    @Import(name="dynamicThrottlingEnabled")
    private @Nullable Output dynamicThrottlingEnabled;

    /**
     * @return The flag to enable dynamic throttling.
     * 
     */
    public Optional> dynamicThrottlingEnabled() {
        return Optional.ofNullable(this.dynamicThrottlingEnabled);
    }

    /**
     * The encryption properties for this resource.
     * 
     */
    @Import(name="encryption")
    private @Nullable Output encryption;

    /**
     * @return The encryption properties for this resource.
     * 
     */
    public Optional> encryption() {
        return Optional.ofNullable(this.encryption);
    }

    /**
     * The multiregion settings of Cognitive Services account.
     * 
     */
    @Import(name="locations")
    private @Nullable Output locations;

    /**
     * @return The multiregion settings of Cognitive Services account.
     * 
     */
    public Optional> locations() {
        return Optional.ofNullable(this.locations);
    }

    /**
     * Resource migration token.
     * 
     */
    @Import(name="migrationToken")
    private @Nullable Output migrationToken;

    /**
     * @return Resource migration token.
     * 
     */
    public Optional> migrationToken() {
        return Optional.ofNullable(this.migrationToken);
    }

    /**
     * A collection of rules governing the accessibility from specific network locations.
     * 
     */
    @Import(name="networkAcls")
    private @Nullable Output networkAcls;

    /**
     * @return A collection of rules governing the accessibility from specific network locations.
     * 
     */
    public Optional> networkAcls() {
        return Optional.ofNullable(this.networkAcls);
    }

    /**
     * Whether or not public endpoint access is allowed for this account.
     * 
     */
    @Import(name="publicNetworkAccess")
    private @Nullable Output> publicNetworkAccess;

    /**
     * @return Whether or not public endpoint access is allowed for this account.
     * 
     */
    public Optional>> publicNetworkAccess() {
        return Optional.ofNullable(this.publicNetworkAccess);
    }

    @Import(name="restore")
    private @Nullable Output restore;

    public Optional> restore() {
        return Optional.ofNullable(this.restore);
    }

    @Import(name="restrictOutboundNetworkAccess")
    private @Nullable Output restrictOutboundNetworkAccess;

    public Optional> restrictOutboundNetworkAccess() {
        return Optional.ofNullable(this.restrictOutboundNetworkAccess);
    }

    /**
     * The storage accounts for this resource.
     * 
     */
    @Import(name="userOwnedStorage")
    private @Nullable Output> userOwnedStorage;

    /**
     * @return The storage accounts for this resource.
     * 
     */
    public Optional>> userOwnedStorage() {
        return Optional.ofNullable(this.userOwnedStorage);
    }

    private AccountPropertiesArgs() {}

    private AccountPropertiesArgs(AccountPropertiesArgs $) {
        this.allowedFqdnList = $.allowedFqdnList;
        this.apiProperties = $.apiProperties;
        this.customSubDomainName = $.customSubDomainName;
        this.disableLocalAuth = $.disableLocalAuth;
        this.dynamicThrottlingEnabled = $.dynamicThrottlingEnabled;
        this.encryption = $.encryption;
        this.locations = $.locations;
        this.migrationToken = $.migrationToken;
        this.networkAcls = $.networkAcls;
        this.publicNetworkAccess = $.publicNetworkAccess;
        this.restore = $.restore;
        this.restrictOutboundNetworkAccess = $.restrictOutboundNetworkAccess;
        this.userOwnedStorage = $.userOwnedStorage;
    }

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

    public static final class Builder {
        private AccountPropertiesArgs $;

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

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

        public Builder allowedFqdnList(@Nullable Output> allowedFqdnList) {
            $.allowedFqdnList = allowedFqdnList;
            return this;
        }

        public Builder allowedFqdnList(List allowedFqdnList) {
            return allowedFqdnList(Output.of(allowedFqdnList));
        }

        public Builder allowedFqdnList(String... allowedFqdnList) {
            return allowedFqdnList(List.of(allowedFqdnList));
        }

        /**
         * @param apiProperties The api properties for special APIs.
         * 
         * @return builder
         * 
         */
        public Builder apiProperties(@Nullable Output apiProperties) {
            $.apiProperties = apiProperties;
            return this;
        }

        /**
         * @param apiProperties The api properties for special APIs.
         * 
         * @return builder
         * 
         */
        public Builder apiProperties(ApiPropertiesArgs apiProperties) {
            return apiProperties(Output.of(apiProperties));
        }

        /**
         * @param customSubDomainName Optional subdomain name used for token-based authentication.
         * 
         * @return builder
         * 
         */
        public Builder customSubDomainName(@Nullable Output customSubDomainName) {
            $.customSubDomainName = customSubDomainName;
            return this;
        }

        /**
         * @param customSubDomainName Optional subdomain name used for token-based authentication.
         * 
         * @return builder
         * 
         */
        public Builder customSubDomainName(String customSubDomainName) {
            return customSubDomainName(Output.of(customSubDomainName));
        }

        public Builder disableLocalAuth(@Nullable Output disableLocalAuth) {
            $.disableLocalAuth = disableLocalAuth;
            return this;
        }

        public Builder disableLocalAuth(Boolean disableLocalAuth) {
            return disableLocalAuth(Output.of(disableLocalAuth));
        }

        /**
         * @param dynamicThrottlingEnabled The flag to enable dynamic throttling.
         * 
         * @return builder
         * 
         */
        public Builder dynamicThrottlingEnabled(@Nullable Output dynamicThrottlingEnabled) {
            $.dynamicThrottlingEnabled = dynamicThrottlingEnabled;
            return this;
        }

        /**
         * @param dynamicThrottlingEnabled The flag to enable dynamic throttling.
         * 
         * @return builder
         * 
         */
        public Builder dynamicThrottlingEnabled(Boolean dynamicThrottlingEnabled) {
            return dynamicThrottlingEnabled(Output.of(dynamicThrottlingEnabled));
        }

        /**
         * @param encryption The encryption properties for this resource.
         * 
         * @return builder
         * 
         */
        public Builder encryption(@Nullable Output encryption) {
            $.encryption = encryption;
            return this;
        }

        /**
         * @param encryption The encryption properties for this resource.
         * 
         * @return builder
         * 
         */
        public Builder encryption(EncryptionArgs encryption) {
            return encryption(Output.of(encryption));
        }

        /**
         * @param locations The multiregion settings of Cognitive Services account.
         * 
         * @return builder
         * 
         */
        public Builder locations(@Nullable Output locations) {
            $.locations = locations;
            return this;
        }

        /**
         * @param locations The multiregion settings of Cognitive Services account.
         * 
         * @return builder
         * 
         */
        public Builder locations(MultiRegionSettingsArgs locations) {
            return locations(Output.of(locations));
        }

        /**
         * @param migrationToken Resource migration token.
         * 
         * @return builder
         * 
         */
        public Builder migrationToken(@Nullable Output migrationToken) {
            $.migrationToken = migrationToken;
            return this;
        }

        /**
         * @param migrationToken Resource migration token.
         * 
         * @return builder
         * 
         */
        public Builder migrationToken(String migrationToken) {
            return migrationToken(Output.of(migrationToken));
        }

        /**
         * @param networkAcls A collection of rules governing the accessibility from specific network locations.
         * 
         * @return builder
         * 
         */
        public Builder networkAcls(@Nullable Output networkAcls) {
            $.networkAcls = networkAcls;
            return this;
        }

        /**
         * @param networkAcls A collection of rules governing the accessibility from specific network locations.
         * 
         * @return builder
         * 
         */
        public Builder networkAcls(NetworkRuleSetArgs networkAcls) {
            return networkAcls(Output.of(networkAcls));
        }

        /**
         * @param publicNetworkAccess Whether or not public endpoint access is allowed for this account.
         * 
         * @return builder
         * 
         */
        public Builder publicNetworkAccess(@Nullable Output> publicNetworkAccess) {
            $.publicNetworkAccess = publicNetworkAccess;
            return this;
        }

        /**
         * @param publicNetworkAccess Whether or not public endpoint access is allowed for this account.
         * 
         * @return builder
         * 
         */
        public Builder publicNetworkAccess(Either publicNetworkAccess) {
            return publicNetworkAccess(Output.of(publicNetworkAccess));
        }

        /**
         * @param publicNetworkAccess Whether or not public endpoint access is allowed for this account.
         * 
         * @return builder
         * 
         */
        public Builder publicNetworkAccess(String publicNetworkAccess) {
            return publicNetworkAccess(Either.ofLeft(publicNetworkAccess));
        }

        /**
         * @param publicNetworkAccess Whether or not public endpoint access is allowed for this account.
         * 
         * @return builder
         * 
         */
        public Builder publicNetworkAccess(PublicNetworkAccess publicNetworkAccess) {
            return publicNetworkAccess(Either.ofRight(publicNetworkAccess));
        }

        public Builder restore(@Nullable Output restore) {
            $.restore = restore;
            return this;
        }

        public Builder restore(Boolean restore) {
            return restore(Output.of(restore));
        }

        public Builder restrictOutboundNetworkAccess(@Nullable Output restrictOutboundNetworkAccess) {
            $.restrictOutboundNetworkAccess = restrictOutboundNetworkAccess;
            return this;
        }

        public Builder restrictOutboundNetworkAccess(Boolean restrictOutboundNetworkAccess) {
            return restrictOutboundNetworkAccess(Output.of(restrictOutboundNetworkAccess));
        }

        /**
         * @param userOwnedStorage The storage accounts for this resource.
         * 
         * @return builder
         * 
         */
        public Builder userOwnedStorage(@Nullable Output> userOwnedStorage) {
            $.userOwnedStorage = userOwnedStorage;
            return this;
        }

        /**
         * @param userOwnedStorage The storage accounts for this resource.
         * 
         * @return builder
         * 
         */
        public Builder userOwnedStorage(List userOwnedStorage) {
            return userOwnedStorage(Output.of(userOwnedStorage));
        }

        /**
         * @param userOwnedStorage The storage accounts for this resource.
         * 
         * @return builder
         * 
         */
        public Builder userOwnedStorage(UserOwnedStorageArgs... userOwnedStorage) {
            return userOwnedStorage(List.of(userOwnedStorage));
        }

        public AccountPropertiesArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy