// *** 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.kms.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 GetKMSSecretAsymmetricResult {
    private String ciphertext;
    /**
     * @return Contains the crc32 checksum of the provided ciphertext.
     * 
     */
    private @Nullable String crc32;
    private String cryptoKeyVersion;
    /**
     * @return The provider-assigned unique ID for this managed resource.
     * 
     */
    private String id;
    /**
     * @return Contains the result of decrypting the provided ciphertext.
     * 
     */
    private String plaintext;

    private GetKMSSecretAsymmetricResult() {}
    public String ciphertext() {
        return this.ciphertext;
    }
    /**
     * @return Contains the crc32 checksum of the provided ciphertext.
     * 
     */
    public Optional<String> crc32() {
        return Optional.ofNullable(this.crc32);
    }
    public String cryptoKeyVersion() {
        return this.cryptoKeyVersion;
    }
    /**
     * @return The provider-assigned unique ID for this managed resource.
     * 
     */
    public String id() {
        return this.id;
    }
    /**
     * @return Contains the result of decrypting the provided ciphertext.
     * 
     */
    public String plaintext() {
        return this.plaintext;
    }

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

    public static Builder builder(GetKMSSecretAsymmetricResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String ciphertext;
        private @Nullable String crc32;
        private String cryptoKeyVersion;
        private String id;
        private String plaintext;
        public Builder() {}
        public Builder(GetKMSSecretAsymmetricResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.ciphertext = defaults.ciphertext;
    	      this.crc32 = defaults.crc32;
    	      this.cryptoKeyVersion = defaults.cryptoKeyVersion;
    	      this.id = defaults.id;
    	      this.plaintext = defaults.plaintext;
        }

        @CustomType.Setter
        public Builder ciphertext(String ciphertext) {
            this.ciphertext = Objects.requireNonNull(ciphertext);
            return this;
        }
        @CustomType.Setter
        public Builder crc32(@Nullable String crc32) {
            this.crc32 = crc32;
            return this;
        }
        @CustomType.Setter
        public Builder cryptoKeyVersion(String cryptoKeyVersion) {
            this.cryptoKeyVersion = Objects.requireNonNull(cryptoKeyVersion);
            return this;
        }
        @CustomType.Setter
        public Builder id(String id) {
            this.id = Objects.requireNonNull(id);
            return this;
        }
        @CustomType.Setter
        public Builder plaintext(String plaintext) {
            this.plaintext = Objects.requireNonNull(plaintext);
            return this;
        }
        public GetKMSSecretAsymmetricResult build() {
            final var o = new GetKMSSecretAsymmetricResult();
            o.ciphertext = ciphertext;
            o.crc32 = crc32;
            o.cryptoKeyVersion = cryptoKeyVersion;
            o.id = id;
            o.plaintext = plaintext;
            return o;
        }
    }
}
