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

com.pulumi.azurenative.automation.inputs.FieldDefinitionArgs 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.automation.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Definition of the connection fields.
 * 
 */
public final class FieldDefinitionArgs extends com.pulumi.resources.ResourceArgs {

    public static final FieldDefinitionArgs Empty = new FieldDefinitionArgs();

    /**
     * Gets or sets the isEncrypted flag of the connection field definition.
     * 
     */
    @Import(name="isEncrypted")
    private @Nullable Output isEncrypted;

    /**
     * @return Gets or sets the isEncrypted flag of the connection field definition.
     * 
     */
    public Optional> isEncrypted() {
        return Optional.ofNullable(this.isEncrypted);
    }

    /**
     * Gets or sets the isOptional flag of the connection field definition.
     * 
     */
    @Import(name="isOptional")
    private @Nullable Output isOptional;

    /**
     * @return Gets or sets the isOptional flag of the connection field definition.
     * 
     */
    public Optional> isOptional() {
        return Optional.ofNullable(this.isOptional);
    }

    /**
     * Gets or sets the type of the connection field definition.
     * 
     */
    @Import(name="type", required=true)
    private Output type;

    /**
     * @return Gets or sets the type of the connection field definition.
     * 
     */
    public Output type() {
        return this.type;
    }

    private FieldDefinitionArgs() {}

    private FieldDefinitionArgs(FieldDefinitionArgs $) {
        this.isEncrypted = $.isEncrypted;
        this.isOptional = $.isOptional;
        this.type = $.type;
    }

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

    public static final class Builder {
        private FieldDefinitionArgs $;

        public Builder() {
            $ = new FieldDefinitionArgs();
        }

        public Builder(FieldDefinitionArgs defaults) {
            $ = new FieldDefinitionArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param isEncrypted Gets or sets the isEncrypted flag of the connection field definition.
         * 
         * @return builder
         * 
         */
        public Builder isEncrypted(@Nullable Output isEncrypted) {
            $.isEncrypted = isEncrypted;
            return this;
        }

        /**
         * @param isEncrypted Gets or sets the isEncrypted flag of the connection field definition.
         * 
         * @return builder
         * 
         */
        public Builder isEncrypted(Boolean isEncrypted) {
            return isEncrypted(Output.of(isEncrypted));
        }

        /**
         * @param isOptional Gets or sets the isOptional flag of the connection field definition.
         * 
         * @return builder
         * 
         */
        public Builder isOptional(@Nullable Output isOptional) {
            $.isOptional = isOptional;
            return this;
        }

        /**
         * @param isOptional Gets or sets the isOptional flag of the connection field definition.
         * 
         * @return builder
         * 
         */
        public Builder isOptional(Boolean isOptional) {
            return isOptional(Output.of(isOptional));
        }

        /**
         * @param type Gets or sets the type of the connection field definition.
         * 
         * @return builder
         * 
         */
        public Builder type(Output type) {
            $.type = type;
            return this;
        }

        /**
         * @param type Gets or sets the type of the connection field definition.
         * 
         * @return builder
         * 
         */
        public Builder type(String type) {
            return type(Output.of(type));
        }

        public FieldDefinitionArgs build() {
            if ($.type == null) {
                throw new MissingRequiredPropertyException("FieldDefinitionArgs", "type");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy