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

com.pulumi.azurenative.automation.outputs.FieldDefinitionResponse Maven / Gradle / Ivy

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

import com.pulumi.core.annotations.CustomType;
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;

@CustomType
public final class FieldDefinitionResponse {
    /**
     * @return Gets or sets the isEncrypted flag of the connection field definition.
     * 
     */
    private @Nullable Boolean isEncrypted;
    /**
     * @return Gets or sets the isOptional flag of the connection field definition.
     * 
     */
    private @Nullable Boolean isOptional;
    /**
     * @return Gets or sets the type of the connection field definition.
     * 
     */
    private String type;

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

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

    public static Builder builder(FieldDefinitionResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable Boolean isEncrypted;
        private @Nullable Boolean isOptional;
        private String type;
        public Builder() {}
        public Builder(FieldDefinitionResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.isEncrypted = defaults.isEncrypted;
    	      this.isOptional = defaults.isOptional;
    	      this.type = defaults.type;
        }

        @CustomType.Setter
        public Builder isEncrypted(@Nullable Boolean isEncrypted) {

            this.isEncrypted = isEncrypted;
            return this;
        }
        @CustomType.Setter
        public Builder isOptional(@Nullable Boolean isOptional) {

            this.isOptional = isOptional;
            return this;
        }
        @CustomType.Setter
        public Builder type(String type) {
            if (type == null) {
              throw new MissingRequiredPropertyException("FieldDefinitionResponse", "type");
            }
            this.type = type;
            return this;
        }
        public FieldDefinitionResponse build() {
            final var _resultValue = new FieldDefinitionResponse();
            _resultValue.isEncrypted = isEncrypted;
            _resultValue.isOptional = isOptional;
            _resultValue.type = type;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy