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

com.pulumi.azurenative.agfoodplatform.outputs.DataConnectorPropertiesResponse 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.agfoodplatform.outputs;

import com.pulumi.azurenative.agfoodplatform.outputs.ApiKeyAuthCredentialsResponse;
import com.pulumi.azurenative.agfoodplatform.outputs.OAuthClientCredentialsResponse;
import com.pulumi.core.Either;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.util.Objects;

@CustomType
public final class DataConnectorPropertiesResponse {
    /**
     * @return AuthCredentials abstract base class for Auth Purpose.
     * 
     */
    private Either credentials;

    private DataConnectorPropertiesResponse() {}
    /**
     * @return AuthCredentials abstract base class for Auth Purpose.
     * 
     */
    public Either credentials() {
        return this.credentials;
    }

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

    public static Builder builder(DataConnectorPropertiesResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private Either credentials;
        public Builder() {}
        public Builder(DataConnectorPropertiesResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.credentials = defaults.credentials;
        }

        @CustomType.Setter
        public Builder credentials(Either credentials) {
            if (credentials == null) {
              throw new MissingRequiredPropertyException("DataConnectorPropertiesResponse", "credentials");
            }
            this.credentials = credentials;
            return this;
        }
        public DataConnectorPropertiesResponse build() {
            final var _resultValue = new DataConnectorPropertiesResponse();
            _resultValue.credentials = credentials;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy