// *** 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.container.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 AttachedClusterWorkloadIdentityConfig {
    /**
     * @return The ID of the OIDC Identity Provider (IdP) associated to
     * the Workload Identity Pool.
     * 
     */
    private @Nullable String identityProvider;
    /**
     * @return The OIDC issuer URL for this cluster.
     * 
     */
    private @Nullable String issuerUri;
    /**
     * @return The Workload Identity Pool associated to the cluster.
     * 
     */
    private @Nullable String workloadPool;

    private AttachedClusterWorkloadIdentityConfig() {}
    /**
     * @return The ID of the OIDC Identity Provider (IdP) associated to
     * the Workload Identity Pool.
     * 
     */
    public Optional<String> identityProvider() {
        return Optional.ofNullable(this.identityProvider);
    }
    /**
     * @return The OIDC issuer URL for this cluster.
     * 
     */
    public Optional<String> issuerUri() {
        return Optional.ofNullable(this.issuerUri);
    }
    /**
     * @return The Workload Identity Pool associated to the cluster.
     * 
     */
    public Optional<String> workloadPool() {
        return Optional.ofNullable(this.workloadPool);
    }

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

    public static Builder builder(AttachedClusterWorkloadIdentityConfig defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String identityProvider;
        private @Nullable String issuerUri;
        private @Nullable String workloadPool;
        public Builder() {}
        public Builder(AttachedClusterWorkloadIdentityConfig defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.identityProvider = defaults.identityProvider;
    	      this.issuerUri = defaults.issuerUri;
    	      this.workloadPool = defaults.workloadPool;
        }

        @CustomType.Setter
        public Builder identityProvider(@Nullable String identityProvider) {
            this.identityProvider = identityProvider;
            return this;
        }
        @CustomType.Setter
        public Builder issuerUri(@Nullable String issuerUri) {
            this.issuerUri = issuerUri;
            return this;
        }
        @CustomType.Setter
        public Builder workloadPool(@Nullable String workloadPool) {
            this.workloadPool = workloadPool;
            return this;
        }
        public AttachedClusterWorkloadIdentityConfig build() {
            final var o = new AttachedClusterWorkloadIdentityConfig();
            o.identityProvider = identityProvider;
            o.issuerUri = issuerUri;
            o.workloadPool = workloadPool;
            return o;
        }
    }
}
