public final class IpAddress extends Object
| Constructor and Description |
|---|
IpAddress() |
| Modifier and Type | Method and Description |
|---|---|
String |
dnsNameLabel()
Get the dnsNameLabel property: The Dns name label for the IP.
|
String |
fqdn()
Get the fqdn property: The FQDN for the IP.
|
String |
ip()
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.
|
ContainerGroupIpAddressType |
type()
Get the type property: Specifies if the IP is exposed to the public internet or private VNET.
|
void |
validate()
Validates the instance.
|
IpAddress |
withDnsNameLabel(String dnsNameLabel)
Set the dnsNameLabel property: The Dns name label for the IP.
|
IpAddress |
withIp(String ip)
Set the ip property: The IP exposed to the public internet.
|
IpAddress |
withPorts(List<Port> ports)
Set the ports property: The list of ports exposed on the container group.
|
IpAddress |
withType(ContainerGroupIpAddressType type)
Set the type property: Specifies if the IP is exposed to the public internet or private VNET.
|
public List<Port> ports()
public IpAddress withPorts(List<Port> ports)
ports - the ports value to set.public ContainerGroupIpAddressType type()
public IpAddress withType(ContainerGroupIpAddressType type)
type - the type value to set.public String ip()
public IpAddress withIp(String ip)
ip - the ip value to set.public String dnsNameLabel()
public IpAddress withDnsNameLabel(String dnsNameLabel)
dnsNameLabel - the dnsNameLabel value to set.public String fqdn()
public void validate()
IllegalArgumentException - thrown if the instance is not valid.Copyright © 2021 Microsoft Corporation. All rights reserved.