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

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

@CustomType
public final class GetAccountJwtResult {
    private @Nullable List<String> delegates;
    private @Nullable Integer expiresIn;
    /**
     * @return The provider-assigned unique ID for this managed resource.
     * 
     */
    private String id;
    /**
     * @return The signed JWT containing the JWT Claims Set from the `payload`.
     * 
     */
    private String jwt;
    private String payload;
    private String targetServiceAccount;

    private GetAccountJwtResult() {}
    public List<String> delegates() {
        return this.delegates == null ? List.of() : this.delegates;
    }
    public Optional<Integer> expiresIn() {
        return Optional.ofNullable(this.expiresIn);
    }
    /**
     * @return The provider-assigned unique ID for this managed resource.
     * 
     */
    public String id() {
        return this.id;
    }
    /**
     * @return The signed JWT containing the JWT Claims Set from the `payload`.
     * 
     */
    public String jwt() {
        return this.jwt;
    }
    public String payload() {
        return this.payload;
    }
    public String targetServiceAccount() {
        return this.targetServiceAccount;
    }

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

    public static Builder builder(GetAccountJwtResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable List<String> delegates;
        private @Nullable Integer expiresIn;
        private String id;
        private String jwt;
        private String payload;
        private String targetServiceAccount;
        public Builder() {}
        public Builder(GetAccountJwtResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.delegates = defaults.delegates;
    	      this.expiresIn = defaults.expiresIn;
    	      this.id = defaults.id;
    	      this.jwt = defaults.jwt;
    	      this.payload = defaults.payload;
    	      this.targetServiceAccount = defaults.targetServiceAccount;
        }

        @CustomType.Setter
        public Builder delegates(@Nullable List<String> delegates) {
            this.delegates = delegates;
            return this;
        }
        public Builder delegates(String... delegates) {
            return delegates(List.of(delegates));
        }
        @CustomType.Setter
        public Builder expiresIn(@Nullable Integer expiresIn) {
            this.expiresIn = expiresIn;
            return this;
        }
        @CustomType.Setter
        public Builder id(String id) {
            this.id = Objects.requireNonNull(id);
            return this;
        }
        @CustomType.Setter
        public Builder jwt(String jwt) {
            this.jwt = Objects.requireNonNull(jwt);
            return this;
        }
        @CustomType.Setter
        public Builder payload(String payload) {
            this.payload = Objects.requireNonNull(payload);
            return this;
        }
        @CustomType.Setter
        public Builder targetServiceAccount(String targetServiceAccount) {
            this.targetServiceAccount = Objects.requireNonNull(targetServiceAccount);
            return this;
        }
        public GetAccountJwtResult build() {
            final var o = new GetAccountJwtResult();
            o.delegates = delegates;
            o.expiresIn = expiresIn;
            o.id = id;
            o.jwt = jwt;
            o.payload = payload;
            o.targetServiceAccount = targetServiceAccount;
            return o;
        }
    }
}
