Class IpAddress
- java.lang.Object
-
- com.azure.resourcemanager.containerinstance.models.IpAddress
-
public final class IpAddress extends Object
IP address for the container group.
-
-
Constructor Summary
Constructors Constructor Description IpAddress()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringdnsNameLabel()Get the dnsNameLabel property: The Dns name label for the IP.Stringfqdn()Get the fqdn property: The FQDN for the IP.Stringip()Get the ip property: The IP exposed to the public internet.List<Port>ports()Get the ports property: The list of ports exposed on the container group.ContainerGroupIpAddressTypetype()Get the type property: Specifies if the IP is exposed to the public internet or private VNET.voidvalidate()Validates the instance.IpAddresswithDnsNameLabel(String dnsNameLabel)Set the dnsNameLabel property: The Dns name label for the IP.IpAddresswithIp(String ip)Set the ip property: The IP exposed to the public internet.IpAddresswithPorts(List<Port> ports)Set the ports property: The list of ports exposed on the container group.IpAddresswithType(ContainerGroupIpAddressType type)Set the type property: Specifies if the IP is exposed to the public internet or private VNET.
-
-
-
Method Detail
-
ports
public List<Port> ports()
Get the ports property: The list of ports exposed on the container group.- Returns:
- the ports value.
-
withPorts
public IpAddress withPorts(List<Port> ports)
Set the ports property: The list of ports exposed on the container group.- Parameters:
ports- the ports value to set.- Returns:
- the IpAddress object itself.
-
type
public ContainerGroupIpAddressType type()
Get the type property: Specifies if the IP is exposed to the public internet or private VNET.- Returns:
- the type value.
-
withType
public IpAddress withType(ContainerGroupIpAddressType type)
Set the type property: Specifies if the IP is exposed to the public internet or private VNET.- Parameters:
type- the type value to set.- Returns:
- the IpAddress object itself.
-
ip
public String ip()
Get the ip property: The IP exposed to the public internet.- Returns:
- the ip value.
-
withIp
public IpAddress withIp(String ip)
Set the ip property: The IP exposed to the public internet.- Parameters:
ip- the ip value to set.- Returns:
- the IpAddress object itself.
-
dnsNameLabel
public String dnsNameLabel()
Get the dnsNameLabel property: The Dns name label for the IP.- Returns:
- the dnsNameLabel value.
-
withDnsNameLabel
public IpAddress withDnsNameLabel(String dnsNameLabel)
Set the dnsNameLabel property: The Dns name label for the IP.- Parameters:
dnsNameLabel- the dnsNameLabel value to set.- Returns:
- the IpAddress object itself.
-
fqdn
public String fqdn()
Get the fqdn property: The FQDN for the IP.- Returns:
- the fqdn value.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-