SubnetAssociation Class
- java.
lang. Object - com.
azure. resourcemanager. network. models. SubnetAssociation
- com.
Implements
public final class SubnetAssociation
implements JsonSerializable<SubnetAssociation>
Subnet and it's custom security rules.
Constructor Summary
Constructor | Description |
---|---|
SubnetAssociation() |
Creates an instance of Subnet |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Subnet |
fromJson(JsonReader jsonReader)
Reads an instance of Subnet |
String |
id()
Get the id property: Subnet ID. |
List<Security |
securityRules()
Get the security |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Subnet |
withSecurityRules(List<SecurityRuleInner> securityRules)
Set the security |
Methods inherited from java.lang.Object
Constructor Details
SubnetAssociation
public SubnetAssociation()
Creates an instance of SubnetAssociation class.
Method Details
fromJson
public static SubnetAssociation fromJson(JsonReader jsonReader)
Reads an instance of SubnetAssociation from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: Subnet ID.
Returns:
securityRules
public List
Get the securityRules property: Collection of custom security rules.
Returns:
toJson
validate
public void validate()
Validates the instance.
withSecurityRules
public SubnetAssociation withSecurityRules(List
Set the securityRules property: Collection of custom security rules.
Parameters:
Returns:
Applies to
Azure SDK for Java