SubnetResourceSettings Class
- java.
lang. Object - com.
azure. resourcemanager. resourcemover. models. SubnetResourceSettings
- com.
Implements
public final class SubnetResourceSettings
implements JsonSerializable<SubnetResourceSettings>
Defines the virtual network subnets resource settings.
Constructor Summary
| Constructor | Description |
|---|---|
| SubnetResourceSettings() |
Creates an instance of Subnet |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| String |
addressPrefix()
Get the address |
|
static
Subnet |
fromJson(JsonReader jsonReader)
Reads an instance of Subnet |
| String |
name()
Get the name property: Gets or sets the Subnet name. |
|
Nsg |
networkSecurityGroup()
Get the network |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Subnet |
withAddressPrefix(String addressPrefix)
Set the address |
|
Subnet |
withName(String name)
Set the name property: Gets or sets the Subnet name. |
|
Subnet |
withNetworkSecurityGroup(NsgReference networkSecurityGroup)
Set the network |
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:
fromJson
public static SubnetResourceSettings fromJson(JsonReader jsonReader)
Reads an instance of SubnetResourceSettings from the JsonReader.
Parameters:
Returns:
Throws:
name
public String name()
Get the name property: Gets or sets the Subnet name.
Returns:
networkSecurityGroup
public NsgReference networkSecurityGroup()
Get the networkSecurityGroup property: Defines reference to NSG.
Returns:
toJson
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:
Returns:
withName
public SubnetResourceSettings withName(String name)
Set the name property: Gets or sets the Subnet name.
Parameters:
Returns:
withNetworkSecurityGroup
public SubnetResourceSettings withNetworkSecurityGroup(NsgReference networkSecurityGroup)
Set the networkSecurityGroup property: Defines reference to NSG.
Parameters:
Returns: