InboundSecurityRuleInner Class

public final class InboundSecurityRuleInner
extends SubResource

NVA Inbound Security Rule resource.

Constructor Summary

Constructor Description
InboundSecurityRuleInner()

Creates an instance of InboundSecurityRuleInner class.

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 InboundSecurityRuleInner fromJson(JsonReader jsonReader)

Reads an instance of InboundSecurityRuleInner from the JsonReader.

String name()

Get the name property: Name of security rule collection.

ProvisioningState provisioningState()

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

InboundSecurityRuleType ruleType()

Get the ruleType property: Rule Type.

List<InboundSecurityRules> rules()

Get the rules property: List of allowed rules.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: NVA inbound security rule type.

void validate()

Validates the instance.

InboundSecurityRuleInner withId(String id)
InboundSecurityRuleInner withName(String name)

Set the name property: Name of security rule collection.

InboundSecurityRuleInner withRuleType(InboundSecurityRuleType ruleType)

Set the ruleType property: Rule Type.

InboundSecurityRuleInner 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:

the etag value.

fromJson

public static InboundSecurityRuleInner fromJson(JsonReader jsonReader)

Reads an instance of InboundSecurityRuleInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

name

public String name()

Get the name property: Name of security rule collection.

Returns:

the name value.

provisioningState

public ProvisioningState provisioningState()

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

Returns:

the provisioningState 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.

rules

public List rules()

Get the rules property: List of allowed rules.

Returns:

the rules value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

InboundSecurityRuleInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: NVA inbound security rule type.

Returns:

the type value.

validate

public void validate()

Validates the instance.

withId

public InboundSecurityRuleInner withId(String id)

Overrides:

InboundSecurityRuleInner.withId(String id)

Parameters:

id

withName

public InboundSecurityRuleInner withName(String name)

Set the name property: Name of security rule collection.

Parameters:

name - the name value to set.

Returns:

the InboundSecurityRuleInner object itself.

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:

ruleType - the ruleType value to set.

Returns:

the InboundSecurityRuleInner object itself.

withRules

public InboundSecurityRuleInner withRules(List rules)

Set the rules property: List of allowed rules.

Parameters:

rules - the rules value to set.

Returns:

the InboundSecurityRuleInner object itself.

Applies to