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

com.pulumi.ns1.inputs.GetMonitoringRegionsRegion Maven / Gradle / Ivy

There is a newer version: 3.5.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.ns1.inputs;

import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class GetMonitoringRegionsRegion extends com.pulumi.resources.InvokeArgs {

    public static final GetMonitoringRegionsRegion Empty = new GetMonitoringRegionsRegion();

    /**
     * 3-letter city code identifying the location of the monitor.
     * 
     */
    @Import(name="code")
    private @Nullable String code;

    /**
     * @return 3-letter city code identifying the location of the monitor.
     * 
     */
    public Optional code() {
        return Optional.ofNullable(this.code);
    }

    /**
     * City name identifying the location of the monitor.
     * 
     */
    @Import(name="name")
    private @Nullable String name;

    /**
     * @return City name identifying the location of the monitor.
     * 
     */
    public Optional name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * A list of IPv4 and IPv6 subnets the monitor sources requests from.
     * 
     */
    @Import(name="subnets")
    private @Nullable List subnets;

    /**
     * @return A list of IPv4 and IPv6 subnets the monitor sources requests from.
     * 
     */
    public Optional> subnets() {
        return Optional.ofNullable(this.subnets);
    }

    private GetMonitoringRegionsRegion() {}

    private GetMonitoringRegionsRegion(GetMonitoringRegionsRegion $) {
        this.code = $.code;
        this.name = $.name;
        this.subnets = $.subnets;
    }

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

    public static final class Builder {
        private GetMonitoringRegionsRegion $;

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

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

        /**
         * @param code 3-letter city code identifying the location of the monitor.
         * 
         * @return builder
         * 
         */
        public Builder code(@Nullable String code) {
            $.code = code;
            return this;
        }

        /**
         * @param name City name identifying the location of the monitor.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable String name) {
            $.name = name;
            return this;
        }

        /**
         * @param subnets A list of IPv4 and IPv6 subnets the monitor sources requests from.
         * 
         * @return builder
         * 
         */
        public Builder subnets(@Nullable List subnets) {
            $.subnets = subnets;
            return this;
        }

        /**
         * @param subnets A list of IPv4 and IPv6 subnets the monitor sources requests from.
         * 
         * @return builder
         * 
         */
        public Builder subnets(String... subnets) {
            return subnets(List.of(subnets));
        }

        public GetMonitoringRegionsRegion build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy