InboundSecurityRuleProperties Class
- java.
lang. Object - com.
azure. resourcemanager. network. fluent. models. InboundSecurityRuleProperties
- com.
Implements
public final class InboundSecurityRuleProperties
implements JsonSerializable<InboundSecurityRuleProperties>
Properties of the Inbound Security Rules resource.
Constructor Summary
| Constructor | Description |
|---|---|
| InboundSecurityRuleProperties() |
Creates an instance of Inbound |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Inbound |
fromJson(JsonReader jsonReader)
Reads an instance of Inbound |
|
Provisioning |
provisioningState()
Get the provisioning |
|
List<Inbound |
rules()
Get the rules property: List of allowed rules. |
|
Inbound |
ruleType()
Get the rule |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Inbound |
withRules(List<InboundSecurityRules> rules)
Set the rules property: List of allowed rules. |
|
Inbound |
withRuleType(InboundSecurityRuleType ruleType)
Set the rule |
Methods inherited from java.lang.Object
Constructor Details
InboundSecurityRuleProperties
public InboundSecurityRuleProperties()
Creates an instance of InboundSecurityRuleProperties class.
Method Details
fromJson
public static InboundSecurityRuleProperties fromJson(JsonReader jsonReader)
Reads an instance of InboundSecurityRuleProperties from the JsonReader.
Parameters:
Returns:
Throws:
provisioningState
public ProvisioningState provisioningState()
Get the provisioningState property: The provisioning state of the resource.
Returns:
rules
public List<InboundSecurityRules> rules()
Get the rules property: List of allowed rules.
Returns:
ruleType
public InboundSecurityRuleType ruleType()
Get the ruleType property: Rule Type. This should be either AutoExpire or Permanent. Auto Expire Rule only creates NSG rules. Permanent Rule creates NSG rule and SLB LB Rule.
Returns:
toJson
validate
public void validate()
Validates the instance.
withRules
public InboundSecurityRuleProperties withRules(List<InboundSecurityRules> rules)
Set the rules property: List of allowed rules.
Parameters:
Returns:
withRuleType
public InboundSecurityRuleProperties withRuleType(InboundSecurityRuleType ruleType)
Set the ruleType property: Rule Type. This should be either AutoExpire or Permanent. Auto Expire Rule only creates NSG rules. Permanent Rule creates NSG rule and SLB LB Rule.
Parameters:
Returns: