Class IpAddress
java.lang.Object
com.azure.resourcemanager.containerinstance.models.IpAddress
- All Implemented Interfaces:
com.azure.json.JsonSerializable<IpAddress>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the autoGeneratedDomainNameLabelScope property: The value representing the security enum.Get the dnsNameLabel property: The Dns name label for the IP.fqdn()Get the fqdn property: The FQDN for the IP.static IpAddressfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of IpAddress from the JsonReader.ip()Get the ip property: The IP exposed to the public internet.ports()Get the ports property: The list of ports exposed on the container group.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: Specifies if the IP is exposed to the public internet or private VNET.voidvalidate()Validates the instance.withAutoGeneratedDomainNameLabelScope(DnsNameLabelReusePolicy autoGeneratedDomainNameLabelScope) Set the autoGeneratedDomainNameLabelScope property: The value representing the security enum.withDnsNameLabel(String dnsNameLabel) Set the dnsNameLabel property: The Dns name label for the IP.Set the ip property: The IP exposed to the public internet.Set the ports property: The list of ports exposed on the container group.Set the type property: Specifies if the IP is exposed to the public internet or private VNET.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
IpAddress
public IpAddress()Creates an instance of IpAddress class.
-
-
Method Details
-
ports
-
withPorts
-
type
Get the type property: Specifies if the IP is exposed to the public internet or private VNET.- Returns:
- the type value.
-
withType
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
Get the ip property: The IP exposed to the public internet.- Returns:
- the ip value.
-
withIp
-
dnsNameLabel
Get the dnsNameLabel property: The Dns name label for the IP.- Returns:
- the dnsNameLabel value.
-
withDnsNameLabel
-
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:
- the autoGeneratedDomainNameLabelScope value.
-
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:
autoGeneratedDomainNameLabelScope- the autoGeneratedDomainNameLabelScope value to set.- Returns:
- the IpAddress object itself.
-
fqdn
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<IpAddress>- Throws:
IOException
-
fromJson
Reads an instance of IpAddress from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of IpAddress if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the IpAddress.
-