Class NetworkInterfaceIpConfigurationInner

java.lang.Object
com.azure.core.management.SubResource
com.azure.resourcemanager.network.fluent.models.NetworkInterfaceIpConfigurationInner
All Implemented Interfaces:
com.azure.json.JsonSerializable<com.azure.core.management.SubResource>

public final class NetworkInterfaceIpConfigurationInner extends com.azure.core.management.SubResource
IPConfiguration in a network interface.
  • Constructor Details

    • NetworkInterfaceIpConfigurationInner

      public NetworkInterfaceIpConfigurationInner()
      Creates an instance of NetworkInterfaceIpConfigurationInner class.
  • Method Details

    • name

      public String name()
      Get the name property: The name of the resource that is unique within a resource group. This name can be used to access the resource.
      Returns:
      the name value.
    • withName

      Set the name property: The name of the resource that is unique within a resource group. This name can be used to access the resource.
      Parameters:
      name - the name value to set.
      Returns:
      the NetworkInterfaceIpConfigurationInner object itself.
    • etag

      public String etag()
      Get the etag property: A unique read-only string that changes whenever the resource is updated.
      Returns:
      the etag value.
    • type

      public String type()
      Get the type property: Resource type.
      Returns:
      the type value.
    • withType

      Set the type property: Resource type.
      Parameters:
      type - the type value to set.
      Returns:
      the NetworkInterfaceIpConfigurationInner object itself.
    • withId

      Overrides:
      withId in class com.azure.core.management.SubResource
    • gatewayLoadBalancer

      public com.azure.core.management.SubResource gatewayLoadBalancer()
      Get the gatewayLoadBalancer property: The reference to gateway load balancer frontend IP.
      Returns:
      the gatewayLoadBalancer value.
    • withGatewayLoadBalancer

      public NetworkInterfaceIpConfigurationInner withGatewayLoadBalancer(com.azure.core.management.SubResource gatewayLoadBalancer)
      Set the gatewayLoadBalancer property: The reference to gateway load balancer frontend IP.
      Parameters:
      gatewayLoadBalancer - the gatewayLoadBalancer value to set.
      Returns:
      the NetworkInterfaceIpConfigurationInner object itself.
    • virtualNetworkTaps

      public List<VirtualNetworkTapInner> virtualNetworkTaps()
      Get the virtualNetworkTaps property: The reference to Virtual Network Taps.
      Returns:
      the virtualNetworkTaps value.
    • withVirtualNetworkTaps

      public NetworkInterfaceIpConfigurationInner withVirtualNetworkTaps(List<VirtualNetworkTapInner> virtualNetworkTaps)
      Set the virtualNetworkTaps property: The reference to Virtual Network Taps.
      Parameters:
      virtualNetworkTaps - the virtualNetworkTaps value to set.
      Returns:
      the NetworkInterfaceIpConfigurationInner object itself.
    • applicationGatewayBackendAddressPools

      public List<ApplicationGatewayBackendAddressPool> applicationGatewayBackendAddressPools()
      Get the applicationGatewayBackendAddressPools property: The reference to ApplicationGatewayBackendAddressPool resource.
      Returns:
      the applicationGatewayBackendAddressPools value.
    • withApplicationGatewayBackendAddressPools

      public NetworkInterfaceIpConfigurationInner withApplicationGatewayBackendAddressPools(List<ApplicationGatewayBackendAddressPool> applicationGatewayBackendAddressPools)
      Set the applicationGatewayBackendAddressPools property: The reference to ApplicationGatewayBackendAddressPool resource.
      Parameters:
      applicationGatewayBackendAddressPools - the applicationGatewayBackendAddressPools value to set.
      Returns:
      the NetworkInterfaceIpConfigurationInner object itself.
    • loadBalancerBackendAddressPools

      public List<BackendAddressPoolInner> loadBalancerBackendAddressPools()
      Get the loadBalancerBackendAddressPools property: The reference to LoadBalancerBackendAddressPool resource.
      Returns:
      the loadBalancerBackendAddressPools value.
    • withLoadBalancerBackendAddressPools

      public NetworkInterfaceIpConfigurationInner withLoadBalancerBackendAddressPools(List<BackendAddressPoolInner> loadBalancerBackendAddressPools)
      Set the loadBalancerBackendAddressPools property: The reference to LoadBalancerBackendAddressPool resource.
      Parameters:
      loadBalancerBackendAddressPools - the loadBalancerBackendAddressPools value to set.
      Returns:
      the NetworkInterfaceIpConfigurationInner object itself.
    • loadBalancerInboundNatRules

      public List<InboundNatRuleInner> loadBalancerInboundNatRules()
      Get the loadBalancerInboundNatRules property: A list of references of LoadBalancerInboundNatRules.
      Returns:
      the loadBalancerInboundNatRules value.
    • withLoadBalancerInboundNatRules

      public NetworkInterfaceIpConfigurationInner withLoadBalancerInboundNatRules(List<InboundNatRuleInner> loadBalancerInboundNatRules)
      Set the loadBalancerInboundNatRules property: A list of references of LoadBalancerInboundNatRules.
      Parameters:
      loadBalancerInboundNatRules - the loadBalancerInboundNatRules value to set.
      Returns:
      the NetworkInterfaceIpConfigurationInner object itself.
    • privateIpAddress

      public String privateIpAddress()
      Get the privateIpAddress property: Private IP address of the IP configuration. It can be a single IP address or a CIDR block in the format <address>/<prefix-length>.
      Returns:
      the privateIpAddress value.
    • withPrivateIpAddress

      public NetworkInterfaceIpConfigurationInner withPrivateIpAddress(String privateIpAddress)
      Set the privateIpAddress property: Private IP address of the IP configuration. It can be a single IP address or a CIDR block in the format <address>/<prefix-length>.
      Parameters:
      privateIpAddress - the privateIpAddress value to set.
      Returns:
      the NetworkInterfaceIpConfigurationInner object itself.
    • privateIpAddressPrefixLength

      public Integer privateIpAddressPrefixLength()
      Get the privateIpAddressPrefixLength property: The private IP address prefix length. If specified and the allocation method is dynamic, the service will allocate a CIDR block instead of a single IP address.
      Returns:
      the privateIpAddressPrefixLength value.
    • withPrivateIpAddressPrefixLength

      public NetworkInterfaceIpConfigurationInner withPrivateIpAddressPrefixLength(Integer privateIpAddressPrefixLength)
      Set the privateIpAddressPrefixLength property: The private IP address prefix length. If specified and the allocation method is dynamic, the service will allocate a CIDR block instead of a single IP address.
      Parameters:
      privateIpAddressPrefixLength - the privateIpAddressPrefixLength value to set.
      Returns:
      the NetworkInterfaceIpConfigurationInner object itself.
    • privateIpAllocationMethod

      public IpAllocationMethod privateIpAllocationMethod()
      Get the privateIpAllocationMethod property: The private IP address allocation method.
      Returns:
      the privateIpAllocationMethod value.
    • withPrivateIpAllocationMethod

      public NetworkInterfaceIpConfigurationInner withPrivateIpAllocationMethod(IpAllocationMethod privateIpAllocationMethod)
      Set the privateIpAllocationMethod property: The private IP address allocation method.
      Parameters:
      privateIpAllocationMethod - the privateIpAllocationMethod value to set.
      Returns:
      the NetworkInterfaceIpConfigurationInner object itself.
    • privateIpAddressVersion

      public IpVersion privateIpAddressVersion()
      Get the privateIpAddressVersion property: Whether the specific IP configuration is IPv4 or IPv6. Default is IPv4.
      Returns:
      the privateIpAddressVersion value.
    • withPrivateIpAddressVersion

      public NetworkInterfaceIpConfigurationInner withPrivateIpAddressVersion(IpVersion privateIpAddressVersion)
      Set the privateIpAddressVersion property: Whether the specific IP configuration is IPv4 or IPv6. Default is IPv4.
      Parameters:
      privateIpAddressVersion - the privateIpAddressVersion value to set.
      Returns:
      the NetworkInterfaceIpConfigurationInner object itself.
    • subnet

      public SubnetInner subnet()
      Get the subnet property: Subnet bound to the IP configuration.
      Returns:
      the subnet value.
    • withSubnet

      Set the subnet property: Subnet bound to the IP configuration.
      Parameters:
      subnet - the subnet value to set.
      Returns:
      the NetworkInterfaceIpConfigurationInner object itself.
    • primary

      public Boolean primary()
      Get the primary property: Whether this is a primary customer address on the network interface.
      Returns:
      the primary value.
    • withPrimary

      public NetworkInterfaceIpConfigurationInner withPrimary(Boolean primary)
      Set the primary property: Whether this is a primary customer address on the network interface.
      Parameters:
      primary - the primary value to set.
      Returns:
      the NetworkInterfaceIpConfigurationInner object itself.
    • publicIpAddress

      public PublicIpAddressInner publicIpAddress()
      Get the publicIpAddress property: Public IP address bound to the IP configuration.
      Returns:
      the publicIpAddress value.
    • withPublicIpAddress

      public NetworkInterfaceIpConfigurationInner withPublicIpAddress(PublicIpAddressInner publicIpAddress)
      Set the publicIpAddress property: Public IP address bound to the IP configuration.
      Parameters:
      publicIpAddress - the publicIpAddress value to set.
      Returns:
      the NetworkInterfaceIpConfigurationInner object itself.
    • applicationSecurityGroups

      public List<ApplicationSecurityGroupInner> applicationSecurityGroups()
      Get the applicationSecurityGroups property: Application security groups in which the IP configuration is included.
      Returns:
      the applicationSecurityGroups value.
    • withApplicationSecurityGroups

      public NetworkInterfaceIpConfigurationInner withApplicationSecurityGroups(List<ApplicationSecurityGroupInner> applicationSecurityGroups)
      Set the applicationSecurityGroups property: Application security groups in which the IP configuration is included.
      Parameters:
      applicationSecurityGroups - the applicationSecurityGroups value to set.
      Returns:
      the NetworkInterfaceIpConfigurationInner object itself.
    • provisioningState

      public ProvisioningState provisioningState()
      Get the provisioningState property: The provisioning state of the network interface IP configuration.
      Returns:
      the provisioningState value.
    • privateLinkConnectionProperties

      public NetworkInterfaceIpConfigurationPrivateLinkConnectionProperties privateLinkConnectionProperties()
      Get the privateLinkConnectionProperties property: PrivateLinkConnection properties for the network interface.
      Returns:
      the privateLinkConnectionProperties value.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<com.azure.core.management.SubResource>
      Overrides:
      toJson in class com.azure.core.management.SubResource
      Throws:
      IOException
    • fromJson

      public static NetworkInterfaceIpConfigurationInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of NetworkInterfaceIpConfigurationInner from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of NetworkInterfaceIpConfigurationInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IOException - If an error occurs while reading the NetworkInterfaceIpConfigurationInner.