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

com.pulumi.aws.networkmanager.inputs.GetSitesArgs 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.aws.networkmanager.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final GetSitesArgs Empty = new GetSitesArgs();

    /**
     * ID of the Global Network of the sites to retrieve.
     * 
     */
    @Import(name="globalNetworkId", required=true)
    private Output globalNetworkId;

    /**
     * @return ID of the Global Network of the sites to retrieve.
     * 
     */
    public Output globalNetworkId() {
        return this.globalNetworkId;
    }

    /**
     * Restricts the list to the sites with these tags.
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

    /**
     * @return Restricts the list to the sites with these tags.
     * 
     */
    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

    private GetSitesArgs() {}

    private GetSitesArgs(GetSitesArgs $) {
        this.globalNetworkId = $.globalNetworkId;
        this.tags = $.tags;
    }

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

    public static final class Builder {
        private GetSitesArgs $;

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

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

        /**
         * @param globalNetworkId ID of the Global Network of the sites to retrieve.
         * 
         * @return builder
         * 
         */
        public Builder globalNetworkId(Output globalNetworkId) {
            $.globalNetworkId = globalNetworkId;
            return this;
        }

        /**
         * @param globalNetworkId ID of the Global Network of the sites to retrieve.
         * 
         * @return builder
         * 
         */
        public Builder globalNetworkId(String globalNetworkId) {
            return globalNetworkId(Output.of(globalNetworkId));
        }

        /**
         * @param tags Restricts the list to the sites with these tags.
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags Restricts the list to the sites with these tags.
         * 
         * @return builder
         * 
         */
        public Builder tags(Map tags) {
            return tags(Output.of(tags));
        }

        public GetSitesArgs build() {
            if ($.globalNetworkId == null) {
                throw new MissingRequiredPropertyException("GetSitesArgs", "globalNetworkId");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy