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

com.pulumi.azurenative.machinelearningservices.outputs.ApiKeyAuthWorkspaceConnectionPropertiesResponse Maven / Gradle / Ivy

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

import com.pulumi.azurenative.machinelearningservices.outputs.WorkspaceConnectionApiKeyResponse;
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 ApiKeyAuthWorkspaceConnectionPropertiesResponse {
    /**
     * @return Authentication type of the connection target
     * Expected value is 'ApiKey'.
     * 
     */
    private String authType;
    /**
     * @return Category of the connection
     * 
     */
    private @Nullable String category;
    /**
     * @return Api key object for workspace connection credential.
     * 
     */
    private @Nullable WorkspaceConnectionApiKeyResponse credentials;
    private @Nullable String expiryTime;
    private @Nullable Object metadata;
    private @Nullable String target;

    private ApiKeyAuthWorkspaceConnectionPropertiesResponse() {}
    /**
     * @return Authentication type of the connection target
     * Expected value is 'ApiKey'.
     * 
     */
    public String authType() {
        return this.authType;
    }
    /**
     * @return Category of the connection
     * 
     */
    public Optional category() {
        return Optional.ofNullable(this.category);
    }
    /**
     * @return Api key object for workspace connection credential.
     * 
     */
    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(ApiKeyAuthWorkspaceConnectionPropertiesResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String authType;
        private @Nullable String category;
        private @Nullable WorkspaceConnectionApiKeyResponse credentials;
        private @Nullable String expiryTime;
        private @Nullable Object metadata;
        private @Nullable String target;
        public Builder() {}
        public Builder(ApiKeyAuthWorkspaceConnectionPropertiesResponse 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("ApiKeyAuthWorkspaceConnectionPropertiesResponse", "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 WorkspaceConnectionApiKeyResponse 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 ApiKeyAuthWorkspaceConnectionPropertiesResponse build() {
            final var _resultValue = new ApiKeyAuthWorkspaceConnectionPropertiesResponse();
            _resultValue.authType = authType;
            _resultValue.category = category;
            _resultValue.credentials = credentials;
            _resultValue.expiryTime = expiryTime;
            _resultValue.metadata = metadata;
            _resultValue.target = target;
            return _resultValue;
        }
    }
}