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

com.pulumi.alicloud.vpc.inputs.HaVipv2State Maven / Gradle / Ivy

There is a newer version: 3.63.0-alpha.1727424957
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.alicloud.vpc.inputs;

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


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

    public static final HaVipv2State Empty = new HaVipv2State();

    /**
     * EIP bound to HaVip.
     * 
     */
    @Import(name="associatedEipAddresses")
    private @Nullable Output> associatedEipAddresses;

    /**
     * @return EIP bound to HaVip.
     * 
     */
    public Optional>> associatedEipAddresses() {
        return Optional.ofNullable(this.associatedEipAddresses);
    }

    /**
     * The type of the instance that is bound to the HaVip. Value:-**EcsInstance**: ECS instance.-**NetworkInterface**: ENI instance.
     * 
     */
    @Import(name="associatedInstanceType")
    private @Nullable Output associatedInstanceType;

    /**
     * @return The type of the instance that is bound to the HaVip. Value:-**EcsInstance**: ECS instance.-**NetworkInterface**: ENI instance.
     * 
     */
    public Optional> associatedInstanceType() {
        return Optional.ofNullable(this.associatedInstanceType);
    }

    /**
     * An ECS instance that is bound to HaVip.
     * 
     */
    @Import(name="associatedInstances")
    private @Nullable Output> associatedInstances;

    /**
     * @return An ECS instance that is bound to HaVip.
     * 
     */
    public Optional>> associatedInstances() {
        return Optional.ofNullable(this.associatedInstances);
    }

    /**
     * The creation time of the resource.
     * 
     */
    @Import(name="createTime")
    private @Nullable Output createTime;

    /**
     * @return The creation time of the resource.
     * 
     */
    public Optional> createTime() {
        return Optional.ofNullable(this.createTime);
    }

    /**
     * The description of the HaVip instance. The length is 2 to 256 characters.
     * 
     */
    @Import(name="description")
    private @Nullable Output description;

    /**
     * @return The description of the HaVip instance. The length is 2 to 256 characters.
     * 
     */
    public Optional> description() {
        return Optional.ofNullable(this.description);
    }

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

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

    /**
     * The name of the HaVip instance.
     * 
     */
    @Import(name="haVipName")
    private @Nullable Output haVipName;

    /**
     * @return The name of the HaVip instance.
     * 
     */
    public Optional> haVipName() {
        return Optional.ofNullable(this.haVipName);
    }

    /**
     * Field 'havip_name' has been deprecated from provider version 1.205.0. New field 'ha_vip_name' instead.
     * 
     * @deprecated
     * Field 'havip_name' has been deprecated from provider version 1.205.0. New field 'ha_vip_name' instead.
     * 
     */
    @Deprecated /* Field 'havip_name' has been deprecated from provider version 1.205.0. New field 'ha_vip_name' instead. */
    @Import(name="havipName")
    private @Nullable Output havipName;

    /**
     * @return Field 'havip_name' has been deprecated from provider version 1.205.0. New field 'ha_vip_name' instead.
     * 
     * @deprecated
     * Field 'havip_name' has been deprecated from provider version 1.205.0. New field 'ha_vip_name' instead.
     * 
     */
    @Deprecated /* Field 'havip_name' has been deprecated from provider version 1.205.0. New field 'ha_vip_name' instead. */
    public Optional> havipName() {
        return Optional.ofNullable(this.havipName);
    }

    /**
     * The ip address of the HaVip. If not filled, the default will be assigned one from the vswitch.
     * 
     */
    @Import(name="ipAddress")
    private @Nullable Output ipAddress;

    /**
     * @return The ip address of the HaVip. If not filled, the default will be assigned one from the vswitch.
     * 
     */
    public Optional> ipAddress() {
        return Optional.ofNullable(this.ipAddress);
    }

    /**
     * The primary instance ID bound to HaVip.
     * 
     */
    @Import(name="masterInstanceId")
    private @Nullable Output masterInstanceId;

    /**
     * @return The primary instance ID bound to HaVip.
     * 
     */
    public Optional> masterInstanceId() {
        return Optional.ofNullable(this.masterInstanceId);
    }

    /**
     * The ID of the resource group.
     * 
     */
    @Import(name="resourceGroupId")
    private @Nullable Output resourceGroupId;

    /**
     * @return The ID of the resource group.
     * 
     */
    public Optional> resourceGroupId() {
        return Optional.ofNullable(this.resourceGroupId);
    }

    /**
     * The status of this resource instance.
     * 
     */
    @Import(name="status")
    private @Nullable Output status;

    /**
     * @return The status of this resource instance.
     * 
     */
    public Optional> status() {
        return Optional.ofNullable(this.status);
    }

    /**
     * The tags of HaVip.
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

    /**
     * @return The tags of HaVip.
     * 
     */
    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

    /**
     * The VPC ID to which the HaVip instance belongs.
     * 
     */
    @Import(name="vpcId")
    private @Nullable Output vpcId;

    /**
     * @return The VPC ID to which the HaVip instance belongs.
     * 
     */
    public Optional> vpcId() {
        return Optional.ofNullable(this.vpcId);
    }

    /**
     * The switch ID to which the HaVip instance belongs.
     * 
     * The following arguments will be discarded. Please use new fields as soon as possible:
     * 
     */
    @Import(name="vswitchId")
    private @Nullable Output vswitchId;

    /**
     * @return The switch ID to which the HaVip instance belongs.
     * 
     * The following arguments will be discarded. Please use new fields as soon as possible:
     * 
     */
    public Optional> vswitchId() {
        return Optional.ofNullable(this.vswitchId);
    }

    private HaVipv2State() {}

    private HaVipv2State(HaVipv2State $) {
        this.associatedEipAddresses = $.associatedEipAddresses;
        this.associatedInstanceType = $.associatedInstanceType;
        this.associatedInstances = $.associatedInstances;
        this.createTime = $.createTime;
        this.description = $.description;
        this.haVipId = $.haVipId;
        this.haVipName = $.haVipName;
        this.havipName = $.havipName;
        this.ipAddress = $.ipAddress;
        this.masterInstanceId = $.masterInstanceId;
        this.resourceGroupId = $.resourceGroupId;
        this.status = $.status;
        this.tags = $.tags;
        this.vpcId = $.vpcId;
        this.vswitchId = $.vswitchId;
    }

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

    public static final class Builder {
        private HaVipv2State $;

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

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

        /**
         * @param associatedEipAddresses EIP bound to HaVip.
         * 
         * @return builder
         * 
         */
        public Builder associatedEipAddresses(@Nullable Output> associatedEipAddresses) {
            $.associatedEipAddresses = associatedEipAddresses;
            return this;
        }

        /**
         * @param associatedEipAddresses EIP bound to HaVip.
         * 
         * @return builder
         * 
         */
        public Builder associatedEipAddresses(List associatedEipAddresses) {
            return associatedEipAddresses(Output.of(associatedEipAddresses));
        }

        /**
         * @param associatedEipAddresses EIP bound to HaVip.
         * 
         * @return builder
         * 
         */
        public Builder associatedEipAddresses(String... associatedEipAddresses) {
            return associatedEipAddresses(List.of(associatedEipAddresses));
        }

        /**
         * @param associatedInstanceType The type of the instance that is bound to the HaVip. Value:-**EcsInstance**: ECS instance.-**NetworkInterface**: ENI instance.
         * 
         * @return builder
         * 
         */
        public Builder associatedInstanceType(@Nullable Output associatedInstanceType) {
            $.associatedInstanceType = associatedInstanceType;
            return this;
        }

        /**
         * @param associatedInstanceType The type of the instance that is bound to the HaVip. Value:-**EcsInstance**: ECS instance.-**NetworkInterface**: ENI instance.
         * 
         * @return builder
         * 
         */
        public Builder associatedInstanceType(String associatedInstanceType) {
            return associatedInstanceType(Output.of(associatedInstanceType));
        }

        /**
         * @param associatedInstances An ECS instance that is bound to HaVip.
         * 
         * @return builder
         * 
         */
        public Builder associatedInstances(@Nullable Output> associatedInstances) {
            $.associatedInstances = associatedInstances;
            return this;
        }

        /**
         * @param associatedInstances An ECS instance that is bound to HaVip.
         * 
         * @return builder
         * 
         */
        public Builder associatedInstances(List associatedInstances) {
            return associatedInstances(Output.of(associatedInstances));
        }

        /**
         * @param associatedInstances An ECS instance that is bound to HaVip.
         * 
         * @return builder
         * 
         */
        public Builder associatedInstances(String... associatedInstances) {
            return associatedInstances(List.of(associatedInstances));
        }

        /**
         * @param createTime The creation time of the resource.
         * 
         * @return builder
         * 
         */
        public Builder createTime(@Nullable Output createTime) {
            $.createTime = createTime;
            return this;
        }

        /**
         * @param createTime The creation time of the resource.
         * 
         * @return builder
         * 
         */
        public Builder createTime(String createTime) {
            return createTime(Output.of(createTime));
        }

        /**
         * @param description The description of the HaVip instance. The length is 2 to 256 characters.
         * 
         * @return builder
         * 
         */
        public Builder description(@Nullable Output description) {
            $.description = description;
            return this;
        }

        /**
         * @param description The description of the HaVip instance. The length is 2 to 256 characters.
         * 
         * @return builder
         * 
         */
        public Builder description(String description) {
            return description(Output.of(description));
        }

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

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

        /**
         * @param haVipName The name of the HaVip instance.
         * 
         * @return builder
         * 
         */
        public Builder haVipName(@Nullable Output haVipName) {
            $.haVipName = haVipName;
            return this;
        }

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

        /**
         * @param havipName Field 'havip_name' has been deprecated from provider version 1.205.0. New field 'ha_vip_name' instead.
         * 
         * @return builder
         * 
         * @deprecated
         * Field 'havip_name' has been deprecated from provider version 1.205.0. New field 'ha_vip_name' instead.
         * 
         */
        @Deprecated /* Field 'havip_name' has been deprecated from provider version 1.205.0. New field 'ha_vip_name' instead. */
        public Builder havipName(@Nullable Output havipName) {
            $.havipName = havipName;
            return this;
        }

        /**
         * @param havipName Field 'havip_name' has been deprecated from provider version 1.205.0. New field 'ha_vip_name' instead.
         * 
         * @return builder
         * 
         * @deprecated
         * Field 'havip_name' has been deprecated from provider version 1.205.0. New field 'ha_vip_name' instead.
         * 
         */
        @Deprecated /* Field 'havip_name' has been deprecated from provider version 1.205.0. New field 'ha_vip_name' instead. */
        public Builder havipName(String havipName) {
            return havipName(Output.of(havipName));
        }

        /**
         * @param ipAddress The ip address of the HaVip. If not filled, the default will be assigned one from the vswitch.
         * 
         * @return builder
         * 
         */
        public Builder ipAddress(@Nullable Output ipAddress) {
            $.ipAddress = ipAddress;
            return this;
        }

        /**
         * @param ipAddress The ip address of the HaVip. If not filled, the default will be assigned one from the vswitch.
         * 
         * @return builder
         * 
         */
        public Builder ipAddress(String ipAddress) {
            return ipAddress(Output.of(ipAddress));
        }

        /**
         * @param masterInstanceId The primary instance ID bound to HaVip.
         * 
         * @return builder
         * 
         */
        public Builder masterInstanceId(@Nullable Output masterInstanceId) {
            $.masterInstanceId = masterInstanceId;
            return this;
        }

        /**
         * @param masterInstanceId The primary instance ID bound to HaVip.
         * 
         * @return builder
         * 
         */
        public Builder masterInstanceId(String masterInstanceId) {
            return masterInstanceId(Output.of(masterInstanceId));
        }

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

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

        /**
         * @param status The status of this resource instance.
         * 
         * @return builder
         * 
         */
        public Builder status(@Nullable Output status) {
            $.status = status;
            return this;
        }

        /**
         * @param status The status of this resource instance.
         * 
         * @return builder
         * 
         */
        public Builder status(String status) {
            return status(Output.of(status));
        }

        /**
         * @param tags The tags of HaVip.
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags The tags of HaVip.
         * 
         * @return builder
         * 
         */
        public Builder tags(Map tags) {
            return tags(Output.of(tags));
        }

        /**
         * @param vpcId The VPC ID to which the HaVip instance belongs.
         * 
         * @return builder
         * 
         */
        public Builder vpcId(@Nullable Output vpcId) {
            $.vpcId = vpcId;
            return this;
        }

        /**
         * @param vpcId The VPC ID to which the HaVip instance belongs.
         * 
         * @return builder
         * 
         */
        public Builder vpcId(String vpcId) {
            return vpcId(Output.of(vpcId));
        }

        /**
         * @param vswitchId The switch ID to which the HaVip instance belongs.
         * 
         * The following arguments will be discarded. Please use new fields as soon as possible:
         * 
         * @return builder
         * 
         */
        public Builder vswitchId(@Nullable Output vswitchId) {
            $.vswitchId = vswitchId;
            return this;
        }

        /**
         * @param vswitchId The switch ID to which the HaVip instance belongs.
         * 
         * The following arguments will be discarded. Please use new fields as soon as possible:
         * 
         * @return builder
         * 
         */
        public Builder vswitchId(String vswitchId) {
            return vswitchId(Output.of(vswitchId));
        }

        public HaVipv2State build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy