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

com.pulumi.googlenative.certificatemanager.v1.outputs.TrustStoreResponse 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.certificatemanager.v1.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.googlenative.certificatemanager.v1.outputs.IntermediateCAResponse;
import com.pulumi.googlenative.certificatemanager.v1.outputs.TrustAnchorResponse;
import java.util.List;
import java.util.Objects;

@CustomType
public final class TrustStoreResponse {
    /**
     * @return Set of intermediate CA certificates used for the path building phase of chain validation. The field is currently not supported if TrustConfig is used for the workload certificate feature.
     * 
     */
    private List intermediateCas;
    /**
     * @return List of Trust Anchors to be used while performing validation against a given TrustStore.
     * 
     */
    private List trustAnchors;

    private TrustStoreResponse() {}
    /**
     * @return Set of intermediate CA certificates used for the path building phase of chain validation. The field is currently not supported if TrustConfig is used for the workload certificate feature.
     * 
     */
    public List intermediateCas() {
        return this.intermediateCas;
    }
    /**
     * @return List of Trust Anchors to be used while performing validation against a given TrustStore.
     * 
     */
    public List trustAnchors() {
        return this.trustAnchors;
    }

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

    public static Builder builder(TrustStoreResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private List intermediateCas;
        private List trustAnchors;
        public Builder() {}
        public Builder(TrustStoreResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.intermediateCas = defaults.intermediateCas;
    	      this.trustAnchors = defaults.trustAnchors;
        }

        @CustomType.Setter
        public Builder intermediateCas(List intermediateCas) {
            this.intermediateCas = Objects.requireNonNull(intermediateCas);
            return this;
        }
        public Builder intermediateCas(IntermediateCAResponse... intermediateCas) {
            return intermediateCas(List.of(intermediateCas));
        }
        @CustomType.Setter
        public Builder trustAnchors(List trustAnchors) {
            this.trustAnchors = Objects.requireNonNull(trustAnchors);
            return this;
        }
        public Builder trustAnchors(TrustAnchorResponse... trustAnchors) {
            return trustAnchors(List.of(trustAnchors));
        }
        public TrustStoreResponse build() {
            final var o = new TrustStoreResponse();
            o.intermediateCas = intermediateCas;
            o.trustAnchors = trustAnchors;
            return o;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy