All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.googlenative.appengine.v1beta.outputs.IdentityAwareProxyResponse Maven / Gradle / Ivy

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

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

@CustomType
public final class IdentityAwareProxyResponse {
    /**
     * @return Whether the serving infrastructure will authenticate and authorize all incoming requests.If true, the oauth2_client_id and oauth2_client_secret fields must be non-empty.
     * 
     */
    private Boolean enabled;
    /**
     * @return OAuth2 client ID to use for the authentication flow.
     * 
     */
    private String oauth2ClientId;
    /**
     * @return OAuth2 client secret to use for the authentication flow.For security reasons, this value cannot be retrieved via the API. Instead, the SHA-256 hash of the value is returned in the oauth2_client_secret_sha256 field.@InputOnly
     * 
     */
    private String oauth2ClientSecret;
    /**
     * @return Hex-encoded SHA-256 hash of the client secret.
     * 
     */
    private String oauth2ClientSecretSha256;

    private IdentityAwareProxyResponse() {}
    /**
     * @return Whether the serving infrastructure will authenticate and authorize all incoming requests.If true, the oauth2_client_id and oauth2_client_secret fields must be non-empty.
     * 
     */
    public Boolean enabled() {
        return this.enabled;
    }
    /**
     * @return OAuth2 client ID to use for the authentication flow.
     * 
     */
    public String oauth2ClientId() {
        return this.oauth2ClientId;
    }
    /**
     * @return OAuth2 client secret to use for the authentication flow.For security reasons, this value cannot be retrieved via the API. Instead, the SHA-256 hash of the value is returned in the oauth2_client_secret_sha256 field.@InputOnly
     * 
     */
    public String oauth2ClientSecret() {
        return this.oauth2ClientSecret;
    }
    /**
     * @return Hex-encoded SHA-256 hash of the client secret.
     * 
     */
    public String oauth2ClientSecretSha256() {
        return this.oauth2ClientSecretSha256;
    }

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

    public static Builder builder(IdentityAwareProxyResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private Boolean enabled;
        private String oauth2ClientId;
        private String oauth2ClientSecret;
        private String oauth2ClientSecretSha256;
        public Builder() {}
        public Builder(IdentityAwareProxyResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.enabled = defaults.enabled;
    	      this.oauth2ClientId = defaults.oauth2ClientId;
    	      this.oauth2ClientSecret = defaults.oauth2ClientSecret;
    	      this.oauth2ClientSecretSha256 = defaults.oauth2ClientSecretSha256;
        }

        @CustomType.Setter
        public Builder enabled(Boolean enabled) {
            this.enabled = Objects.requireNonNull(enabled);
            return this;
        }
        @CustomType.Setter
        public Builder oauth2ClientId(String oauth2ClientId) {
            this.oauth2ClientId = Objects.requireNonNull(oauth2ClientId);
            return this;
        }
        @CustomType.Setter
        public Builder oauth2ClientSecret(String oauth2ClientSecret) {
            this.oauth2ClientSecret = Objects.requireNonNull(oauth2ClientSecret);
            return this;
        }
        @CustomType.Setter
        public Builder oauth2ClientSecretSha256(String oauth2ClientSecretSha256) {
            this.oauth2ClientSecretSha256 = Objects.requireNonNull(oauth2ClientSecretSha256);
            return this;
        }
        public IdentityAwareProxyResponse build() {
            final var o = new IdentityAwareProxyResponse();
            o.enabled = enabled;
            o.oauth2ClientId = oauth2ClientId;
            o.oauth2ClientSecret = oauth2ClientSecret;
            o.oauth2ClientSecretSha256 = oauth2ClientSecretSha256;
            return o;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy