Share via


SubnetResourceSettings Class

  • java.lang.Object
    • com.microsoft.azure.management.resourcemover.v2021_01_01.SubnetResourceSettings

public class SubnetResourceSettings

Defines the virtual network subnets resource settings.

Constructor Summary

Constructor Description
SubnetResourceSettings()

Method Summary

Modifier and Type Method and Description
java.lang.String addressPrefix()

Get gets or sets address prefix for the subnet.

java.lang.String name()

Get gets or sets the Subnet name.

NsgReference networkSecurityGroup()

Get the networkSecurityGroup value.

SubnetResourceSettings withAddressPrefix(String addressPrefix)

Set gets or sets address prefix for the subnet.

SubnetResourceSettings withName(String name)

Set gets or sets the Subnet name.

SubnetResourceSettings withNetworkSecurityGroup(NsgReference networkSecurityGroup)

Set the networkSecurityGroup value.

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Constructor Details

SubnetResourceSettings

public SubnetResourceSettings()

Method Details

addressPrefix

public String addressPrefix()

Get gets or sets address prefix for the subnet.

Returns:

the addressPrefix value

name

public String name()

Get gets or sets the Subnet name.

Returns:

the name value

networkSecurityGroup

public NsgReference networkSecurityGroup()

Get the networkSecurityGroup value.

Returns:

the networkSecurityGroup value

withAddressPrefix

public SubnetResourceSettings withAddressPrefix(String addressPrefix)

Set 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 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 value.

Parameters:

networkSecurityGroup - the networkSecurityGroup value to set

Returns:

the SubnetResourceSettings object itself.

Applies to