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

com.pulumi.aws.mq.outputs.GetBrokerEncryptionOption 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.aws.mq.outputs;

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

@CustomType
public final class GetBrokerEncryptionOption {
    private String kmsKeyId;
    private Boolean useAwsOwnedKey;

    private GetBrokerEncryptionOption() {}
    public String kmsKeyId() {
        return this.kmsKeyId;
    }
    public Boolean useAwsOwnedKey() {
        return this.useAwsOwnedKey;
    }

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

    public static Builder builder(GetBrokerEncryptionOption defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String kmsKeyId;
        private Boolean useAwsOwnedKey;
        public Builder() {}
        public Builder(GetBrokerEncryptionOption defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.kmsKeyId = defaults.kmsKeyId;
    	      this.useAwsOwnedKey = defaults.useAwsOwnedKey;
        }

        @CustomType.Setter
        public Builder kmsKeyId(String kmsKeyId) {
            if (kmsKeyId == null) {
              throw new MissingRequiredPropertyException("GetBrokerEncryptionOption", "kmsKeyId");
            }
            this.kmsKeyId = kmsKeyId;
            return this;
        }
        @CustomType.Setter
        public Builder useAwsOwnedKey(Boolean useAwsOwnedKey) {
            if (useAwsOwnedKey == null) {
              throw new MissingRequiredPropertyException("GetBrokerEncryptionOption", "useAwsOwnedKey");
            }
            this.useAwsOwnedKey = useAwsOwnedKey;
            return this;
        }
        public GetBrokerEncryptionOption build() {
            final var _resultValue = new GetBrokerEncryptionOption();
            _resultValue.kmsKeyId = kmsKeyId;
            _resultValue.useAwsOwnedKey = useAwsOwnedKey;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy