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

com.pulumi.aws.appmesh.inputs.GetVirtualRouterArgs Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

There is a newer version: 6.60.0-alpha.1731982519
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.aws.appmesh.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 GetVirtualRouterArgs extends com.pulumi.resources.InvokeArgs {

    public static final GetVirtualRouterArgs Empty = new GetVirtualRouterArgs();

    /**
     * Name of the mesh in which the virtual router exists
     * 
     */
    @Import(name="meshName", required=true)
    private Output meshName;

    /**
     * @return Name of the mesh in which the virtual router exists
     * 
     */
    public Output meshName() {
        return this.meshName;
    }

    @Import(name="meshOwner")
    private @Nullable Output meshOwner;

    public Optional> meshOwner() {
        return Optional.ofNullable(this.meshOwner);
    }

    /**
     * Name of the virtual router.
     * 
     */
    @Import(name="name", required=true)
    private Output name;

    /**
     * @return Name of the virtual router.
     * 
     */
    public Output name() {
        return this.name;
    }

    /**
     * Map of tags.
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

    /**
     * @return Map of tags.
     * 
     */
    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

    private GetVirtualRouterArgs() {}

    private GetVirtualRouterArgs(GetVirtualRouterArgs $) {
        this.meshName = $.meshName;
        this.meshOwner = $.meshOwner;
        this.name = $.name;
        this.tags = $.tags;
    }

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

    public static final class Builder {
        private GetVirtualRouterArgs $;

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

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

        /**
         * @param meshName Name of the mesh in which the virtual router exists
         * 
         * @return builder
         * 
         */
        public Builder meshName(Output meshName) {
            $.meshName = meshName;
            return this;
        }

        /**
         * @param meshName Name of the mesh in which the virtual router exists
         * 
         * @return builder
         * 
         */
        public Builder meshName(String meshName) {
            return meshName(Output.of(meshName));
        }

        public Builder meshOwner(@Nullable Output meshOwner) {
            $.meshOwner = meshOwner;
            return this;
        }

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

        /**
         * @param name Name of the virtual router.
         * 
         * @return builder
         * 
         */
        public Builder name(Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name Name of the virtual router.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param tags Map of tags.
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags Map of tags.
         * 
         * @return builder
         * 
         */
        public Builder tags(Map tags) {
            return tags(Output.of(tags));
        }

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy