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

com.pulumi.azurenative.streamanalytics.outputs.AggregateFunctionPropertiesResponse Maven / Gradle / Ivy

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

import com.pulumi.azurenative.streamanalytics.outputs.AzureMachineLearningWebServiceFunctionBindingResponse;
import com.pulumi.azurenative.streamanalytics.outputs.FunctionInputResponse;
import com.pulumi.azurenative.streamanalytics.outputs.FunctionOutputResponse;
import com.pulumi.azurenative.streamanalytics.outputs.JavaScriptFunctionBindingResponse;
import com.pulumi.core.Either;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class AggregateFunctionPropertiesResponse {
    /**
     * @return The physical binding of the function. For example, in the Azure Machine Learning web service’s case, this describes the endpoint.
     * 
     */
    private @Nullable Either binding;
    /**
     * @return The current entity tag for the function. This is an opaque string. You can use it to detect whether the resource has changed between requests. You can also use it in the If-Match or If-None-Match headers for write operations for optimistic concurrency.
     * 
     */
    private String etag;
    private @Nullable List inputs;
    /**
     * @return Describes the output of a function.
     * 
     */
    private @Nullable FunctionOutputResponse output;
    /**
     * @return Indicates the type of function.
     * Expected value is 'Aggregate'.
     * 
     */
    private String type;

    private AggregateFunctionPropertiesResponse() {}
    /**
     * @return The physical binding of the function. For example, in the Azure Machine Learning web service’s case, this describes the endpoint.
     * 
     */
    public Optional> binding() {
        return Optional.ofNullable(this.binding);
    }
    /**
     * @return The current entity tag for the function. This is an opaque string. You can use it to detect whether the resource has changed between requests. You can also use it in the If-Match or If-None-Match headers for write operations for optimistic concurrency.
     * 
     */
    public String etag() {
        return this.etag;
    }
    public List inputs() {
        return this.inputs == null ? List.of() : this.inputs;
    }
    /**
     * @return Describes the output of a function.
     * 
     */
    public Optional output() {
        return Optional.ofNullable(this.output);
    }
    /**
     * @return Indicates the type of function.
     * Expected value is 'Aggregate'.
     * 
     */
    public String type() {
        return this.type;
    }

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

    public static Builder builder(AggregateFunctionPropertiesResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable Either binding;
        private String etag;
        private @Nullable List inputs;
        private @Nullable FunctionOutputResponse output;
        private String type;
        public Builder() {}
        public Builder(AggregateFunctionPropertiesResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.binding = defaults.binding;
    	      this.etag = defaults.etag;
    	      this.inputs = defaults.inputs;
    	      this.output = defaults.output;
    	      this.type = defaults.type;
        }

        @CustomType.Setter
        public Builder binding(@Nullable Either binding) {

            this.binding = binding;
            return this;
        }
        @CustomType.Setter
        public Builder etag(String etag) {
            if (etag == null) {
              throw new MissingRequiredPropertyException("AggregateFunctionPropertiesResponse", "etag");
            }
            this.etag = etag;
            return this;
        }
        @CustomType.Setter
        public Builder inputs(@Nullable List inputs) {

            this.inputs = inputs;
            return this;
        }
        public Builder inputs(FunctionInputResponse... inputs) {
            return inputs(List.of(inputs));
        }
        @CustomType.Setter
        public Builder output(@Nullable FunctionOutputResponse output) {

            this.output = output;
            return this;
        }
        @CustomType.Setter
        public Builder type(String type) {
            if (type == null) {
              throw new MissingRequiredPropertyException("AggregateFunctionPropertiesResponse", "type");
            }
            this.type = type;
            return this;
        }
        public AggregateFunctionPropertiesResponse build() {
            final var _resultValue = new AggregateFunctionPropertiesResponse();
            _resultValue.binding = binding;
            _resultValue.etag = etag;
            _resultValue.inputs = inputs;
            _resultValue.output = output;
            _resultValue.type = type;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy