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

com.pulumi.azurenative.purview.AccountArgs Maven / Gradle / Ivy

There is a newer version: 2.82.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.purview;

import com.pulumi.azurenative.purview.enums.ManagedEventHubState;
import com.pulumi.azurenative.purview.enums.ManagedResourcesPublicNetworkAccess;
import com.pulumi.azurenative.purview.enums.PublicNetworkAccess;
import com.pulumi.azurenative.purview.inputs.IdentityArgs;
import com.pulumi.core.Either;
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.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final AccountArgs Empty = new AccountArgs();

    /**
     * The name of the account.
     * 
     */
    @Import(name="accountName")
    private @Nullable Output accountName;

    /**
     * @return The name of the account.
     * 
     */
    public Optional> accountName() {
        return Optional.ofNullable(this.accountName);
    }

    /**
     * Identity Info on the tracked resource
     * 
     */
    @Import(name="identity")
    private @Nullable Output identity;

    /**
     * @return Identity Info on the tracked resource
     * 
     */
    public Optional> identity() {
        return Optional.ofNullable(this.identity);
    }

    /**
     * Gets or sets the location.
     * 
     */
    @Import(name="location")
    private @Nullable Output location;

    /**
     * @return Gets or sets the location.
     * 
     */
    public Optional> location() {
        return Optional.ofNullable(this.location);
    }

    /**
     *  Gets or sets the state of managed eventhub. If enabled managed eventhub will be created, if disabled the managed eventhub will be removed.
     * 
     */
    @Import(name="managedEventHubState")
    private @Nullable Output> managedEventHubState;

    /**
     * @return  Gets or sets the state of managed eventhub. If enabled managed eventhub will be created, if disabled the managed eventhub will be removed.
     * 
     */
    public Optional>> managedEventHubState() {
        return Optional.ofNullable(this.managedEventHubState);
    }

    /**
     * Gets or sets the managed resource group name
     * 
     */
    @Import(name="managedResourceGroupName")
    private @Nullable Output managedResourceGroupName;

    /**
     * @return Gets or sets the managed resource group name
     * 
     */
    public Optional> managedResourceGroupName() {
        return Optional.ofNullable(this.managedResourceGroupName);
    }

    /**
     * Gets or sets the public network access for managed resources.
     * 
     */
    @Import(name="managedResourcesPublicNetworkAccess")
    private @Nullable Output> managedResourcesPublicNetworkAccess;

    /**
     * @return Gets or sets the public network access for managed resources.
     * 
     */
    public Optional>> managedResourcesPublicNetworkAccess() {
        return Optional.ofNullable(this.managedResourcesPublicNetworkAccess);
    }

    /**
     * Gets or sets the public network access.
     * 
     */
    @Import(name="publicNetworkAccess")
    private @Nullable Output> publicNetworkAccess;

    /**
     * @return Gets or sets the public network access.
     * 
     */
    public Optional>> publicNetworkAccess() {
        return Optional.ofNullable(this.publicNetworkAccess);
    }

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

    /**
     * @return The resource group name.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    /**
     * Tags on the azure resource.
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

    /**
     * @return Tags on the azure resource.
     * 
     */
    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

    private AccountArgs() {}

    private AccountArgs(AccountArgs $) {
        this.accountName = $.accountName;
        this.identity = $.identity;
        this.location = $.location;
        this.managedEventHubState = $.managedEventHubState;
        this.managedResourceGroupName = $.managedResourceGroupName;
        this.managedResourcesPublicNetworkAccess = $.managedResourcesPublicNetworkAccess;
        this.publicNetworkAccess = $.publicNetworkAccess;
        this.resourceGroupName = $.resourceGroupName;
        this.tags = $.tags;
    }

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

    public static final class Builder {
        private AccountArgs $;

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

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

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

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

        /**
         * @param identity Identity Info on the tracked resource
         * 
         * @return builder
         * 
         */
        public Builder identity(@Nullable Output identity) {
            $.identity = identity;
            return this;
        }

        /**
         * @param identity Identity Info on the tracked resource
         * 
         * @return builder
         * 
         */
        public Builder identity(IdentityArgs identity) {
            return identity(Output.of(identity));
        }

        /**
         * @param location Gets or sets the location.
         * 
         * @return builder
         * 
         */
        public Builder location(@Nullable Output location) {
            $.location = location;
            return this;
        }

        /**
         * @param location Gets or sets the location.
         * 
         * @return builder
         * 
         */
        public Builder location(String location) {
            return location(Output.of(location));
        }

        /**
         * @param managedEventHubState  Gets or sets the state of managed eventhub. If enabled managed eventhub will be created, if disabled the managed eventhub will be removed.
         * 
         * @return builder
         * 
         */
        public Builder managedEventHubState(@Nullable Output> managedEventHubState) {
            $.managedEventHubState = managedEventHubState;
            return this;
        }

        /**
         * @param managedEventHubState  Gets or sets the state of managed eventhub. If enabled managed eventhub will be created, if disabled the managed eventhub will be removed.
         * 
         * @return builder
         * 
         */
        public Builder managedEventHubState(Either managedEventHubState) {
            return managedEventHubState(Output.of(managedEventHubState));
        }

        /**
         * @param managedEventHubState  Gets or sets the state of managed eventhub. If enabled managed eventhub will be created, if disabled the managed eventhub will be removed.
         * 
         * @return builder
         * 
         */
        public Builder managedEventHubState(String managedEventHubState) {
            return managedEventHubState(Either.ofLeft(managedEventHubState));
        }

        /**
         * @param managedEventHubState  Gets or sets the state of managed eventhub. If enabled managed eventhub will be created, if disabled the managed eventhub will be removed.
         * 
         * @return builder
         * 
         */
        public Builder managedEventHubState(ManagedEventHubState managedEventHubState) {
            return managedEventHubState(Either.ofRight(managedEventHubState));
        }

        /**
         * @param managedResourceGroupName Gets or sets the managed resource group name
         * 
         * @return builder
         * 
         */
        public Builder managedResourceGroupName(@Nullable Output managedResourceGroupName) {
            $.managedResourceGroupName = managedResourceGroupName;
            return this;
        }

        /**
         * @param managedResourceGroupName Gets or sets the managed resource group name
         * 
         * @return builder
         * 
         */
        public Builder managedResourceGroupName(String managedResourceGroupName) {
            return managedResourceGroupName(Output.of(managedResourceGroupName));
        }

        /**
         * @param managedResourcesPublicNetworkAccess Gets or sets the public network access for managed resources.
         * 
         * @return builder
         * 
         */
        public Builder managedResourcesPublicNetworkAccess(@Nullable Output> managedResourcesPublicNetworkAccess) {
            $.managedResourcesPublicNetworkAccess = managedResourcesPublicNetworkAccess;
            return this;
        }

        /**
         * @param managedResourcesPublicNetworkAccess Gets or sets the public network access for managed resources.
         * 
         * @return builder
         * 
         */
        public Builder managedResourcesPublicNetworkAccess(Either managedResourcesPublicNetworkAccess) {
            return managedResourcesPublicNetworkAccess(Output.of(managedResourcesPublicNetworkAccess));
        }

        /**
         * @param managedResourcesPublicNetworkAccess Gets or sets the public network access for managed resources.
         * 
         * @return builder
         * 
         */
        public Builder managedResourcesPublicNetworkAccess(String managedResourcesPublicNetworkAccess) {
            return managedResourcesPublicNetworkAccess(Either.ofLeft(managedResourcesPublicNetworkAccess));
        }

        /**
         * @param managedResourcesPublicNetworkAccess Gets or sets the public network access for managed resources.
         * 
         * @return builder
         * 
         */
        public Builder managedResourcesPublicNetworkAccess(ManagedResourcesPublicNetworkAccess managedResourcesPublicNetworkAccess) {
            return managedResourcesPublicNetworkAccess(Either.ofRight(managedResourcesPublicNetworkAccess));
        }

        /**
         * @param publicNetworkAccess Gets or sets the public network access.
         * 
         * @return builder
         * 
         */
        public Builder publicNetworkAccess(@Nullable Output> publicNetworkAccess) {
            $.publicNetworkAccess = publicNetworkAccess;
            return this;
        }

        /**
         * @param publicNetworkAccess Gets or sets the public network access.
         * 
         * @return builder
         * 
         */
        public Builder publicNetworkAccess(Either publicNetworkAccess) {
            return publicNetworkAccess(Output.of(publicNetworkAccess));
        }

        /**
         * @param publicNetworkAccess Gets or sets the public network access.
         * 
         * @return builder
         * 
         */
        public Builder publicNetworkAccess(String publicNetworkAccess) {
            return publicNetworkAccess(Either.ofLeft(publicNetworkAccess));
        }

        /**
         * @param publicNetworkAccess Gets or sets the public network access.
         * 
         * @return builder
         * 
         */
        public Builder publicNetworkAccess(PublicNetworkAccess publicNetworkAccess) {
            return publicNetworkAccess(Either.ofRight(publicNetworkAccess));
        }

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

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

        /**
         * @param tags Tags on the azure resource.
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags Tags on the azure resource.
         * 
         * @return builder
         * 
         */
        public Builder tags(Map tags) {
            return tags(Output.of(tags));
        }

        public AccountArgs build() {
            $.managedEventHubState = Codegen.stringProp("managedEventHubState").left(ManagedEventHubState.class).output().arg($.managedEventHubState).def("NotSpecified").getNullable();
            $.managedResourcesPublicNetworkAccess = Codegen.stringProp("managedResourcesPublicNetworkAccess").left(ManagedResourcesPublicNetworkAccess.class).output().arg($.managedResourcesPublicNetworkAccess).def("NotSpecified").getNullable();
            $.publicNetworkAccess = Codegen.stringProp("publicNetworkAccess").left(PublicNetworkAccess.class).output().arg($.publicNetworkAccess).def("Enabled").getNullable();
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("AccountArgs", "resourceGroupName");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy