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

com.pulumi.spotinst.gke.outputs.ElastigroupNetworkInterface 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.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import com.pulumi.spotinst.gke.outputs.ElastigroupNetworkInterfaceAccessConfig;
import com.pulumi.spotinst.gke.outputs.ElastigroupNetworkInterfaceAliasIpRange;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import javax.annotation.Nullable;

@CustomType
public final class ElastigroupNetworkInterface {
    private @Nullable List accessConfigs;
    private @Nullable List aliasIpRanges;
    private String network;

    private ElastigroupNetworkInterface() {}
    public List accessConfigs() {
        return this.accessConfigs == null ? List.of() : this.accessConfigs;
    }
    public List aliasIpRanges() {
        return this.aliasIpRanges == null ? List.of() : this.aliasIpRanges;
    }
    public String network() {
        return this.network;
    }

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

    public static Builder builder(ElastigroupNetworkInterface defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable List accessConfigs;
        private @Nullable List aliasIpRanges;
        private String network;
        public Builder() {}
        public Builder(ElastigroupNetworkInterface defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.accessConfigs = defaults.accessConfigs;
    	      this.aliasIpRanges = defaults.aliasIpRanges;
    	      this.network = defaults.network;
        }

        @CustomType.Setter
        public Builder accessConfigs(@Nullable List accessConfigs) {

            this.accessConfigs = accessConfigs;
            return this;
        }
        public Builder accessConfigs(ElastigroupNetworkInterfaceAccessConfig... accessConfigs) {
            return accessConfigs(List.of(accessConfigs));
        }
        @CustomType.Setter
        public Builder aliasIpRanges(@Nullable List aliasIpRanges) {

            this.aliasIpRanges = aliasIpRanges;
            return this;
        }
        public Builder aliasIpRanges(ElastigroupNetworkInterfaceAliasIpRange... aliasIpRanges) {
            return aliasIpRanges(List.of(aliasIpRanges));
        }
        @CustomType.Setter
        public Builder network(String network) {
            if (network == null) {
              throw new MissingRequiredPropertyException("ElastigroupNetworkInterface", "network");
            }
            this.network = network;
            return this;
        }
        public ElastigroupNetworkInterface build() {
            final var _resultValue = new ElastigroupNetworkInterface();
            _resultValue.accessConfigs = accessConfigs;
            _resultValue.aliasIpRanges = aliasIpRanges;
            _resultValue.network = network;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy