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

com.pulumi.azurenative.peering.inputs.GetPrefixArgs Maven / Gradle / Ivy

There is a newer version: 2.78.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.azurenative.peering.inputs;

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


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

    public static final GetPrefixArgs Empty = new GetPrefixArgs();

    /**
     * The properties to be expanded.
     * 
     */
    @Import(name="expand")
    private @Nullable Output expand;

    /**
     * @return The properties to be expanded.
     * 
     */
    public Optional> expand() {
        return Optional.ofNullable(this.expand);
    }

    /**
     * The name of the peering service.
     * 
     */
    @Import(name="peeringServiceName", required=true)
    private Output peeringServiceName;

    /**
     * @return The name of the peering service.
     * 
     */
    public Output peeringServiceName() {
        return this.peeringServiceName;
    }

    /**
     * The name of the prefix.
     * 
     */
    @Import(name="prefixName", required=true)
    private Output prefixName;

    /**
     * @return The name of the prefix.
     * 
     */
    public Output prefixName() {
        return this.prefixName;
    }

    /**
     * The name of the resource group.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return The name of the resource group.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    private GetPrefixArgs() {}

    private GetPrefixArgs(GetPrefixArgs $) {
        this.expand = $.expand;
        this.peeringServiceName = $.peeringServiceName;
        this.prefixName = $.prefixName;
        this.resourceGroupName = $.resourceGroupName;
    }

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

    public static final class Builder {
        private GetPrefixArgs $;

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

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

        /**
         * @param expand The properties to be expanded.
         * 
         * @return builder
         * 
         */
        public Builder expand(@Nullable Output expand) {
            $.expand = expand;
            return this;
        }

        /**
         * @param expand The properties to be expanded.
         * 
         * @return builder
         * 
         */
        public Builder expand(String expand) {
            return expand(Output.of(expand));
        }

        /**
         * @param peeringServiceName The name of the peering service.
         * 
         * @return builder
         * 
         */
        public Builder peeringServiceName(Output peeringServiceName) {
            $.peeringServiceName = peeringServiceName;
            return this;
        }

        /**
         * @param peeringServiceName The name of the peering service.
         * 
         * @return builder
         * 
         */
        public Builder peeringServiceName(String peeringServiceName) {
            return peeringServiceName(Output.of(peeringServiceName));
        }

        /**
         * @param prefixName The name of the prefix.
         * 
         * @return builder
         * 
         */
        public Builder prefixName(Output prefixName) {
            $.prefixName = prefixName;
            return this;
        }

        /**
         * @param prefixName The name of the prefix.
         * 
         * @return builder
         * 
         */
        public Builder prefixName(String prefixName) {
            return prefixName(Output.of(prefixName));
        }

        /**
         * @param resourceGroupName The name of the resource group.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName The name of the resource group.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        public GetPrefixArgs build() {
            if ($.peeringServiceName == null) {
                throw new MissingRequiredPropertyException("GetPrefixArgs", "peeringServiceName");
            }
            if ($.prefixName == null) {
                throw new MissingRequiredPropertyException("GetPrefixArgs", "prefixName");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("GetPrefixArgs", "resourceGroupName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy