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

import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class PreventionJobTriggerInspectJobStorageConfigDatastoreOptionsPartitionId {
    /**
     * @return If not empty, the ID of the namespace to which the entities belong.
     * 
     */
    private @Nullable String namespaceId;
    /**
     * @return The ID of the project to which the entities belong.
     * 
     */
    private String projectId;

    private PreventionJobTriggerInspectJobStorageConfigDatastoreOptionsPartitionId() {}
    /**
     * @return If not empty, the ID of the namespace to which the entities belong.
     * 
     */
    public Optional<String> namespaceId() {
        return Optional.ofNullable(this.namespaceId);
    }
    /**
     * @return The ID of the project to which the entities belong.
     * 
     */
    public String projectId() {
        return this.projectId;
    }

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

    public static Builder builder(PreventionJobTriggerInspectJobStorageConfigDatastoreOptionsPartitionId defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String namespaceId;
        private String projectId;
        public Builder() {}
        public Builder(PreventionJobTriggerInspectJobStorageConfigDatastoreOptionsPartitionId defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.namespaceId = defaults.namespaceId;
    	      this.projectId = defaults.projectId;
        }

        @CustomType.Setter
        public Builder namespaceId(@Nullable String namespaceId) {
            this.namespaceId = namespaceId;
            return this;
        }
        @CustomType.Setter
        public Builder projectId(String projectId) {
            this.projectId = Objects.requireNonNull(projectId);
            return this;
        }
        public PreventionJobTriggerInspectJobStorageConfigDatastoreOptionsPartitionId build() {
            final var o = new PreventionJobTriggerInspectJobStorageConfigDatastoreOptionsPartitionId();
            o.namespaceId = namespaceId;
            o.projectId = projectId;
            return o;
        }
    }
}
