InboundSecurityRuleInner Class
- java.
lang. Object - com.
azure. core. management. SubResource - com.
azure. resourcemanager. network. fluent. models. InboundSecurityRuleInner
- com.
- com.
public final class InboundSecurityRuleInner
extends SubResource
NVA Inbound Security Rule resource.
Constructor Summary
Constructor | Description |
---|---|
InboundSecurityRuleInner() |
Creates an instance of Inbound |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
etag()
Get the etag property: A unique read-only string that changes whenever the resource is updated. |
static
Inbound |
fromJson(JsonReader jsonReader)
Reads an instance of Inbound |
String |
name()
Get the name property: Name of security rule collection. |
Provisioning |
provisioningState()
Get the provisioning |
Inbound |
ruleType()
Get the rule |
List<Inbound |
rules()
Get the rules property: List of allowed rules. |
Json |
toJson(JsonWriter jsonWriter) |
String |
type()
Get the type property: NVA inbound security rule type. |
void |
validate()
Validates the instance. |
Inbound |
withId(String id) |
Inbound |
withName(String name)
Set the name property: Name of security rule collection. |
Inbound |
withRuleType(InboundSecurityRuleType ruleType)
Set the rule |
Inbound |
withRules(List<InboundSecurityRules> rules)
Set the rules property: List of allowed rules. |
Methods inherited from SubResource
Methods inherited from java.lang.Object
Constructor Details
InboundSecurityRuleInner
public InboundSecurityRuleInner()
Creates an instance of InboundSecurityRuleInner class.
Method Details
etag
public String etag()
Get the etag property: A unique read-only string that changes whenever the resource is updated.
Returns:
fromJson
public static InboundSecurityRuleInner fromJson(JsonReader jsonReader)
Reads an instance of InboundSecurityRuleInner from the JsonReader.
Parameters:
Returns:
Throws:
name
public String name()
Get the name property: Name of security rule collection.
Returns:
provisioningState
public ProvisioningState provisioningState()
Get the provisioningState property: The provisioning state of the resource.
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:
rules
public List
Get the rules property: List of allowed rules.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
InboundSecurityRuleInner.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: NVA inbound security rule type.
Returns:
validate
public void validate()
Validates the instance.
withId
public InboundSecurityRuleInner withId(String id)
Overrides:
InboundSecurityRuleInner.withId(String id)Parameters:
withName
public InboundSecurityRuleInner withName(String name)
Set the name property: Name of security rule collection.
Parameters:
Returns:
withRuleType
public InboundSecurityRuleInner 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:
withRules
public InboundSecurityRuleInner withRules(List
Set the rules property: List of allowed rules.
Parameters:
Returns:
Applies to
Azure SDK for Java