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

com.pulumi.azurenative.synapse.outputs.CustomerManagedKeyDetailsResponse Maven / Gradle / Ivy

The 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.synapse.outputs;

import com.pulumi.azurenative.synapse.outputs.KekIdentityPropertiesResponse;
import com.pulumi.azurenative.synapse.outputs.WorkspaceKeyDetailsResponse;
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 CustomerManagedKeyDetailsResponse {
    /**
     * @return Key encryption key
     * 
     */
    private @Nullable KekIdentityPropertiesResponse kekIdentity;
    /**
     * @return The key object of the workspace
     * 
     */
    private @Nullable WorkspaceKeyDetailsResponse key;
    /**
     * @return The customer managed key status on the workspace
     * 
     */
    private String status;

    private CustomerManagedKeyDetailsResponse() {}
    /**
     * @return Key encryption key
     * 
     */
    public Optional kekIdentity() {
        return Optional.ofNullable(this.kekIdentity);
    }
    /**
     * @return The key object of the workspace
     * 
     */
    public Optional key() {
        return Optional.ofNullable(this.key);
    }
    /**
     * @return The customer managed key status on the workspace
     * 
     */
    public String status() {
        return this.status;
    }

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

    public static Builder builder(CustomerManagedKeyDetailsResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable KekIdentityPropertiesResponse kekIdentity;
        private @Nullable WorkspaceKeyDetailsResponse key;
        private String status;
        public Builder() {}
        public Builder(CustomerManagedKeyDetailsResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.kekIdentity = defaults.kekIdentity;
    	      this.key = defaults.key;
    	      this.status = defaults.status;
        }

        @CustomType.Setter
        public Builder kekIdentity(@Nullable KekIdentityPropertiesResponse kekIdentity) {

            this.kekIdentity = kekIdentity;
            return this;
        }
        @CustomType.Setter
        public Builder key(@Nullable WorkspaceKeyDetailsResponse key) {

            this.key = key;
            return this;
        }
        @CustomType.Setter
        public Builder status(String status) {
            if (status == null) {
              throw new MissingRequiredPropertyException("CustomerManagedKeyDetailsResponse", "status");
            }
            this.status = status;
            return this;
        }
        public CustomerManagedKeyDetailsResponse build() {
            final var _resultValue = new CustomerManagedKeyDetailsResponse();
            _resultValue.kekIdentity = kekIdentity;
            _resultValue.key = key;
            _resultValue.status = status;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy