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

com.pulumi.azurenative.quantum.outputs.ListWorkspaceKeysResult Maven / Gradle / Ivy

There is a newer version: 2.78.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.quantum.outputs;

import com.pulumi.azurenative.quantum.outputs.ApiKeyResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class ListWorkspaceKeysResult {
    /**
     * @return Indicator of enablement of the Quantum workspace Api keys.
     * 
     */
    private @Nullable Boolean apiKeyEnabled;
    /**
     * @return The connection string of the primary api key.
     * 
     */
    private String primaryConnectionString;
    /**
     * @return The quantum workspace primary api key.
     * 
     */
    private @Nullable ApiKeyResponse primaryKey;
    /**
     * @return The connection string of the secondary api key.
     * 
     */
    private String secondaryConnectionString;
    /**
     * @return The quantum workspace secondary api key.
     * 
     */
    private @Nullable ApiKeyResponse secondaryKey;

    private ListWorkspaceKeysResult() {}
    /**
     * @return Indicator of enablement of the Quantum workspace Api keys.
     * 
     */
    public Optional apiKeyEnabled() {
        return Optional.ofNullable(this.apiKeyEnabled);
    }
    /**
     * @return The connection string of the primary api key.
     * 
     */
    public String primaryConnectionString() {
        return this.primaryConnectionString;
    }
    /**
     * @return The quantum workspace primary api key.
     * 
     */
    public Optional primaryKey() {
        return Optional.ofNullable(this.primaryKey);
    }
    /**
     * @return The connection string of the secondary api key.
     * 
     */
    public String secondaryConnectionString() {
        return this.secondaryConnectionString;
    }
    /**
     * @return The quantum workspace secondary api key.
     * 
     */
    public Optional secondaryKey() {
        return Optional.ofNullable(this.secondaryKey);
    }

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

    public static Builder builder(ListWorkspaceKeysResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable Boolean apiKeyEnabled;
        private String primaryConnectionString;
        private @Nullable ApiKeyResponse primaryKey;
        private String secondaryConnectionString;
        private @Nullable ApiKeyResponse secondaryKey;
        public Builder() {}
        public Builder(ListWorkspaceKeysResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.apiKeyEnabled = defaults.apiKeyEnabled;
    	      this.primaryConnectionString = defaults.primaryConnectionString;
    	      this.primaryKey = defaults.primaryKey;
    	      this.secondaryConnectionString = defaults.secondaryConnectionString;
    	      this.secondaryKey = defaults.secondaryKey;
        }

        @CustomType.Setter
        public Builder apiKeyEnabled(@Nullable Boolean apiKeyEnabled) {

            this.apiKeyEnabled = apiKeyEnabled;
            return this;
        }
        @CustomType.Setter
        public Builder primaryConnectionString(String primaryConnectionString) {
            if (primaryConnectionString == null) {
              throw new MissingRequiredPropertyException("ListWorkspaceKeysResult", "primaryConnectionString");
            }
            this.primaryConnectionString = primaryConnectionString;
            return this;
        }
        @CustomType.Setter
        public Builder primaryKey(@Nullable ApiKeyResponse primaryKey) {

            this.primaryKey = primaryKey;
            return this;
        }
        @CustomType.Setter
        public Builder secondaryConnectionString(String secondaryConnectionString) {
            if (secondaryConnectionString == null) {
              throw new MissingRequiredPropertyException("ListWorkspaceKeysResult", "secondaryConnectionString");
            }
            this.secondaryConnectionString = secondaryConnectionString;
            return this;
        }
        @CustomType.Setter
        public Builder secondaryKey(@Nullable ApiKeyResponse secondaryKey) {

            this.secondaryKey = secondaryKey;
            return this;
        }
        public ListWorkspaceKeysResult build() {
            final var _resultValue = new ListWorkspaceKeysResult();
            _resultValue.apiKeyEnabled = apiKeyEnabled;
            _resultValue.primaryConnectionString = primaryConnectionString;
            _resultValue.primaryKey = primaryKey;
            _resultValue.secondaryConnectionString = secondaryConnectionString;
            _resultValue.secondaryKey = secondaryKey;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy