InboundSecurityRuleProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.network.fluent.models.InboundSecurityRuleProperties

Implements

public final class InboundSecurityRuleProperties
implements JsonSerializable<InboundSecurityRuleProperties>

Properties of the Inbound Security Rules resource.

Constructor Summary

Constructor Description
InboundSecurityRuleProperties()

Creates an instance of InboundSecurityRuleProperties class.

Method Summary

Modifier and Type Method and Description
static InboundSecurityRuleProperties fromJson(JsonReader jsonReader)

Reads an instance of InboundSecurityRuleProperties from the JsonReader.

ProvisioningState provisioningState()

Get the provisioningState property: The provisioning state of the resource.

List<InboundSecurityRules> rules()

Get the rules property: List of allowed rules.

InboundSecurityRuleType ruleType()

Get the ruleType property: Rule Type.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

InboundSecurityRuleProperties withRules(List<InboundSecurityRules> rules)

Set the rules property: List of allowed rules.

InboundSecurityRuleProperties withRuleType(InboundSecurityRuleType ruleType)

Set the ruleType property: Rule Type.

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:

jsonReader - The JsonReader being read.

Returns:

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

provisioningState

public ProvisioningState provisioningState()

Get the provisioningState property: The provisioning state of the resource.

Returns:

the provisioningState value.

rules

public List<InboundSecurityRules> rules()

Get the rules property: List of allowed rules.

Returns:

the rules value.

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:

the ruleType value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withRules

public InboundSecurityRuleProperties withRules(List<InboundSecurityRules> rules)

Set the rules property: List of allowed rules.

Parameters:

rules - the rules value to set.

Returns:

the InboundSecurityRuleProperties object itself.

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:

ruleType - the ruleType value to set.

Returns:

the InboundSecurityRuleProperties object itself.

Applies to