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

com.pulumi.spotinst.gke.inputs.ElastigroupBackendServiceNamedPortArgs Maven / Gradle / Ivy

The 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.spotinst.gke.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;


public final class ElastigroupBackendServiceNamedPortArgs extends com.pulumi.resources.ResourceArgs {

    public static final ElastigroupBackendServiceNamedPortArgs Empty = new ElastigroupBackendServiceNamedPortArgs();

    @Import(name="name", required=true)
    private Output name;

    public Output name() {
        return this.name;
    }

    @Import(name="ports", required=true)
    private Output> ports;

    public Output> ports() {
        return this.ports;
    }

    private ElastigroupBackendServiceNamedPortArgs() {}

    private ElastigroupBackendServiceNamedPortArgs(ElastigroupBackendServiceNamedPortArgs $) {
        this.name = $.name;
        this.ports = $.ports;
    }

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

    public static final class Builder {
        private ElastigroupBackendServiceNamedPortArgs $;

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

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

        public Builder name(Output name) {
            $.name = name;
            return this;
        }

        public Builder name(String name) {
            return name(Output.of(name));
        }

        public Builder ports(Output> ports) {
            $.ports = ports;
            return this;
        }

        public Builder ports(List ports) {
            return ports(Output.of(ports));
        }

        public Builder ports(String... ports) {
            return ports(List.of(ports));
        }

        public ElastigroupBackendServiceNamedPortArgs build() {
            if ($.name == null) {
                throw new MissingRequiredPropertyException("ElastigroupBackendServiceNamedPortArgs", "name");
            }
            if ($.ports == null) {
                throw new MissingRequiredPropertyException("ElastigroupBackendServiceNamedPortArgs", "ports");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy