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

com.pulumi.googlenative.vision.v1.inputs.BoundingPolyArgs 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.vision.v1.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.googlenative.vision.v1.inputs.NormalizedVertexArgs;
import com.pulumi.googlenative.vision.v1.inputs.VertexArgs;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * A bounding polygon for the detected image annotation.
 * 
 */
public final class BoundingPolyArgs extends com.pulumi.resources.ResourceArgs {

    public static final BoundingPolyArgs Empty = new BoundingPolyArgs();

    /**
     * The bounding polygon normalized vertices.
     * 
     */
    @Import(name="normalizedVertices")
    private @Nullable Output> normalizedVertices;

    /**
     * @return The bounding polygon normalized vertices.
     * 
     */
    public Optional>> normalizedVertices() {
        return Optional.ofNullable(this.normalizedVertices);
    }

    /**
     * The bounding polygon vertices.
     * 
     */
    @Import(name="vertices")
    private @Nullable Output> vertices;

    /**
     * @return The bounding polygon vertices.
     * 
     */
    public Optional>> vertices() {
        return Optional.ofNullable(this.vertices);
    }

    private BoundingPolyArgs() {}

    private BoundingPolyArgs(BoundingPolyArgs $) {
        this.normalizedVertices = $.normalizedVertices;
        this.vertices = $.vertices;
    }

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

    public static final class Builder {
        private BoundingPolyArgs $;

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

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

        /**
         * @param normalizedVertices The bounding polygon normalized vertices.
         * 
         * @return builder
         * 
         */
        public Builder normalizedVertices(@Nullable Output> normalizedVertices) {
            $.normalizedVertices = normalizedVertices;
            return this;
        }

        /**
         * @param normalizedVertices The bounding polygon normalized vertices.
         * 
         * @return builder
         * 
         */
        public Builder normalizedVertices(List normalizedVertices) {
            return normalizedVertices(Output.of(normalizedVertices));
        }

        /**
         * @param normalizedVertices The bounding polygon normalized vertices.
         * 
         * @return builder
         * 
         */
        public Builder normalizedVertices(NormalizedVertexArgs... normalizedVertices) {
            return normalizedVertices(List.of(normalizedVertices));
        }

        /**
         * @param vertices The bounding polygon vertices.
         * 
         * @return builder
         * 
         */
        public Builder vertices(@Nullable Output> vertices) {
            $.vertices = vertices;
            return this;
        }

        /**
         * @param vertices The bounding polygon vertices.
         * 
         * @return builder
         * 
         */
        public Builder vertices(List vertices) {
            return vertices(Output.of(vertices));
        }

        /**
         * @param vertices The bounding polygon vertices.
         * 
         * @return builder
         * 
         */
        public Builder vertices(VertexArgs... vertices) {
            return vertices(List.of(vertices));
        }

        public BoundingPolyArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy