// *** 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.gcp.compute.outputs;

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

@CustomType
public final class RegionInstanceGroupManagerStatefulExternalIp {
    /**
     * @return , A value that prescribes what should happen to the external ip when the VM instance is deleted. The available options are `NEVER` and `ON_PERMANENT_INSTANCE_DELETION`. `NEVER` - detach the ip when the VM is deleted, but do not delete the ip. `ON_PERMANENT_INSTANCE_DELETION` will delete the external ip when the VM is permanently deleted from the instance group.
     * 
     */
    private @Nullable String deleteRule;
    /**
     * @return , The network interface name of the external Ip. Possible value: `nic0`.
     * 
     */
    private @Nullable String interfaceName;

    private RegionInstanceGroupManagerStatefulExternalIp() {}
    /**
     * @return , A value that prescribes what should happen to the external ip when the VM instance is deleted. The available options are `NEVER` and `ON_PERMANENT_INSTANCE_DELETION`. `NEVER` - detach the ip when the VM is deleted, but do not delete the ip. `ON_PERMANENT_INSTANCE_DELETION` will delete the external ip when the VM is permanently deleted from the instance group.
     * 
     */
    public Optional<String> deleteRule() {
        return Optional.ofNullable(this.deleteRule);
    }
    /**
     * @return , The network interface name of the external Ip. Possible value: `nic0`.
     * 
     */
    public Optional<String> interfaceName() {
        return Optional.ofNullable(this.interfaceName);
    }

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

    public static Builder builder(RegionInstanceGroupManagerStatefulExternalIp defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String deleteRule;
        private @Nullable String interfaceName;
        public Builder() {}
        public Builder(RegionInstanceGroupManagerStatefulExternalIp defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.deleteRule = defaults.deleteRule;
    	      this.interfaceName = defaults.interfaceName;
        }

        @CustomType.Setter
        public Builder deleteRule(@Nullable String deleteRule) {
            this.deleteRule = deleteRule;
            return this;
        }
        @CustomType.Setter
        public Builder interfaceName(@Nullable String interfaceName) {
            this.interfaceName = interfaceName;
            return this;
        }
        public RegionInstanceGroupManagerStatefulExternalIp build() {
            final var o = new RegionInstanceGroupManagerStatefulExternalIp();
            o.deleteRule = deleteRule;
            o.interfaceName = interfaceName;
            return o;
        }
    }
}
