Class NetworkInterfaceProperties
java.lang.Object
com.azure.resourcemanager.devtestlabs.models.NetworkInterfaceProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<NetworkInterfaceProperties>
public final class NetworkInterfaceProperties
extends Object
implements com.azure.json.JsonSerializable<NetworkInterfaceProperties>
Properties of a network interface.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of NetworkInterfaceProperties class. -
Method Summary
Modifier and TypeMethodDescriptiondnsName()
Get the dnsName property: The DNS name.static NetworkInterfaceProperties
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of NetworkInterfaceProperties from the JsonReader.Get the privateIpAddress property: The private IP address.Get the publicIpAddress property: The public IP address.Get the publicIpAddressId property: The resource ID of the public IP address.Get the rdpAuthority property: The RdpAuthority property is a server DNS host name or IP address followed by the service port number for RDP (Remote Desktop Protocol).Get the sharedPublicIpAddressConfiguration property: The configuration for sharing a public IP address across multiple virtual machines.Get the sshAuthority property: The SshAuthority property is a server DNS host name or IP address followed by the service port number for SSH.subnetId()
Get the subnetId property: The resource ID of the sub net.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.Get the virtualNetworkId property: The resource ID of the virtual network.withDnsName
(String dnsName) Set the dnsName property: The DNS name.withPrivateIpAddress
(String privateIpAddress) Set the privateIpAddress property: The private IP address.withPublicIpAddress
(String publicIpAddress) Set the publicIpAddress property: The public IP address.withPublicIpAddressId
(String publicIpAddressId) Set the publicIpAddressId property: The resource ID of the public IP address.withRdpAuthority
(String rdpAuthority) Set the rdpAuthority property: The RdpAuthority property is a server DNS host name or IP address followed by the service port number for RDP (Remote Desktop Protocol).withSharedPublicIpAddressConfiguration
(SharedPublicIpAddressConfiguration sharedPublicIpAddressConfiguration) Set the sharedPublicIpAddressConfiguration property: The configuration for sharing a public IP address across multiple virtual machines.withSshAuthority
(String sshAuthority) Set the sshAuthority property: The SshAuthority property is a server DNS host name or IP address followed by the service port number for SSH.withSubnetId
(String subnetId) Set the subnetId property: The resource ID of the sub net.withVirtualNetworkId
(String virtualNetworkId) Set the virtualNetworkId property: The resource ID of the virtual network.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
-
NetworkInterfaceProperties
public NetworkInterfaceProperties()Creates an instance of NetworkInterfaceProperties class.
-
-
Method Details
-
virtualNetworkId
Get the virtualNetworkId property: The resource ID of the virtual network.- Returns:
- the virtualNetworkId value.
-
withVirtualNetworkId
Set the virtualNetworkId property: The resource ID of the virtual network.- Parameters:
virtualNetworkId
- the virtualNetworkId value to set.- Returns:
- the NetworkInterfaceProperties object itself.
-
subnetId
Get the subnetId property: The resource ID of the sub net.- Returns:
- the subnetId value.
-
withSubnetId
Set the subnetId property: The resource ID of the sub net.- Parameters:
subnetId
- the subnetId value to set.- Returns:
- the NetworkInterfaceProperties object itself.
-
publicIpAddressId
Get the publicIpAddressId property: The resource ID of the public IP address.- Returns:
- the publicIpAddressId value.
-
withPublicIpAddressId
Set the publicIpAddressId property: The resource ID of the public IP address.- Parameters:
publicIpAddressId
- the publicIpAddressId value to set.- Returns:
- the NetworkInterfaceProperties object itself.
-
publicIpAddress
Get the publicIpAddress property: The public IP address.- Returns:
- the publicIpAddress value.
-
withPublicIpAddress
Set the publicIpAddress property: The public IP address.- Parameters:
publicIpAddress
- the publicIpAddress value to set.- Returns:
- the NetworkInterfaceProperties object itself.
-
privateIpAddress
Get the privateIpAddress property: The private IP address.- Returns:
- the privateIpAddress value.
-
withPrivateIpAddress
Set the privateIpAddress property: The private IP address.- Parameters:
privateIpAddress
- the privateIpAddress value to set.- Returns:
- the NetworkInterfaceProperties object itself.
-
dnsName
Get the dnsName property: The DNS name.- Returns:
- the dnsName value.
-
withDnsName
Set the dnsName property: The DNS name.- Parameters:
dnsName
- the dnsName value to set.- Returns:
- the NetworkInterfaceProperties object itself.
-
rdpAuthority
Get the rdpAuthority property: The RdpAuthority property is a server DNS host name or IP address followed by the service port number for RDP (Remote Desktop Protocol).- Returns:
- the rdpAuthority value.
-
withRdpAuthority
Set the rdpAuthority property: The RdpAuthority property is a server DNS host name or IP address followed by the service port number for RDP (Remote Desktop Protocol).- Parameters:
rdpAuthority
- the rdpAuthority value to set.- Returns:
- the NetworkInterfaceProperties object itself.
-
sshAuthority
Get the sshAuthority property: The SshAuthority property is a server DNS host name or IP address followed by the service port number for SSH.- Returns:
- the sshAuthority value.
-
withSshAuthority
Set the sshAuthority property: The SshAuthority property is a server DNS host name or IP address followed by the service port number for SSH.- Parameters:
sshAuthority
- the sshAuthority value to set.- Returns:
- the NetworkInterfaceProperties 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<NetworkInterfaceProperties>
- Throws:
IOException
-
fromJson
public static NetworkInterfaceProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of NetworkInterfaceProperties from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of NetworkInterfaceProperties 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 NetworkInterfaceProperties.
-