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

com.pulumi.azure.devtest.outputs.WindowsVirtualMachineInboundNatRule Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.

There is a newer version: 6.10.0-alpha.1731737215
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.azure.devtest.outputs;

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

@CustomType
public final class WindowsVirtualMachineInboundNatRule {
    /**
     * @return The Backend Port associated with this NAT Rule. Changing this forces a new resource to be created.
     * 
     */
    private Integer backendPort;
    /**
     * @return The frontend port associated with this Inbound NAT Rule.
     * 
     */
    private @Nullable Integer frontendPort;
    /**
     * @return The Protocol used for this NAT Rule. Possible values are `Tcp` and `Udp`.
     * 
     */
    private String protocol;

    private WindowsVirtualMachineInboundNatRule() {}
    /**
     * @return The Backend Port associated with this NAT Rule. Changing this forces a new resource to be created.
     * 
     */
    public Integer backendPort() {
        return this.backendPort;
    }
    /**
     * @return The frontend port associated with this Inbound NAT Rule.
     * 
     */
    public Optional frontendPort() {
        return Optional.ofNullable(this.frontendPort);
    }
    /**
     * @return The Protocol used for this NAT Rule. Possible values are `Tcp` and `Udp`.
     * 
     */
    public String protocol() {
        return this.protocol;
    }

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

    public static Builder builder(WindowsVirtualMachineInboundNatRule defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private Integer backendPort;
        private @Nullable Integer frontendPort;
        private String protocol;
        public Builder() {}
        public Builder(WindowsVirtualMachineInboundNatRule defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.backendPort = defaults.backendPort;
    	      this.frontendPort = defaults.frontendPort;
    	      this.protocol = defaults.protocol;
        }

        @CustomType.Setter
        public Builder backendPort(Integer backendPort) {
            if (backendPort == null) {
              throw new MissingRequiredPropertyException("WindowsVirtualMachineInboundNatRule", "backendPort");
            }
            this.backendPort = backendPort;
            return this;
        }
        @CustomType.Setter
        public Builder frontendPort(@Nullable Integer frontendPort) {

            this.frontendPort = frontendPort;
            return this;
        }
        @CustomType.Setter
        public Builder protocol(String protocol) {
            if (protocol == null) {
              throw new MissingRequiredPropertyException("WindowsVirtualMachineInboundNatRule", "protocol");
            }
            this.protocol = protocol;
            return this;
        }
        public WindowsVirtualMachineInboundNatRule build() {
            final var _resultValue = new WindowsVirtualMachineInboundNatRule();
            _resultValue.backendPort = backendPort;
            _resultValue.frontendPort = frontendPort;
            _resultValue.protocol = protocol;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy