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

import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.Objects;

@CustomType
public final class GetProjectServiceAccountResult {
    /**
     * @return The email address of the service account. This value is
     * often used to refer to the service account in order to grant IAM permissions.
     * 
     */
    private String accountEmail;
    /**
     * @return The provider-assigned unique ID for this managed resource.
     * 
     */
    private String id;
    /**
     * @return The Access Approval service account resource name. Format is &#34;projects/{project_id}/serviceAccount&#34;.
     * 
     */
    private String name;
    private String projectId;

    private GetProjectServiceAccountResult() {}
    /**
     * @return The email address of the service account. This value is
     * often used to refer to the service account in order to grant IAM permissions.
     * 
     */
    public String accountEmail() {
        return this.accountEmail;
    }
    /**
     * @return The provider-assigned unique ID for this managed resource.
     * 
     */
    public String id() {
        return this.id;
    }
    /**
     * @return The Access Approval service account resource name. Format is &#34;projects/{project_id}/serviceAccount&#34;.
     * 
     */
    public String name() {
        return this.name;
    }
    public String projectId() {
        return this.projectId;
    }

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

    public static Builder builder(GetProjectServiceAccountResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String accountEmail;
        private String id;
        private String name;
        private String projectId;
        public Builder() {}
        public Builder(GetProjectServiceAccountResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.accountEmail = defaults.accountEmail;
    	      this.id = defaults.id;
    	      this.name = defaults.name;
    	      this.projectId = defaults.projectId;
        }

        @CustomType.Setter
        public Builder accountEmail(String accountEmail) {
            this.accountEmail = Objects.requireNonNull(accountEmail);
            return this;
        }
        @CustomType.Setter
        public Builder id(String id) {
            this.id = Objects.requireNonNull(id);
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            this.name = Objects.requireNonNull(name);
            return this;
        }
        @CustomType.Setter
        public Builder projectId(String projectId) {
            this.projectId = Objects.requireNonNull(projectId);
            return this;
        }
        public GetProjectServiceAccountResult build() {
            final var o = new GetProjectServiceAccountResult();
            o.accountEmail = accountEmail;
            o.id = id;
            o.name = name;
            o.projectId = projectId;
            return o;
        }
    }
}
