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

com.pulumi.azurenative.machinelearningservices.outputs.CustomKeysWorkspaceConnectionPropertiesResponse 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.azurenative.machinelearningservices.outputs;

import com.pulumi.azurenative.machinelearningservices.outputs.CustomKeysResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Object;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class CustomKeysWorkspaceConnectionPropertiesResponse {
    /**
     * @return Authentication type of the connection target
     * Expected value is 'CustomKeys'.
     * 
     */
    private String authType;
    /**
     * @return Category of the connection
     * 
     */
    private @Nullable String category;
    /**
     * @return Custom Keys credential object
     * 
     */
    private @Nullable CustomKeysResponse credentials;
    private @Nullable String expiryTime;
    private @Nullable Object metadata;
    private @Nullable String target;

    private CustomKeysWorkspaceConnectionPropertiesResponse() {}
    /**
     * @return Authentication type of the connection target
     * Expected value is 'CustomKeys'.
     * 
     */
    public String authType() {
        return this.authType;
    }
    /**
     * @return Category of the connection
     * 
     */
    public Optional category() {
        return Optional.ofNullable(this.category);
    }
    /**
     * @return Custom Keys credential object
     * 
     */
    public Optional credentials() {
        return Optional.ofNullable(this.credentials);
    }
    public Optional expiryTime() {
        return Optional.ofNullable(this.expiryTime);
    }
    public Optional metadata() {
        return Optional.ofNullable(this.metadata);
    }
    public Optional target() {
        return Optional.ofNullable(this.target);
    }

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

    public static Builder builder(CustomKeysWorkspaceConnectionPropertiesResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String authType;
        private @Nullable String category;
        private @Nullable CustomKeysResponse credentials;
        private @Nullable String expiryTime;
        private @Nullable Object metadata;
        private @Nullable String target;
        public Builder() {}
        public Builder(CustomKeysWorkspaceConnectionPropertiesResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.authType = defaults.authType;
    	      this.category = defaults.category;
    	      this.credentials = defaults.credentials;
    	      this.expiryTime = defaults.expiryTime;
    	      this.metadata = defaults.metadata;
    	      this.target = defaults.target;
        }

        @CustomType.Setter
        public Builder authType(String authType) {
            if (authType == null) {
              throw new MissingRequiredPropertyException("CustomKeysWorkspaceConnectionPropertiesResponse", "authType");
            }
            this.authType = authType;
            return this;
        }
        @CustomType.Setter
        public Builder category(@Nullable String category) {

            this.category = category;
            return this;
        }
        @CustomType.Setter
        public Builder credentials(@Nullable CustomKeysResponse credentials) {

            this.credentials = credentials;
            return this;
        }
        @CustomType.Setter
        public Builder expiryTime(@Nullable String expiryTime) {

            this.expiryTime = expiryTime;
            return this;
        }
        @CustomType.Setter
        public Builder metadata(@Nullable Object metadata) {

            this.metadata = metadata;
            return this;
        }
        @CustomType.Setter
        public Builder target(@Nullable String target) {

            this.target = target;
            return this;
        }
        public CustomKeysWorkspaceConnectionPropertiesResponse build() {
            final var _resultValue = new CustomKeysWorkspaceConnectionPropertiesResponse();
            _resultValue.authType = authType;
            _resultValue.category = category;
            _resultValue.credentials = credentials;
            _resultValue.expiryTime = expiryTime;
            _resultValue.metadata = metadata;
            _resultValue.target = target;
            return _resultValue;
        }
    }
}