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

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.gcp.vertex.inputs.AiEndpointDeployedModelAutomaticResourceArgs;
import com.pulumi.gcp.vertex.inputs.AiEndpointDeployedModelDedicatedResourceArgs;
import com.pulumi.gcp.vertex.inputs.AiEndpointDeployedModelPrivateEndpointArgs;
import java.lang.Boolean;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final AiEndpointDeployedModelArgs Empty = new AiEndpointDeployedModelArgs();

    /**
     * (Output)
     * A description of resources that to large degree are decided by Vertex AI, and require only a modest additional configuration.
     * Structure is documented below.
     * 
     */
    @Import(name="automaticResources")
    private @Nullable Output<List<AiEndpointDeployedModelAutomaticResourceArgs>> automaticResources;

    /**
     * @return (Output)
     * A description of resources that to large degree are decided by Vertex AI, and require only a modest additional configuration.
     * Structure is documented below.
     * 
     */
    public Optional<Output<List<AiEndpointDeployedModelAutomaticResourceArgs>>> automaticResources() {
        return Optional.ofNullable(this.automaticResources);
    }

    /**
     * (Output)
     * Output only. Timestamp when the DeployedModel was created.
     * 
     */
    @Import(name="createTime")
    private @Nullable Output<String> createTime;

    /**
     * @return (Output)
     * Output only. Timestamp when the DeployedModel was created.
     * 
     */
    public Optional<Output<String>> createTime() {
        return Optional.ofNullable(this.createTime);
    }

    /**
     * (Output)
     * A description of resources that are dedicated to the DeployedModel, and that need a higher degree of manual configuration.
     * Structure is documented below.
     * 
     */
    @Import(name="dedicatedResources")
    private @Nullable Output<List<AiEndpointDeployedModelDedicatedResourceArgs>> dedicatedResources;

    /**
     * @return (Output)
     * A description of resources that are dedicated to the DeployedModel, and that need a higher degree of manual configuration.
     * Structure is documented below.
     * 
     */
    public Optional<Output<List<AiEndpointDeployedModelDedicatedResourceArgs>>> dedicatedResources() {
        return Optional.ofNullable(this.dedicatedResources);
    }

    /**
     * Required. The display name of the Endpoint. The name can be up to 128 characters long and can consist of any UTF-8 characters.
     * 
     */
    @Import(name="displayName")
    private @Nullable Output<String> displayName;

    /**
     * @return Required. The display name of the Endpoint. The name can be up to 128 characters long and can consist of any UTF-8 characters.
     * 
     */
    public Optional<Output<String>> displayName() {
        return Optional.ofNullable(this.displayName);
    }

    /**
     * (Output)
     * These logs are like standard server access logs, containing information like timestamp and latency for each prediction request. Note that Stackdriver logs may incur a cost, especially if your project receives prediction requests at a high queries per second rate (QPS). Estimate your costs before enabling this option.
     * 
     */
    @Import(name="enableAccessLogging")
    private @Nullable Output<Boolean> enableAccessLogging;

    /**
     * @return (Output)
     * These logs are like standard server access logs, containing information like timestamp and latency for each prediction request. Note that Stackdriver logs may incur a cost, especially if your project receives prediction requests at a high queries per second rate (QPS). Estimate your costs before enabling this option.
     * 
     */
    public Optional<Output<Boolean>> enableAccessLogging() {
        return Optional.ofNullable(this.enableAccessLogging);
    }

    /**
     * (Output)
     * If true, the container of the DeployedModel instances will send `stderr` and `stdout` streams to Stackdriver Logging. Only supported for custom-trained Models and AutoML Tabular Models.
     * 
     */
    @Import(name="enableContainerLogging")
    private @Nullable Output<Boolean> enableContainerLogging;

    /**
     * @return (Output)
     * If true, the container of the DeployedModel instances will send `stderr` and `stdout` streams to Stackdriver Logging. Only supported for custom-trained Models and AutoML Tabular Models.
     * 
     */
    public Optional<Output<Boolean>> enableContainerLogging() {
        return Optional.ofNullable(this.enableContainerLogging);
    }

    /**
     * (Output)
     * The ID of the DeployedModel. If not provided upon deployment, Vertex AI will generate a value for this ID. This value should be 1-10 characters, and valid characters are /[0-9]/.
     * 
     */
    @Import(name="id")
    private @Nullable Output<String> id;

    /**
     * @return (Output)
     * The ID of the DeployedModel. If not provided upon deployment, Vertex AI will generate a value for this ID. This value should be 1-10 characters, and valid characters are /[0-9]/.
     * 
     */
    public Optional<Output<String>> id() {
        return Optional.ofNullable(this.id);
    }

    /**
     * (Output)
     * The name of the Model that this is the deployment of. Note that the Model may be in a different location than the DeployedModel&#39;s Endpoint.
     * 
     */
    @Import(name="model")
    private @Nullable Output<String> model;

    /**
     * @return (Output)
     * The name of the Model that this is the deployment of. Note that the Model may be in a different location than the DeployedModel&#39;s Endpoint.
     * 
     */
    public Optional<Output<String>> model() {
        return Optional.ofNullable(this.model);
    }

    /**
     * (Output)
     * Output only. The version ID of the model that is deployed.
     * 
     */
    @Import(name="modelVersionId")
    private @Nullable Output<String> modelVersionId;

    /**
     * @return (Output)
     * Output only. The version ID of the model that is deployed.
     * 
     */
    public Optional<Output<String>> modelVersionId() {
        return Optional.ofNullable(this.modelVersionId);
    }

    /**
     * (Output)
     * Output only. Provide paths for users to send predict/explain/health requests directly to the deployed model services running on Cloud via private services access. This field is populated if network is configured.
     * Structure is documented below.
     * 
     */
    @Import(name="privateEndpoints")
    private @Nullable Output<List<AiEndpointDeployedModelPrivateEndpointArgs>> privateEndpoints;

    /**
     * @return (Output)
     * Output only. Provide paths for users to send predict/explain/health requests directly to the deployed model services running on Cloud via private services access. This field is populated if network is configured.
     * Structure is documented below.
     * 
     */
    public Optional<Output<List<AiEndpointDeployedModelPrivateEndpointArgs>>> privateEndpoints() {
        return Optional.ofNullable(this.privateEndpoints);
    }

    /**
     * (Output)
     * The service account that the DeployedModel&#39;s container runs as. Specify the email address of the service account. If this service account is not specified, the container runs as a service account that doesn&#39;t have access to the resource project. Users deploying the Model must have the `iam.serviceAccounts.actAs` permission on this service account.
     * 
     */
    @Import(name="serviceAccount")
    private @Nullable Output<String> serviceAccount;

    /**
     * @return (Output)
     * The service account that the DeployedModel&#39;s container runs as. Specify the email address of the service account. If this service account is not specified, the container runs as a service account that doesn&#39;t have access to the resource project. Users deploying the Model must have the `iam.serviceAccounts.actAs` permission on this service account.
     * 
     */
    public Optional<Output<String>> serviceAccount() {
        return Optional.ofNullable(this.serviceAccount);
    }

    /**
     * (Output)
     * The resource name of the shared DeploymentResourcePool to deploy on. Format: projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}
     * 
     */
    @Import(name="sharedResources")
    private @Nullable Output<String> sharedResources;

    /**
     * @return (Output)
     * The resource name of the shared DeploymentResourcePool to deploy on. Format: projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}
     * 
     */
    public Optional<Output<String>> sharedResources() {
        return Optional.ofNullable(this.sharedResources);
    }

    private AiEndpointDeployedModelArgs() {}

    private AiEndpointDeployedModelArgs(AiEndpointDeployedModelArgs $) {
        this.automaticResources = $.automaticResources;
        this.createTime = $.createTime;
        this.dedicatedResources = $.dedicatedResources;
        this.displayName = $.displayName;
        this.enableAccessLogging = $.enableAccessLogging;
        this.enableContainerLogging = $.enableContainerLogging;
        this.id = $.id;
        this.model = $.model;
        this.modelVersionId = $.modelVersionId;
        this.privateEndpoints = $.privateEndpoints;
        this.serviceAccount = $.serviceAccount;
        this.sharedResources = $.sharedResources;
    }

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

    public static final class Builder {
        private AiEndpointDeployedModelArgs $;

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

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

        /**
         * @param automaticResources (Output)
         * A description of resources that to large degree are decided by Vertex AI, and require only a modest additional configuration.
         * Structure is documented below.
         * 
         * @return builder
         * 
         */
        public Builder automaticResources(@Nullable Output<List<AiEndpointDeployedModelAutomaticResourceArgs>> automaticResources) {
            $.automaticResources = automaticResources;
            return this;
        }

        /**
         * @param automaticResources (Output)
         * A description of resources that to large degree are decided by Vertex AI, and require only a modest additional configuration.
         * Structure is documented below.
         * 
         * @return builder
         * 
         */
        public Builder automaticResources(List<AiEndpointDeployedModelAutomaticResourceArgs> automaticResources) {
            return automaticResources(Output.of(automaticResources));
        }

        /**
         * @param automaticResources (Output)
         * A description of resources that to large degree are decided by Vertex AI, and require only a modest additional configuration.
         * Structure is documented below.
         * 
         * @return builder
         * 
         */
        public Builder automaticResources(AiEndpointDeployedModelAutomaticResourceArgs... automaticResources) {
            return automaticResources(List.of(automaticResources));
        }

        /**
         * @param createTime (Output)
         * Output only. Timestamp when the DeployedModel was created.
         * 
         * @return builder
         * 
         */
        public Builder createTime(@Nullable Output<String> createTime) {
            $.createTime = createTime;
            return this;
        }

        /**
         * @param createTime (Output)
         * Output only. Timestamp when the DeployedModel was created.
         * 
         * @return builder
         * 
         */
        public Builder createTime(String createTime) {
            return createTime(Output.of(createTime));
        }

        /**
         * @param dedicatedResources (Output)
         * A description of resources that are dedicated to the DeployedModel, and that need a higher degree of manual configuration.
         * Structure is documented below.
         * 
         * @return builder
         * 
         */
        public Builder dedicatedResources(@Nullable Output<List<AiEndpointDeployedModelDedicatedResourceArgs>> dedicatedResources) {
            $.dedicatedResources = dedicatedResources;
            return this;
        }

        /**
         * @param dedicatedResources (Output)
         * A description of resources that are dedicated to the DeployedModel, and that need a higher degree of manual configuration.
         * Structure is documented below.
         * 
         * @return builder
         * 
         */
        public Builder dedicatedResources(List<AiEndpointDeployedModelDedicatedResourceArgs> dedicatedResources) {
            return dedicatedResources(Output.of(dedicatedResources));
        }

        /**
         * @param dedicatedResources (Output)
         * A description of resources that are dedicated to the DeployedModel, and that need a higher degree of manual configuration.
         * Structure is documented below.
         * 
         * @return builder
         * 
         */
        public Builder dedicatedResources(AiEndpointDeployedModelDedicatedResourceArgs... dedicatedResources) {
            return dedicatedResources(List.of(dedicatedResources));
        }

        /**
         * @param displayName Required. The display name of the Endpoint. The name can be up to 128 characters long and can consist of any UTF-8 characters.
         * 
         * @return builder
         * 
         */
        public Builder displayName(@Nullable Output<String> displayName) {
            $.displayName = displayName;
            return this;
        }

        /**
         * @param displayName Required. The display name of the Endpoint. The name can be up to 128 characters long and can consist of any UTF-8 characters.
         * 
         * @return builder
         * 
         */
        public Builder displayName(String displayName) {
            return displayName(Output.of(displayName));
        }

        /**
         * @param enableAccessLogging (Output)
         * These logs are like standard server access logs, containing information like timestamp and latency for each prediction request. Note that Stackdriver logs may incur a cost, especially if your project receives prediction requests at a high queries per second rate (QPS). Estimate your costs before enabling this option.
         * 
         * @return builder
         * 
         */
        public Builder enableAccessLogging(@Nullable Output<Boolean> enableAccessLogging) {
            $.enableAccessLogging = enableAccessLogging;
            return this;
        }

        /**
         * @param enableAccessLogging (Output)
         * These logs are like standard server access logs, containing information like timestamp and latency for each prediction request. Note that Stackdriver logs may incur a cost, especially if your project receives prediction requests at a high queries per second rate (QPS). Estimate your costs before enabling this option.
         * 
         * @return builder
         * 
         */
        public Builder enableAccessLogging(Boolean enableAccessLogging) {
            return enableAccessLogging(Output.of(enableAccessLogging));
        }

        /**
         * @param enableContainerLogging (Output)
         * If true, the container of the DeployedModel instances will send `stderr` and `stdout` streams to Stackdriver Logging. Only supported for custom-trained Models and AutoML Tabular Models.
         * 
         * @return builder
         * 
         */
        public Builder enableContainerLogging(@Nullable Output<Boolean> enableContainerLogging) {
            $.enableContainerLogging = enableContainerLogging;
            return this;
        }

        /**
         * @param enableContainerLogging (Output)
         * If true, the container of the DeployedModel instances will send `stderr` and `stdout` streams to Stackdriver Logging. Only supported for custom-trained Models and AutoML Tabular Models.
         * 
         * @return builder
         * 
         */
        public Builder enableContainerLogging(Boolean enableContainerLogging) {
            return enableContainerLogging(Output.of(enableContainerLogging));
        }

        /**
         * @param id (Output)
         * The ID of the DeployedModel. If not provided upon deployment, Vertex AI will generate a value for this ID. This value should be 1-10 characters, and valid characters are /[0-9]/.
         * 
         * @return builder
         * 
         */
        public Builder id(@Nullable Output<String> id) {
            $.id = id;
            return this;
        }

        /**
         * @param id (Output)
         * The ID of the DeployedModel. If not provided upon deployment, Vertex AI will generate a value for this ID. This value should be 1-10 characters, and valid characters are /[0-9]/.
         * 
         * @return builder
         * 
         */
        public Builder id(String id) {
            return id(Output.of(id));
        }

        /**
         * @param model (Output)
         * The name of the Model that this is the deployment of. Note that the Model may be in a different location than the DeployedModel&#39;s Endpoint.
         * 
         * @return builder
         * 
         */
        public Builder model(@Nullable Output<String> model) {
            $.model = model;
            return this;
        }

        /**
         * @param model (Output)
         * The name of the Model that this is the deployment of. Note that the Model may be in a different location than the DeployedModel&#39;s Endpoint.
         * 
         * @return builder
         * 
         */
        public Builder model(String model) {
            return model(Output.of(model));
        }

        /**
         * @param modelVersionId (Output)
         * Output only. The version ID of the model that is deployed.
         * 
         * @return builder
         * 
         */
        public Builder modelVersionId(@Nullable Output<String> modelVersionId) {
            $.modelVersionId = modelVersionId;
            return this;
        }

        /**
         * @param modelVersionId (Output)
         * Output only. The version ID of the model that is deployed.
         * 
         * @return builder
         * 
         */
        public Builder modelVersionId(String modelVersionId) {
            return modelVersionId(Output.of(modelVersionId));
        }

        /**
         * @param privateEndpoints (Output)
         * Output only. Provide paths for users to send predict/explain/health requests directly to the deployed model services running on Cloud via private services access. This field is populated if network is configured.
         * Structure is documented below.
         * 
         * @return builder
         * 
         */
        public Builder privateEndpoints(@Nullable Output<List<AiEndpointDeployedModelPrivateEndpointArgs>> privateEndpoints) {
            $.privateEndpoints = privateEndpoints;
            return this;
        }

        /**
         * @param privateEndpoints (Output)
         * Output only. Provide paths for users to send predict/explain/health requests directly to the deployed model services running on Cloud via private services access. This field is populated if network is configured.
         * Structure is documented below.
         * 
         * @return builder
         * 
         */
        public Builder privateEndpoints(List<AiEndpointDeployedModelPrivateEndpointArgs> privateEndpoints) {
            return privateEndpoints(Output.of(privateEndpoints));
        }

        /**
         * @param privateEndpoints (Output)
         * Output only. Provide paths for users to send predict/explain/health requests directly to the deployed model services running on Cloud via private services access. This field is populated if network is configured.
         * Structure is documented below.
         * 
         * @return builder
         * 
         */
        public Builder privateEndpoints(AiEndpointDeployedModelPrivateEndpointArgs... privateEndpoints) {
            return privateEndpoints(List.of(privateEndpoints));
        }

        /**
         * @param serviceAccount (Output)
         * The service account that the DeployedModel&#39;s container runs as. Specify the email address of the service account. If this service account is not specified, the container runs as a service account that doesn&#39;t have access to the resource project. Users deploying the Model must have the `iam.serviceAccounts.actAs` permission on this service account.
         * 
         * @return builder
         * 
         */
        public Builder serviceAccount(@Nullable Output<String> serviceAccount) {
            $.serviceAccount = serviceAccount;
            return this;
        }

        /**
         * @param serviceAccount (Output)
         * The service account that the DeployedModel&#39;s container runs as. Specify the email address of the service account. If this service account is not specified, the container runs as a service account that doesn&#39;t have access to the resource project. Users deploying the Model must have the `iam.serviceAccounts.actAs` permission on this service account.
         * 
         * @return builder
         * 
         */
        public Builder serviceAccount(String serviceAccount) {
            return serviceAccount(Output.of(serviceAccount));
        }

        /**
         * @param sharedResources (Output)
         * The resource name of the shared DeploymentResourcePool to deploy on. Format: projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}
         * 
         * @return builder
         * 
         */
        public Builder sharedResources(@Nullable Output<String> sharedResources) {
            $.sharedResources = sharedResources;
            return this;
        }

        /**
         * @param sharedResources (Output)
         * The resource name of the shared DeploymentResourcePool to deploy on. Format: projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}
         * 
         * @return builder
         * 
         */
        public Builder sharedResources(String sharedResources) {
            return sharedResources(Output.of(sharedResources));
        }

        public AiEndpointDeployedModelArgs build() {
            return $;
        }
    }

}
