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

com.pulumi.azurenative.sql.outputs.GetServerTrustCertificateResult Maven / Gradle / Ivy

There is a newer version: 2.82.0
Show newest version
// *** 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.azurenative.sql.outputs;

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

@CustomType
public final class GetServerTrustCertificateResult {
    /**
     * @return The certificate name
     * 
     */
    private String certificateName;
    /**
     * @return Resource ID.
     * 
     */
    private String id;
    /**
     * @return Resource name.
     * 
     */
    private String name;
    /**
     * @return The certificate public blob
     * 
     */
    private @Nullable String publicBlob;
    /**
     * @return The certificate thumbprint
     * 
     */
    private String thumbprint;
    /**
     * @return Resource type.
     * 
     */
    private String type;

    private GetServerTrustCertificateResult() {}
    /**
     * @return The certificate name
     * 
     */
    public String certificateName() {
        return this.certificateName;
    }
    /**
     * @return Resource ID.
     * 
     */
    public String id() {
        return this.id;
    }
    /**
     * @return Resource name.
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return The certificate public blob
     * 
     */
    public Optional publicBlob() {
        return Optional.ofNullable(this.publicBlob);
    }
    /**
     * @return The certificate thumbprint
     * 
     */
    public String thumbprint() {
        return this.thumbprint;
    }
    /**
     * @return Resource type.
     * 
     */
    public String type() {
        return this.type;
    }

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

    public static Builder builder(GetServerTrustCertificateResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String certificateName;
        private String id;
        private String name;
        private @Nullable String publicBlob;
        private String thumbprint;
        private String type;
        public Builder() {}
        public Builder(GetServerTrustCertificateResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.certificateName = defaults.certificateName;
    	      this.id = defaults.id;
    	      this.name = defaults.name;
    	      this.publicBlob = defaults.publicBlob;
    	      this.thumbprint = defaults.thumbprint;
    	      this.type = defaults.type;
        }

        @CustomType.Setter
        public Builder certificateName(String certificateName) {
            if (certificateName == null) {
              throw new MissingRequiredPropertyException("GetServerTrustCertificateResult", "certificateName");
            }
            this.certificateName = certificateName;
            return this;
        }
        @CustomType.Setter
        public Builder id(String id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("GetServerTrustCertificateResult", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("GetServerTrustCertificateResult", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder publicBlob(@Nullable String publicBlob) {

            this.publicBlob = publicBlob;
            return this;
        }
        @CustomType.Setter
        public Builder thumbprint(String thumbprint) {
            if (thumbprint == null) {
              throw new MissingRequiredPropertyException("GetServerTrustCertificateResult", "thumbprint");
            }
            this.thumbprint = thumbprint;
            return this;
        }
        @CustomType.Setter
        public Builder type(String type) {
            if (type == null) {
              throw new MissingRequiredPropertyException("GetServerTrustCertificateResult", "type");
            }
            this.type = type;
            return this;
        }
        public GetServerTrustCertificateResult build() {
            final var _resultValue = new GetServerTrustCertificateResult();
            _resultValue.certificateName = certificateName;
            _resultValue.id = id;
            _resultValue.name = name;
            _resultValue.publicBlob = publicBlob;
            _resultValue.thumbprint = thumbprint;
            _resultValue.type = type;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy