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

com.pulumi.azurenative.network.outputs.GetNetworkInterfaceResult 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.network.outputs;

import com.pulumi.azurenative.network.outputs.ExtendedLocationResponse;
import com.pulumi.azurenative.network.outputs.NetworkInterfaceDnsSettingsResponse;
import com.pulumi.azurenative.network.outputs.NetworkInterfaceIPConfigurationResponse;
import com.pulumi.azurenative.network.outputs.NetworkInterfaceTapConfigurationResponse;
import com.pulumi.azurenative.network.outputs.NetworkSecurityGroupResponse;
import com.pulumi.azurenative.network.outputs.PrivateEndpointResponse;
import com.pulumi.azurenative.network.outputs.PrivateLinkServiceResponse;
import com.pulumi.azurenative.network.outputs.SubResourceResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class GetNetworkInterfaceResult {
    /**
     * @return Auxiliary mode of Network Interface resource.
     * 
     */
    private @Nullable String auxiliaryMode;
    /**
     * @return Auxiliary sku of Network Interface resource.
     * 
     */
    private @Nullable String auxiliarySku;
    /**
     * @return Indicates whether to disable tcp state tracking.
     * 
     */
    private @Nullable Boolean disableTcpStateTracking;
    /**
     * @return The DNS settings in network interface.
     * 
     */
    private @Nullable NetworkInterfaceDnsSettingsResponse dnsSettings;
    /**
     * @return A reference to the dscp configuration to which the network interface is linked.
     * 
     */
    private SubResourceResponse dscpConfiguration;
    /**
     * @return If the network interface is configured for accelerated networking. Not applicable to VM sizes which require accelerated networking.
     * 
     */
    private @Nullable Boolean enableAcceleratedNetworking;
    /**
     * @return Indicates whether IP forwarding is enabled on this network interface.
     * 
     */
    private @Nullable Boolean enableIPForwarding;
    /**
     * @return A unique read-only string that changes whenever the resource is updated.
     * 
     */
    private String etag;
    /**
     * @return The extended location of the network interface.
     * 
     */
    private @Nullable ExtendedLocationResponse extendedLocation;
    /**
     * @return A list of references to linked BareMetal resources.
     * 
     */
    private List hostedWorkloads;
    /**
     * @return Resource ID.
     * 
     */
    private @Nullable String id;
    /**
     * @return A list of IPConfigurations of the network interface.
     * 
     */
    private @Nullable List ipConfigurations;
    /**
     * @return Resource location.
     * 
     */
    private @Nullable String location;
    /**
     * @return The MAC address of the network interface.
     * 
     */
    private String macAddress;
    /**
     * @return Migration phase of Network Interface resource.
     * 
     */
    private @Nullable String migrationPhase;
    /**
     * @return Resource name.
     * 
     */
    private String name;
    /**
     * @return The reference to the NetworkSecurityGroup resource.
     * 
     */
    private @Nullable NetworkSecurityGroupResponse networkSecurityGroup;
    /**
     * @return Type of Network Interface resource.
     * 
     */
    private @Nullable String nicType;
    /**
     * @return Whether this is a primary network interface on a virtual machine.
     * 
     */
    private Boolean primary;
    /**
     * @return A reference to the private endpoint to which the network interface is linked.
     * 
     */
    private PrivateEndpointResponse privateEndpoint;
    /**
     * @return Privatelinkservice of the network interface resource.
     * 
     */
    private @Nullable PrivateLinkServiceResponse privateLinkService;
    /**
     * @return The provisioning state of the network interface resource.
     * 
     */
    private String provisioningState;
    /**
     * @return The resource GUID property of the network interface resource.
     * 
     */
    private String resourceGuid;
    /**
     * @return Resource tags.
     * 
     */
    private @Nullable Map tags;
    /**
     * @return A list of TapConfigurations of the network interface.
     * 
     */
    private List tapConfigurations;
    /**
     * @return Resource type.
     * 
     */
    private String type;
    /**
     * @return The reference to a virtual machine.
     * 
     */
    private SubResourceResponse virtualMachine;
    /**
     * @return Whether the virtual machine this nic is attached to supports encryption.
     * 
     */
    private Boolean vnetEncryptionSupported;
    /**
     * @return WorkloadType of the NetworkInterface for BareMetal resources
     * 
     */
    private @Nullable String workloadType;

    private GetNetworkInterfaceResult() {}
    /**
     * @return Auxiliary mode of Network Interface resource.
     * 
     */
    public Optional auxiliaryMode() {
        return Optional.ofNullable(this.auxiliaryMode);
    }
    /**
     * @return Auxiliary sku of Network Interface resource.
     * 
     */
    public Optional auxiliarySku() {
        return Optional.ofNullable(this.auxiliarySku);
    }
    /**
     * @return Indicates whether to disable tcp state tracking.
     * 
     */
    public Optional disableTcpStateTracking() {
        return Optional.ofNullable(this.disableTcpStateTracking);
    }
    /**
     * @return The DNS settings in network interface.
     * 
     */
    public Optional dnsSettings() {
        return Optional.ofNullable(this.dnsSettings);
    }
    /**
     * @return A reference to the dscp configuration to which the network interface is linked.
     * 
     */
    public SubResourceResponse dscpConfiguration() {
        return this.dscpConfiguration;
    }
    /**
     * @return If the network interface is configured for accelerated networking. Not applicable to VM sizes which require accelerated networking.
     * 
     */
    public Optional enableAcceleratedNetworking() {
        return Optional.ofNullable(this.enableAcceleratedNetworking);
    }
    /**
     * @return Indicates whether IP forwarding is enabled on this network interface.
     * 
     */
    public Optional enableIPForwarding() {
        return Optional.ofNullable(this.enableIPForwarding);
    }
    /**
     * @return A unique read-only string that changes whenever the resource is updated.
     * 
     */
    public String etag() {
        return this.etag;
    }
    /**
     * @return The extended location of the network interface.
     * 
     */
    public Optional extendedLocation() {
        return Optional.ofNullable(this.extendedLocation);
    }
    /**
     * @return A list of references to linked BareMetal resources.
     * 
     */
    public List hostedWorkloads() {
        return this.hostedWorkloads;
    }
    /**
     * @return Resource ID.
     * 
     */
    public Optional id() {
        return Optional.ofNullable(this.id);
    }
    /**
     * @return A list of IPConfigurations of the network interface.
     * 
     */
    public List ipConfigurations() {
        return this.ipConfigurations == null ? List.of() : this.ipConfigurations;
    }
    /**
     * @return Resource location.
     * 
     */
    public Optional location() {
        return Optional.ofNullable(this.location);
    }
    /**
     * @return The MAC address of the network interface.
     * 
     */
    public String macAddress() {
        return this.macAddress;
    }
    /**
     * @return Migration phase of Network Interface resource.
     * 
     */
    public Optional migrationPhase() {
        return Optional.ofNullable(this.migrationPhase);
    }
    /**
     * @return Resource name.
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return The reference to the NetworkSecurityGroup resource.
     * 
     */
    public Optional networkSecurityGroup() {
        return Optional.ofNullable(this.networkSecurityGroup);
    }
    /**
     * @return Type of Network Interface resource.
     * 
     */
    public Optional nicType() {
        return Optional.ofNullable(this.nicType);
    }
    /**
     * @return Whether this is a primary network interface on a virtual machine.
     * 
     */
    public Boolean primary() {
        return this.primary;
    }
    /**
     * @return A reference to the private endpoint to which the network interface is linked.
     * 
     */
    public PrivateEndpointResponse privateEndpoint() {
        return this.privateEndpoint;
    }
    /**
     * @return Privatelinkservice of the network interface resource.
     * 
     */
    public Optional privateLinkService() {
        return Optional.ofNullable(this.privateLinkService);
    }
    /**
     * @return The provisioning state of the network interface resource.
     * 
     */
    public String provisioningState() {
        return this.provisioningState;
    }
    /**
     * @return The resource GUID property of the network interface resource.
     * 
     */
    public String resourceGuid() {
        return this.resourceGuid;
    }
    /**
     * @return Resource tags.
     * 
     */
    public Map tags() {
        return this.tags == null ? Map.of() : this.tags;
    }
    /**
     * @return A list of TapConfigurations of the network interface.
     * 
     */
    public List tapConfigurations() {
        return this.tapConfigurations;
    }
    /**
     * @return Resource type.
     * 
     */
    public String type() {
        return this.type;
    }
    /**
     * @return The reference to a virtual machine.
     * 
     */
    public SubResourceResponse virtualMachine() {
        return this.virtualMachine;
    }
    /**
     * @return Whether the virtual machine this nic is attached to supports encryption.
     * 
     */
    public Boolean vnetEncryptionSupported() {
        return this.vnetEncryptionSupported;
    }
    /**
     * @return WorkloadType of the NetworkInterface for BareMetal resources
     * 
     */
    public Optional workloadType() {
        return Optional.ofNullable(this.workloadType);
    }

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

    public static Builder builder(GetNetworkInterfaceResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String auxiliaryMode;
        private @Nullable String auxiliarySku;
        private @Nullable Boolean disableTcpStateTracking;
        private @Nullable NetworkInterfaceDnsSettingsResponse dnsSettings;
        private SubResourceResponse dscpConfiguration;
        private @Nullable Boolean enableAcceleratedNetworking;
        private @Nullable Boolean enableIPForwarding;
        private String etag;
        private @Nullable ExtendedLocationResponse extendedLocation;
        private List hostedWorkloads;
        private @Nullable String id;
        private @Nullable List ipConfigurations;
        private @Nullable String location;
        private String macAddress;
        private @Nullable String migrationPhase;
        private String name;
        private @Nullable NetworkSecurityGroupResponse networkSecurityGroup;
        private @Nullable String nicType;
        private Boolean primary;
        private PrivateEndpointResponse privateEndpoint;
        private @Nullable PrivateLinkServiceResponse privateLinkService;
        private String provisioningState;
        private String resourceGuid;
        private @Nullable Map tags;
        private List tapConfigurations;
        private String type;
        private SubResourceResponse virtualMachine;
        private Boolean vnetEncryptionSupported;
        private @Nullable String workloadType;
        public Builder() {}
        public Builder(GetNetworkInterfaceResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.auxiliaryMode = defaults.auxiliaryMode;
    	      this.auxiliarySku = defaults.auxiliarySku;
    	      this.disableTcpStateTracking = defaults.disableTcpStateTracking;
    	      this.dnsSettings = defaults.dnsSettings;
    	      this.dscpConfiguration = defaults.dscpConfiguration;
    	      this.enableAcceleratedNetworking = defaults.enableAcceleratedNetworking;
    	      this.enableIPForwarding = defaults.enableIPForwarding;
    	      this.etag = defaults.etag;
    	      this.extendedLocation = defaults.extendedLocation;
    	      this.hostedWorkloads = defaults.hostedWorkloads;
    	      this.id = defaults.id;
    	      this.ipConfigurations = defaults.ipConfigurations;
    	      this.location = defaults.location;
    	      this.macAddress = defaults.macAddress;
    	      this.migrationPhase = defaults.migrationPhase;
    	      this.name = defaults.name;
    	      this.networkSecurityGroup = defaults.networkSecurityGroup;
    	      this.nicType = defaults.nicType;
    	      this.primary = defaults.primary;
    	      this.privateEndpoint = defaults.privateEndpoint;
    	      this.privateLinkService = defaults.privateLinkService;
    	      this.provisioningState = defaults.provisioningState;
    	      this.resourceGuid = defaults.resourceGuid;
    	      this.tags = defaults.tags;
    	      this.tapConfigurations = defaults.tapConfigurations;
    	      this.type = defaults.type;
    	      this.virtualMachine = defaults.virtualMachine;
    	      this.vnetEncryptionSupported = defaults.vnetEncryptionSupported;
    	      this.workloadType = defaults.workloadType;
        }

        @CustomType.Setter
        public Builder auxiliaryMode(@Nullable String auxiliaryMode) {

            this.auxiliaryMode = auxiliaryMode;
            return this;
        }
        @CustomType.Setter
        public Builder auxiliarySku(@Nullable String auxiliarySku) {

            this.auxiliarySku = auxiliarySku;
            return this;
        }
        @CustomType.Setter
        public Builder disableTcpStateTracking(@Nullable Boolean disableTcpStateTracking) {

            this.disableTcpStateTracking = disableTcpStateTracking;
            return this;
        }
        @CustomType.Setter
        public Builder dnsSettings(@Nullable NetworkInterfaceDnsSettingsResponse dnsSettings) {

            this.dnsSettings = dnsSettings;
            return this;
        }
        @CustomType.Setter
        public Builder dscpConfiguration(SubResourceResponse dscpConfiguration) {
            if (dscpConfiguration == null) {
              throw new MissingRequiredPropertyException("GetNetworkInterfaceResult", "dscpConfiguration");
            }
            this.dscpConfiguration = dscpConfiguration;
            return this;
        }
        @CustomType.Setter
        public Builder enableAcceleratedNetworking(@Nullable Boolean enableAcceleratedNetworking) {

            this.enableAcceleratedNetworking = enableAcceleratedNetworking;
            return this;
        }
        @CustomType.Setter
        public Builder enableIPForwarding(@Nullable Boolean enableIPForwarding) {

            this.enableIPForwarding = enableIPForwarding;
            return this;
        }
        @CustomType.Setter
        public Builder etag(String etag) {
            if (etag == null) {
              throw new MissingRequiredPropertyException("GetNetworkInterfaceResult", "etag");
            }
            this.etag = etag;
            return this;
        }
        @CustomType.Setter
        public Builder extendedLocation(@Nullable ExtendedLocationResponse extendedLocation) {

            this.extendedLocation = extendedLocation;
            return this;
        }
        @CustomType.Setter
        public Builder hostedWorkloads(List hostedWorkloads) {
            if (hostedWorkloads == null) {
              throw new MissingRequiredPropertyException("GetNetworkInterfaceResult", "hostedWorkloads");
            }
            this.hostedWorkloads = hostedWorkloads;
            return this;
        }
        public Builder hostedWorkloads(String... hostedWorkloads) {
            return hostedWorkloads(List.of(hostedWorkloads));
        }
        @CustomType.Setter
        public Builder id(@Nullable String id) {

            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder ipConfigurations(@Nullable List ipConfigurations) {

            this.ipConfigurations = ipConfigurations;
            return this;
        }
        public Builder ipConfigurations(NetworkInterfaceIPConfigurationResponse... ipConfigurations) {
            return ipConfigurations(List.of(ipConfigurations));
        }
        @CustomType.Setter
        public Builder location(@Nullable String location) {

            this.location = location;
            return this;
        }
        @CustomType.Setter
        public Builder macAddress(String macAddress) {
            if (macAddress == null) {
              throw new MissingRequiredPropertyException("GetNetworkInterfaceResult", "macAddress");
            }
            this.macAddress = macAddress;
            return this;
        }
        @CustomType.Setter
        public Builder migrationPhase(@Nullable String migrationPhase) {

            this.migrationPhase = migrationPhase;
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("GetNetworkInterfaceResult", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder networkSecurityGroup(@Nullable NetworkSecurityGroupResponse networkSecurityGroup) {

            this.networkSecurityGroup = networkSecurityGroup;
            return this;
        }
        @CustomType.Setter
        public Builder nicType(@Nullable String nicType) {

            this.nicType = nicType;
            return this;
        }
        @CustomType.Setter
        public Builder primary(Boolean primary) {
            if (primary == null) {
              throw new MissingRequiredPropertyException("GetNetworkInterfaceResult", "primary");
            }
            this.primary = primary;
            return this;
        }
        @CustomType.Setter
        public Builder privateEndpoint(PrivateEndpointResponse privateEndpoint) {
            if (privateEndpoint == null) {
              throw new MissingRequiredPropertyException("GetNetworkInterfaceResult", "privateEndpoint");
            }
            this.privateEndpoint = privateEndpoint;
            return this;
        }
        @CustomType.Setter
        public Builder privateLinkService(@Nullable PrivateLinkServiceResponse privateLinkService) {

            this.privateLinkService = privateLinkService;
            return this;
        }
        @CustomType.Setter
        public Builder provisioningState(String provisioningState) {
            if (provisioningState == null) {
              throw new MissingRequiredPropertyException("GetNetworkInterfaceResult", "provisioningState");
            }
            this.provisioningState = provisioningState;
            return this;
        }
        @CustomType.Setter
        public Builder resourceGuid(String resourceGuid) {
            if (resourceGuid == null) {
              throw new MissingRequiredPropertyException("GetNetworkInterfaceResult", "resourceGuid");
            }
            this.resourceGuid = resourceGuid;
            return this;
        }
        @CustomType.Setter
        public Builder tags(@Nullable Map tags) {

            this.tags = tags;
            return this;
        }
        @CustomType.Setter
        public Builder tapConfigurations(List tapConfigurations) {
            if (tapConfigurations == null) {
              throw new MissingRequiredPropertyException("GetNetworkInterfaceResult", "tapConfigurations");
            }
            this.tapConfigurations = tapConfigurations;
            return this;
        }
        public Builder tapConfigurations(NetworkInterfaceTapConfigurationResponse... tapConfigurations) {
            return tapConfigurations(List.of(tapConfigurations));
        }
        @CustomType.Setter
        public Builder type(String type) {
            if (type == null) {
              throw new MissingRequiredPropertyException("GetNetworkInterfaceResult", "type");
            }
            this.type = type;
            return this;
        }
        @CustomType.Setter
        public Builder virtualMachine(SubResourceResponse virtualMachine) {
            if (virtualMachine == null) {
              throw new MissingRequiredPropertyException("GetNetworkInterfaceResult", "virtualMachine");
            }
            this.virtualMachine = virtualMachine;
            return this;
        }
        @CustomType.Setter
        public Builder vnetEncryptionSupported(Boolean vnetEncryptionSupported) {
            if (vnetEncryptionSupported == null) {
              throw new MissingRequiredPropertyException("GetNetworkInterfaceResult", "vnetEncryptionSupported");
            }
            this.vnetEncryptionSupported = vnetEncryptionSupported;
            return this;
        }
        @CustomType.Setter
        public Builder workloadType(@Nullable String workloadType) {

            this.workloadType = workloadType;
            return this;
        }
        public GetNetworkInterfaceResult build() {
            final var _resultValue = new GetNetworkInterfaceResult();
            _resultValue.auxiliaryMode = auxiliaryMode;
            _resultValue.auxiliarySku = auxiliarySku;
            _resultValue.disableTcpStateTracking = disableTcpStateTracking;
            _resultValue.dnsSettings = dnsSettings;
            _resultValue.dscpConfiguration = dscpConfiguration;
            _resultValue.enableAcceleratedNetworking = enableAcceleratedNetworking;
            _resultValue.enableIPForwarding = enableIPForwarding;
            _resultValue.etag = etag;
            _resultValue.extendedLocation = extendedLocation;
            _resultValue.hostedWorkloads = hostedWorkloads;
            _resultValue.id = id;
            _resultValue.ipConfigurations = ipConfigurations;
            _resultValue.location = location;
            _resultValue.macAddress = macAddress;
            _resultValue.migrationPhase = migrationPhase;
            _resultValue.name = name;
            _resultValue.networkSecurityGroup = networkSecurityGroup;
            _resultValue.nicType = nicType;
            _resultValue.primary = primary;
            _resultValue.privateEndpoint = privateEndpoint;
            _resultValue.privateLinkService = privateLinkService;
            _resultValue.provisioningState = provisioningState;
            _resultValue.resourceGuid = resourceGuid;
            _resultValue.tags = tags;
            _resultValue.tapConfigurations = tapConfigurations;
            _resultValue.type = type;
            _resultValue.virtualMachine = virtualMachine;
            _resultValue.vnetEncryptionSupported = vnetEncryptionSupported;
            _resultValue.workloadType = workloadType;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy