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

com.pulumi.aws.ec2.NetworkInterfaceSecurityGroupAttachmentArgs 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.ec2;

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


public final class NetworkInterfaceSecurityGroupAttachmentArgs extends com.pulumi.resources.ResourceArgs {

    public static final NetworkInterfaceSecurityGroupAttachmentArgs Empty = new NetworkInterfaceSecurityGroupAttachmentArgs();

    /**
     * The ID of the network interface to attach to.
     * 
     */
    @Import(name="networkInterfaceId", required=true)
    private Output networkInterfaceId;

    /**
     * @return The ID of the network interface to attach to.
     * 
     */
    public Output networkInterfaceId() {
        return this.networkInterfaceId;
    }

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

    /**
     * @return The ID of the security group.
     * 
     */
    public Output securityGroupId() {
        return this.securityGroupId;
    }

    private NetworkInterfaceSecurityGroupAttachmentArgs() {}

    private NetworkInterfaceSecurityGroupAttachmentArgs(NetworkInterfaceSecurityGroupAttachmentArgs $) {
        this.networkInterfaceId = $.networkInterfaceId;
        this.securityGroupId = $.securityGroupId;
    }

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

    public static final class Builder {
        private NetworkInterfaceSecurityGroupAttachmentArgs $;

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

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

        /**
         * @param networkInterfaceId The ID of the network interface to attach to.
         * 
         * @return builder
         * 
         */
        public Builder networkInterfaceId(Output networkInterfaceId) {
            $.networkInterfaceId = networkInterfaceId;
            return this;
        }

        /**
         * @param networkInterfaceId The ID of the network interface to attach to.
         * 
         * @return builder
         * 
         */
        public Builder networkInterfaceId(String networkInterfaceId) {
            return networkInterfaceId(Output.of(networkInterfaceId));
        }

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

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

        public NetworkInterfaceSecurityGroupAttachmentArgs build() {
            if ($.networkInterfaceId == null) {
                throw new MissingRequiredPropertyException("NetworkInterfaceSecurityGroupAttachmentArgs", "networkInterfaceId");
            }
            if ($.securityGroupId == null) {
                throw new MissingRequiredPropertyException("NetworkInterfaceSecurityGroupAttachmentArgs", "securityGroupId");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy