IpAddress Class
- java.
lang. Object - com.
azure. resourcemanager. containerinstance. models. IpAddress
- com.
Implements
public final class IpAddress
implements JsonSerializable<IpAddress>
IP address for the container group.
Constructor Summary
Constructor | Description |
---|---|
IpAddress() |
Creates an instance of Ip |
Method Summary
Modifier and Type | Method and Description |
---|---|
Dns |
autoGeneratedDomainNameLabelScope()
Get the auto |
String |
dnsNameLabel()
Get the dns |
String |
fqdn()
Get the fqdn property: The FQDN for the IP. |
static
Ip |
fromJson(JsonReader jsonReader)
Reads an instance of 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. |
Json |
toJson(JsonWriter jsonWriter) |
Container |
type()
Get the type property: Specifies if the IP is exposed to the public internet or private VNET. |
void |
validate()
Validates the instance. |
Ip |
withAutoGeneratedDomainNameLabelScope(DnsNameLabelReusePolicy autoGeneratedDomainNameLabelScope)
Set the auto |
Ip |
withDnsNameLabel(String dnsNameLabel)
Set the dns |
Ip |
withIp(String ip)
Set the ip property: The IP exposed to the public internet. |
Ip |
withPorts(List<Port> ports)
Set the ports property: The list of ports exposed on the container group. |
Ip |
withType(ContainerGroupIpAddressType type)
Set the type property: Specifies if the IP is exposed to the public internet or private VNET. |
Methods inherited from java.lang.Object
Constructor Details
IpAddress
public IpAddress()
Creates an instance of IpAddress class.
Method Details
autoGeneratedDomainNameLabelScope
public DnsNameLabelReusePolicy autoGeneratedDomainNameLabelScope()
Get the autoGeneratedDomainNameLabelScope property: The value representing the security enum. The 'Unsecure' value is the default value if not selected and means the object's domain name label is not secured against subdomain takeover. The 'TenantReuse' value is the default value if selected and means the object's domain name label can be reused within the same tenant. The 'SubscriptionReuse' value means the object's domain name label can be reused within the same subscription. The 'ResourceGroupReuse' value means the object's domain name label can be reused within the same resource group. The 'NoReuse' value means the object's domain name label cannot be reused within the same resource group, subscription, or tenant.
Returns:
dnsNameLabel
public String dnsNameLabel()
Get the dnsNameLabel property: The Dns name label for the IP.
Returns:
fqdn
public String fqdn()
Get the fqdn property: The FQDN for the IP.
Returns:
fromJson
public static IpAddress fromJson(JsonReader jsonReader)
Reads an instance of IpAddress from the JsonReader.
Parameters:
Returns:
Throws:
ip
public String ip()
Get the ip property: The IP exposed to the public internet.
Returns:
ports
public List
Get the ports property: The list of ports exposed on the container group.
Returns:
toJson
type
public ContainerGroupIpAddressType type()
Get the type property: Specifies if the IP is exposed to the public internet or private VNET.
Returns:
validate
public void validate()
Validates the instance.
withAutoGeneratedDomainNameLabelScope
public IpAddress withAutoGeneratedDomainNameLabelScope(DnsNameLabelReusePolicy autoGeneratedDomainNameLabelScope)
Set the autoGeneratedDomainNameLabelScope property: The value representing the security enum. The 'Unsecure' value is the default value if not selected and means the object's domain name label is not secured against subdomain takeover. The 'TenantReuse' value is the default value if selected and means the object's domain name label can be reused within the same tenant. The 'SubscriptionReuse' value means the object's domain name label can be reused within the same subscription. The 'ResourceGroupReuse' value means the object's domain name label can be reused within the same resource group. The 'NoReuse' value means the object's domain name label cannot be reused within the same resource group, subscription, or tenant.
Parameters:
Returns:
withDnsNameLabel
public IpAddress withDnsNameLabel(String dnsNameLabel)
Set the dnsNameLabel property: The Dns name label for the IP.
Parameters:
Returns:
withIp
public IpAddress withIp(String ip)
Set the ip property: The IP exposed to the public internet.
Parameters:
Returns:
withPorts
public IpAddress withPorts(List
Set the ports property: The list of ports exposed on the container group.
Parameters:
Returns:
withType
public IpAddress withType(ContainerGroupIpAddressType type)
Set the type property: Specifies if the IP is exposed to the public internet or private VNET.
Parameters:
Returns:
Applies to
Azure SDK for Java