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

import com.pulumi.core.annotations.CustomType;
import com.pulumi.gcp.vertex.outputs.AiEndpointDeployedModelAutomaticResource;
import com.pulumi.gcp.vertex.outputs.AiEndpointDeployedModelDedicatedResource;
import com.pulumi.gcp.vertex.outputs.AiEndpointDeployedModelPrivateEndpoint;
import java.lang.Boolean;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class AiEndpointDeployedModel {
    /**
     * @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.
     * 
     */
    private @Nullable List<AiEndpointDeployedModelAutomaticResource> automaticResources;
    /**
     * @return (Output)
     * Output only. Timestamp when the DeployedModel was created.
     * 
     */
    private @Nullable String createTime;
    /**
     * @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.
     * 
     */
    private @Nullable List<AiEndpointDeployedModelDedicatedResource> dedicatedResources;
    /**
     * @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.
     * 
     */
    private @Nullable String displayName;
    /**
     * @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.
     * 
     */
    private @Nullable Boolean enableAccessLogging;
    /**
     * @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.
     * 
     */
    private @Nullable Boolean enableContainerLogging;
    /**
     * @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]/.
     * 
     */
    private @Nullable String id;
    /**
     * @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.
     * 
     */
    private @Nullable String model;
    /**
     * @return (Output)
     * Output only. The version ID of the model that is deployed.
     * 
     */
    private @Nullable String modelVersionId;
    /**
     * @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.
     * 
     */
    private @Nullable List<AiEndpointDeployedModelPrivateEndpoint> privateEndpoints;
    /**
     * @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.
     * 
     */
    private @Nullable String serviceAccount;
    /**
     * @return (Output)
     * The resource name of the shared DeploymentResourcePool to deploy on. Format: projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}
     * 
     */
    private @Nullable String sharedResources;

    private AiEndpointDeployedModel() {}
    /**
     * @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 List<AiEndpointDeployedModelAutomaticResource> automaticResources() {
        return this.automaticResources == null ? List.of() : this.automaticResources;
    }
    /**
     * @return (Output)
     * Output only. Timestamp when the DeployedModel was created.
     * 
     */
    public Optional<String> createTime() {
        return Optional.ofNullable(this.createTime);
    }
    /**
     * @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 List<AiEndpointDeployedModelDedicatedResource> dedicatedResources() {
        return this.dedicatedResources == null ? List.of() : this.dedicatedResources;
    }
    /**
     * @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<String> displayName() {
        return Optional.ofNullable(this.displayName);
    }
    /**
     * @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<Boolean> enableAccessLogging() {
        return Optional.ofNullable(this.enableAccessLogging);
    }
    /**
     * @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<Boolean> enableContainerLogging() {
        return Optional.ofNullable(this.enableContainerLogging);
    }
    /**
     * @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<String> id() {
        return Optional.ofNullable(this.id);
    }
    /**
     * @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<String> model() {
        return Optional.ofNullable(this.model);
    }
    /**
     * @return (Output)
     * Output only. The version ID of the model that is deployed.
     * 
     */
    public Optional<String> modelVersionId() {
        return Optional.ofNullable(this.modelVersionId);
    }
    /**
     * @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 List<AiEndpointDeployedModelPrivateEndpoint> privateEndpoints() {
        return this.privateEndpoints == null ? List.of() : this.privateEndpoints;
    }
    /**
     * @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<String> serviceAccount() {
        return Optional.ofNullable(this.serviceAccount);
    }
    /**
     * @return (Output)
     * The resource name of the shared DeploymentResourcePool to deploy on. Format: projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}
     * 
     */
    public Optional<String> sharedResources() {
        return Optional.ofNullable(this.sharedResources);
    }

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

    public static Builder builder(AiEndpointDeployedModel defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable List<AiEndpointDeployedModelAutomaticResource> automaticResources;
        private @Nullable String createTime;
        private @Nullable List<AiEndpointDeployedModelDedicatedResource> dedicatedResources;
        private @Nullable String displayName;
        private @Nullable Boolean enableAccessLogging;
        private @Nullable Boolean enableContainerLogging;
        private @Nullable String id;
        private @Nullable String model;
        private @Nullable String modelVersionId;
        private @Nullable List<AiEndpointDeployedModelPrivateEndpoint> privateEndpoints;
        private @Nullable String serviceAccount;
        private @Nullable String sharedResources;
        public Builder() {}
        public Builder(AiEndpointDeployedModel defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.automaticResources = defaults.automaticResources;
    	      this.createTime = defaults.createTime;
    	      this.dedicatedResources = defaults.dedicatedResources;
    	      this.displayName = defaults.displayName;
    	      this.enableAccessLogging = defaults.enableAccessLogging;
    	      this.enableContainerLogging = defaults.enableContainerLogging;
    	      this.id = defaults.id;
    	      this.model = defaults.model;
    	      this.modelVersionId = defaults.modelVersionId;
    	      this.privateEndpoints = defaults.privateEndpoints;
    	      this.serviceAccount = defaults.serviceAccount;
    	      this.sharedResources = defaults.sharedResources;
        }

        @CustomType.Setter
        public Builder automaticResources(@Nullable List<AiEndpointDeployedModelAutomaticResource> automaticResources) {
            this.automaticResources = automaticResources;
            return this;
        }
        public Builder automaticResources(AiEndpointDeployedModelAutomaticResource... automaticResources) {
            return automaticResources(List.of(automaticResources));
        }
        @CustomType.Setter
        public Builder createTime(@Nullable String createTime) {
            this.createTime = createTime;
            return this;
        }
        @CustomType.Setter
        public Builder dedicatedResources(@Nullable List<AiEndpointDeployedModelDedicatedResource> dedicatedResources) {
            this.dedicatedResources = dedicatedResources;
            return this;
        }
        public Builder dedicatedResources(AiEndpointDeployedModelDedicatedResource... dedicatedResources) {
            return dedicatedResources(List.of(dedicatedResources));
        }
        @CustomType.Setter
        public Builder displayName(@Nullable String displayName) {
            this.displayName = displayName;
            return this;
        }
        @CustomType.Setter
        public Builder enableAccessLogging(@Nullable Boolean enableAccessLogging) {
            this.enableAccessLogging = enableAccessLogging;
            return this;
        }
        @CustomType.Setter
        public Builder enableContainerLogging(@Nullable Boolean enableContainerLogging) {
            this.enableContainerLogging = enableContainerLogging;
            return this;
        }
        @CustomType.Setter
        public Builder id(@Nullable String id) {
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder model(@Nullable String model) {
            this.model = model;
            return this;
        }
        @CustomType.Setter
        public Builder modelVersionId(@Nullable String modelVersionId) {
            this.modelVersionId = modelVersionId;
            return this;
        }
        @CustomType.Setter
        public Builder privateEndpoints(@Nullable List<AiEndpointDeployedModelPrivateEndpoint> privateEndpoints) {
            this.privateEndpoints = privateEndpoints;
            return this;
        }
        public Builder privateEndpoints(AiEndpointDeployedModelPrivateEndpoint... privateEndpoints) {
            return privateEndpoints(List.of(privateEndpoints));
        }
        @CustomType.Setter
        public Builder serviceAccount(@Nullable String serviceAccount) {
            this.serviceAccount = serviceAccount;
            return this;
        }
        @CustomType.Setter
        public Builder sharedResources(@Nullable String sharedResources) {
            this.sharedResources = sharedResources;
            return this;
        }
        public AiEndpointDeployedModel build() {
            final var o = new AiEndpointDeployedModel();
            o.automaticResources = automaticResources;
            o.createTime = createTime;
            o.dedicatedResources = dedicatedResources;
            o.displayName = displayName;
            o.enableAccessLogging = enableAccessLogging;
            o.enableContainerLogging = enableContainerLogging;
            o.id = id;
            o.model = model;
            o.modelVersionId = modelVersionId;
            o.privateEndpoints = privateEndpoints;
            o.serviceAccount = serviceAccount;
            o.sharedResources = sharedResources;
            return o;
        }
    }
}
