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

com.pulumi.googlenative.dataproc.v1.outputs.ParameterValidationResponse 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.googlenative.dataproc.v1.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.googlenative.dataproc.v1.outputs.RegexValidationResponse;
import com.pulumi.googlenative.dataproc.v1.outputs.ValueValidationResponse;
import java.util.Objects;

@CustomType
public final class ParameterValidationResponse {
    /**
     * @return Validation based on regular expressions.
     * 
     */
    private RegexValidationResponse regex;
    /**
     * @return Validation based on a list of allowed values.
     * 
     */
    private ValueValidationResponse values;

    private ParameterValidationResponse() {}
    /**
     * @return Validation based on regular expressions.
     * 
     */
    public RegexValidationResponse regex() {
        return this.regex;
    }
    /**
     * @return Validation based on a list of allowed values.
     * 
     */
    public ValueValidationResponse values() {
        return this.values;
    }

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

    public static Builder builder(ParameterValidationResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private RegexValidationResponse regex;
        private ValueValidationResponse values;
        public Builder() {}
        public Builder(ParameterValidationResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.regex = defaults.regex;
    	      this.values = defaults.values;
        }

        @CustomType.Setter
        public Builder regex(RegexValidationResponse regex) {
            this.regex = Objects.requireNonNull(regex);
            return this;
        }
        @CustomType.Setter
        public Builder values(ValueValidationResponse values) {
            this.values = Objects.requireNonNull(values);
            return this;
        }
        public ParameterValidationResponse build() {
            final var o = new ParameterValidationResponse();
            o.regex = regex;
            o.values = values;
            return o;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy