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

com.pulumi.aws.lightsail.inputs.StaticIpAttachmentState 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.lightsail.inputs;

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


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

    public static final StaticIpAttachmentState Empty = new StaticIpAttachmentState();

    /**
     * The name of the Lightsail instance to attach the IP to
     * 
     */
    @Import(name="instanceName")
    private @Nullable Output instanceName;

    /**
     * @return The name of the Lightsail instance to attach the IP to
     * 
     */
    public Optional> instanceName() {
        return Optional.ofNullable(this.instanceName);
    }

    /**
     * The allocated static IP address
     * 
     */
    @Import(name="ipAddress")
    private @Nullable Output ipAddress;

    /**
     * @return The allocated static IP address
     * 
     */
    public Optional> ipAddress() {
        return Optional.ofNullable(this.ipAddress);
    }

    /**
     * The name of the allocated static IP
     * 
     */
    @Import(name="staticIpName")
    private @Nullable Output staticIpName;

    /**
     * @return The name of the allocated static IP
     * 
     */
    public Optional> staticIpName() {
        return Optional.ofNullable(this.staticIpName);
    }

    private StaticIpAttachmentState() {}

    private StaticIpAttachmentState(StaticIpAttachmentState $) {
        this.instanceName = $.instanceName;
        this.ipAddress = $.ipAddress;
        this.staticIpName = $.staticIpName;
    }

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

    public static final class Builder {
        private StaticIpAttachmentState $;

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

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

        /**
         * @param instanceName The name of the Lightsail instance to attach the IP to
         * 
         * @return builder
         * 
         */
        public Builder instanceName(@Nullable Output instanceName) {
            $.instanceName = instanceName;
            return this;
        }

        /**
         * @param instanceName The name of the Lightsail instance to attach the IP to
         * 
         * @return builder
         * 
         */
        public Builder instanceName(String instanceName) {
            return instanceName(Output.of(instanceName));
        }

        /**
         * @param ipAddress The allocated static IP address
         * 
         * @return builder
         * 
         */
        public Builder ipAddress(@Nullable Output ipAddress) {
            $.ipAddress = ipAddress;
            return this;
        }

        /**
         * @param ipAddress The allocated static IP address
         * 
         * @return builder
         * 
         */
        public Builder ipAddress(String ipAddress) {
            return ipAddress(Output.of(ipAddress));
        }

        /**
         * @param staticIpName The name of the allocated static IP
         * 
         * @return builder
         * 
         */
        public Builder staticIpName(@Nullable Output staticIpName) {
            $.staticIpName = staticIpName;
            return this;
        }

        /**
         * @param staticIpName The name of the allocated static IP
         * 
         * @return builder
         * 
         */
        public Builder staticIpName(String staticIpName) {
            return staticIpName(Output.of(staticIpName));
        }

        public StaticIpAttachmentState build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy