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

com.pulumi.azurenative.awsconnector.inputs.HostEntryArgs Maven / Gradle / Ivy

There is a newer version: 2.82.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.awsconnector.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;


/**
 * Definition of HostEntry
 * 
 */
public final class HostEntryArgs extends com.pulumi.resources.ResourceArgs {

    public static final HostEntryArgs Empty = new HostEntryArgs();

    /**
     * The hostname to use in the ``/etc/hosts`` entry.
     * 
     */
    @Import(name="hostname")
    private @Nullable Output hostname;

    /**
     * @return The hostname to use in the ``/etc/hosts`` entry.
     * 
     */
    public Optional> hostname() {
        return Optional.ofNullable(this.hostname);
    }

    /**
     * The IP address to use in the ``/etc/hosts`` entry.
     * 
     */
    @Import(name="ipAddress")
    private @Nullable Output ipAddress;

    /**
     * @return The IP address to use in the ``/etc/hosts`` entry.
     * 
     */
    public Optional> ipAddress() {
        return Optional.ofNullable(this.ipAddress);
    }

    private HostEntryArgs() {}

    private HostEntryArgs(HostEntryArgs $) {
        this.hostname = $.hostname;
        this.ipAddress = $.ipAddress;
    }

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

    public static final class Builder {
        private HostEntryArgs $;

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

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

        /**
         * @param hostname The hostname to use in the ``/etc/hosts`` entry.
         * 
         * @return builder
         * 
         */
        public Builder hostname(@Nullable Output hostname) {
            $.hostname = hostname;
            return this;
        }

        /**
         * @param hostname The hostname to use in the ``/etc/hosts`` entry.
         * 
         * @return builder
         * 
         */
        public Builder hostname(String hostname) {
            return hostname(Output.of(hostname));
        }

        /**
         * @param ipAddress The IP address to use in the ``/etc/hosts`` entry.
         * 
         * @return builder
         * 
         */
        public Builder ipAddress(@Nullable Output ipAddress) {
            $.ipAddress = ipAddress;
            return this;
        }

        /**
         * @param ipAddress The IP address to use in the ``/etc/hosts`` entry.
         * 
         * @return builder
         * 
         */
        public Builder ipAddress(String ipAddress) {
            return ipAddress(Output.of(ipAddress));
        }

        public HostEntryArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy