Class VirtualIpMapping
java.lang.Object
com.azure.resourcemanager.appservice.models.VirtualIpMapping
- All Implemented Interfaces:
com.azure.json.JsonSerializable<VirtualIpMapping>
public final class VirtualIpMapping
extends Object
implements com.azure.json.JsonSerializable<VirtualIpMapping>
Virtual IP mapping.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic VirtualIpMapping
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of VirtualIpMapping from the JsonReader.Get the internalHttpPort property: Internal HTTP port.Get the internalHttpsPort property: Internal HTTPS port.inUse()
Get the inUse property: Is virtual IP mapping in use.Get the serviceName property: name of the service that virtual IP is assigned to.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.Get the virtualIp property: Virtual IP address.withInternalHttpPort
(Integer internalHttpPort) Set the internalHttpPort property: Internal HTTP port.withInternalHttpsPort
(Integer internalHttpsPort) Set the internalHttpsPort property: Internal HTTPS port.Set the inUse property: Is virtual IP mapping in use.withServiceName
(String serviceName) Set the serviceName property: name of the service that virtual IP is assigned to.withVirtualIp
(String virtualIp) Set the virtualIp property: Virtual IP address.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
VirtualIpMapping
public VirtualIpMapping()Creates an instance of VirtualIpMapping class.
-
-
Method Details
-
virtualIp
Get the virtualIp property: Virtual IP address.- Returns:
- the virtualIp value.
-
withVirtualIp
Set the virtualIp property: Virtual IP address.- Parameters:
virtualIp
- the virtualIp value to set.- Returns:
- the VirtualIpMapping object itself.
-
internalHttpPort
Get the internalHttpPort property: Internal HTTP port.- Returns:
- the internalHttpPort value.
-
withInternalHttpPort
Set the internalHttpPort property: Internal HTTP port.- Parameters:
internalHttpPort
- the internalHttpPort value to set.- Returns:
- the VirtualIpMapping object itself.
-
internalHttpsPort
Get the internalHttpsPort property: Internal HTTPS port.- Returns:
- the internalHttpsPort value.
-
withInternalHttpsPort
Set the internalHttpsPort property: Internal HTTPS port.- Parameters:
internalHttpsPort
- the internalHttpsPort value to set.- Returns:
- the VirtualIpMapping object itself.
-
inUse
Get the inUse property: Is virtual IP mapping in use.- Returns:
- the inUse value.
-
withInUse
Set the inUse property: Is virtual IP mapping in use.- Parameters:
inUse
- the inUse value to set.- Returns:
- the VirtualIpMapping object itself.
-
serviceName
Get the serviceName property: name of the service that virtual IP is assigned to.- Returns:
- the serviceName value.
-
withServiceName
Set the serviceName property: name of the service that virtual IP is assigned to.- Parameters:
serviceName
- the serviceName value to set.- Returns:
- the VirtualIpMapping object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<VirtualIpMapping>
- Throws:
IOException
-
fromJson
Reads an instance of VirtualIpMapping from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of VirtualIpMapping 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 VirtualIpMapping.
-