Share via


NetworkInterfaceResourceSettings Class

public final class NetworkInterfaceResourceSettings
extends ResourceSettings

Defines the network interface resource settings.

Constructor Summary

Constructor Description
NetworkInterfaceResourceSettings()

Creates an instance of NetworkInterfaceResourceSettings class.

Method Summary

Modifier and Type Method and Description
Boolean enableAcceleratedNetworking()

Get the enableAcceleratedNetworking property: Gets or sets a value indicating whether accelerated networking is enabled.

static NetworkInterfaceResourceSettings fromJson(JsonReader jsonReader)

Reads an instance of NetworkInterfaceResourceSettings from the JsonReader.

List<NicIpConfigurationResourceSettings> ipConfigurations()

Get the ipConfigurations property: Gets or sets the IP configurations of the NIC.

String resourceType()

Get the resourceType property: The resource type.

Map<String,String> tags()

Get the tags property: Gets or sets the Resource tags.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

NetworkInterfaceResourceSettings withEnableAcceleratedNetworking(Boolean enableAcceleratedNetworking)

Set the enableAcceleratedNetworking property: Gets or sets a value indicating whether accelerated networking is enabled.

NetworkInterfaceResourceSettings withIpConfigurations(List<NicIpConfigurationResourceSettings> ipConfigurations)

Set the ipConfigurations property: Gets or sets the IP configurations of the NIC.

NetworkInterfaceResourceSettings withTags(Map<String,String> tags)

Set the tags property: Gets or sets the Resource tags.

NetworkInterfaceResourceSettings withTargetResourceGroupName(String targetResourceGroupName)

Set the targetResourceGroupName property: Gets or sets the target resource group name.

NetworkInterfaceResourceSettings withTargetResourceName(String targetResourceName)

Set the targetResourceName property: Gets or sets the target Resource name.

Methods inherited from ResourceSettings

Methods inherited from java.lang.Object

Constructor Details

NetworkInterfaceResourceSettings

public NetworkInterfaceResourceSettings()

Creates an instance of NetworkInterfaceResourceSettings class.

Method Details

enableAcceleratedNetworking

public Boolean enableAcceleratedNetworking()

Get the enableAcceleratedNetworking property: Gets or sets a value indicating whether accelerated networking is enabled.

Returns:

the enableAcceleratedNetworking value.

fromJson

public static NetworkInterfaceResourceSettings fromJson(JsonReader jsonReader)

Reads an instance of NetworkInterfaceResourceSettings from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of NetworkInterfaceResourceSettings 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 NetworkInterfaceResourceSettings.

ipConfigurations

public List<NicIpConfigurationResourceSettings> ipConfigurations()

Get the ipConfigurations property: Gets or sets the IP configurations of the NIC.

Returns:

the ipConfigurations value.

resourceType

public String resourceType()

Get the resourceType property: The resource type. For example, the value can be Microsoft.Compute/virtualMachines.

Overrides:

NetworkInterfaceResourceSettings.resourceType()

Returns:

the resourceType value.

tags

public Map<String,String> tags()

Get the tags property: Gets or sets the Resource tags.

Returns:

the tags value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

NetworkInterfaceResourceSettings.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

NetworkInterfaceResourceSettings.validate()

withEnableAcceleratedNetworking

public NetworkInterfaceResourceSettings withEnableAcceleratedNetworking(Boolean enableAcceleratedNetworking)

Set the enableAcceleratedNetworking property: Gets or sets a value indicating whether accelerated networking is enabled.

Parameters:

enableAcceleratedNetworking - the enableAcceleratedNetworking value to set.

Returns:

the NetworkInterfaceResourceSettings object itself.

withIpConfigurations

public NetworkInterfaceResourceSettings withIpConfigurations(List<NicIpConfigurationResourceSettings> ipConfigurations)

Set the ipConfigurations property: Gets or sets the IP configurations of the NIC.

Parameters:

ipConfigurations - the ipConfigurations value to set.

Returns:

the NetworkInterfaceResourceSettings object itself.

withTags

public NetworkInterfaceResourceSettings withTags(Map<String,String> tags)

Set the tags property: Gets or sets the Resource tags.

Parameters:

tags - the tags value to set.

Returns:

the NetworkInterfaceResourceSettings object itself.

withTargetResourceGroupName

public NetworkInterfaceResourceSettings withTargetResourceGroupName(String targetResourceGroupName)

Set the targetResourceGroupName property: Gets or sets the target resource group name.

Overrides:

NetworkInterfaceResourceSettings.withTargetResourceGroupName(String targetResourceGroupName)

Parameters:

targetResourceGroupName

withTargetResourceName

public NetworkInterfaceResourceSettings withTargetResourceName(String targetResourceName)

Set the targetResourceName property: Gets or sets the target Resource name.

Overrides:

NetworkInterfaceResourceSettings.withTargetResourceName(String targetResourceName)

Parameters:

targetResourceName

Applies to