Share via


SubnetResourceSettings Class

  • java.lang.Object
    • com.azure.resourcemanager.resourcemover.models.SubnetResourceSettings

Implements

public final class SubnetResourceSettings
implements JsonSerializable<SubnetResourceSettings>

Defines the virtual network subnets resource settings.

Constructor Summary

Constructor Description
SubnetResourceSettings()

Creates an instance of SubnetResourceSettings class.

Method Summary

Modifier and Type Method and Description
String addressPrefix()

Get the addressPrefix property: Gets or sets address prefix for the subnet.

static SubnetResourceSettings fromJson(JsonReader jsonReader)

Reads an instance of SubnetResourceSettings from the JsonReader.

String name()

Get the name property: Gets or sets the Subnet name.

NsgReference networkSecurityGroup()

Get the networkSecurityGroup property: Defines reference to NSG.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

SubnetResourceSettings withAddressPrefix(String addressPrefix)

Set the addressPrefix property: Gets or sets address prefix for the subnet.

SubnetResourceSettings withName(String name)

Set the name property: Gets or sets the Subnet name.

SubnetResourceSettings withNetworkSecurityGroup(NsgReference networkSecurityGroup)

Set the networkSecurityGroup property: Defines reference to NSG.

Methods inherited from java.lang.Object

Constructor Details

SubnetResourceSettings

public SubnetResourceSettings()

Creates an instance of SubnetResourceSettings class.

Method Details

addressPrefix

public String addressPrefix()

Get the addressPrefix property: Gets or sets address prefix for the subnet.

Returns:

the addressPrefix value.

fromJson

public static SubnetResourceSettings fromJson(JsonReader jsonReader)

Reads an instance of SubnetResourceSettings from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

name

public String name()

Get the name property: Gets or sets the Subnet name.

Returns:

the name value.

networkSecurityGroup

public NsgReference networkSecurityGroup()

Get the networkSecurityGroup property: Defines reference to NSG.

Returns:

the networkSecurityGroup value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAddressPrefix

public SubnetResourceSettings withAddressPrefix(String addressPrefix)

Set the addressPrefix property: Gets or sets address prefix for the subnet.

Parameters:

addressPrefix - the addressPrefix value to set.

Returns:

the SubnetResourceSettings object itself.

withName

public SubnetResourceSettings withName(String name)

Set the name property: Gets or sets the Subnet name.

Parameters:

name - the name value to set.

Returns:

the SubnetResourceSettings object itself.

withNetworkSecurityGroup

public SubnetResourceSettings withNetworkSecurityGroup(NsgReference networkSecurityGroup)

Set the networkSecurityGroup property: Defines reference to NSG.

Parameters:

networkSecurityGroup - the networkSecurityGroup value to set.

Returns:

the SubnetResourceSettings object itself.

Applies to