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

com.pulumi.aws.networkmanager.CustomerGatewayAssociationArgs Maven / Gradle / Ivy

Go to download

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

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.aws.networkmanager;

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 CustomerGatewayAssociationArgs extends com.pulumi.resources.ResourceArgs {

    public static final CustomerGatewayAssociationArgs Empty = new CustomerGatewayAssociationArgs();

    /**
     * The Amazon Resource Name (ARN) of the customer gateway.
     * 
     */
    @Import(name="customerGatewayArn", required=true)
    private Output customerGatewayArn;

    /**
     * @return The Amazon Resource Name (ARN) of the customer gateway.
     * 
     */
    public Output customerGatewayArn() {
        return this.customerGatewayArn;
    }

    /**
     * The ID of the device.
     * 
     */
    @Import(name="deviceId", required=true)
    private Output deviceId;

    /**
     * @return The ID of the device.
     * 
     */
    public Output deviceId() {
        return this.deviceId;
    }

    /**
     * The ID of the global network.
     * 
     */
    @Import(name="globalNetworkId", required=true)
    private Output globalNetworkId;

    /**
     * @return The ID of the global network.
     * 
     */
    public Output globalNetworkId() {
        return this.globalNetworkId;
    }

    /**
     * The ID of the link.
     * 
     */
    @Import(name="linkId")
    private @Nullable Output linkId;

    /**
     * @return The ID of the link.
     * 
     */
    public Optional> linkId() {
        return Optional.ofNullable(this.linkId);
    }

    private CustomerGatewayAssociationArgs() {}

    private CustomerGatewayAssociationArgs(CustomerGatewayAssociationArgs $) {
        this.customerGatewayArn = $.customerGatewayArn;
        this.deviceId = $.deviceId;
        this.globalNetworkId = $.globalNetworkId;
        this.linkId = $.linkId;
    }

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

    public static final class Builder {
        private CustomerGatewayAssociationArgs $;

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

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

        /**
         * @param customerGatewayArn The Amazon Resource Name (ARN) of the customer gateway.
         * 
         * @return builder
         * 
         */
        public Builder customerGatewayArn(Output customerGatewayArn) {
            $.customerGatewayArn = customerGatewayArn;
            return this;
        }

        /**
         * @param customerGatewayArn The Amazon Resource Name (ARN) of the customer gateway.
         * 
         * @return builder
         * 
         */
        public Builder customerGatewayArn(String customerGatewayArn) {
            return customerGatewayArn(Output.of(customerGatewayArn));
        }

        /**
         * @param deviceId The ID of the device.
         * 
         * @return builder
         * 
         */
        public Builder deviceId(Output deviceId) {
            $.deviceId = deviceId;
            return this;
        }

        /**
         * @param deviceId The ID of the device.
         * 
         * @return builder
         * 
         */
        public Builder deviceId(String deviceId) {
            return deviceId(Output.of(deviceId));
        }

        /**
         * @param globalNetworkId The ID of the global network.
         * 
         * @return builder
         * 
         */
        public Builder globalNetworkId(Output globalNetworkId) {
            $.globalNetworkId = globalNetworkId;
            return this;
        }

        /**
         * @param globalNetworkId The ID of the global network.
         * 
         * @return builder
         * 
         */
        public Builder globalNetworkId(String globalNetworkId) {
            return globalNetworkId(Output.of(globalNetworkId));
        }

        /**
         * @param linkId The ID of the link.
         * 
         * @return builder
         * 
         */
        public Builder linkId(@Nullable Output linkId) {
            $.linkId = linkId;
            return this;
        }

        /**
         * @param linkId The ID of the link.
         * 
         * @return builder
         * 
         */
        public Builder linkId(String linkId) {
            return linkId(Output.of(linkId));
        }

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy