RoutingRuleInner Class

public final class RoutingRuleInner
extends ChildResource

Network routing rule.

Constructor Summary

Constructor Description
RoutingRuleInner()

Creates an instance of RoutingRuleInner class.

Method Summary

Modifier and Type Method and Description
String description()

Get the description property: A description for this rule.

RoutingRuleRouteDestination destination()

Get the destination property: Indicates the destination for this particular rule.

String etag()

Get the etag property: A unique read-only string that changes whenever the resource is updated.

static RoutingRuleInner fromJson(JsonReader jsonReader)

Reads an instance of RoutingRuleInner from the JsonReader.

String id()

Get the id property: Fully qualified resource Id for the resource.

String name()

Get the name property: The name of the resource.

RoutingRuleNextHop nextHop()

Get the nextHop property: Indicates the next hop for this particular rule.

ProvisioningState provisioningState()

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

String resourceGuid()

Get the resourceGuid property: Unique identifier for this resource.

SystemData systemData()

Get the systemData property: The system metadata related to this resource.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

RoutingRuleInner withDescription(String description)

Set the description property: A description for this rule.

RoutingRuleInner withDestination(RoutingRuleRouteDestination destination)

Set the destination property: Indicates the destination for this particular rule.

RoutingRuleInner withNextHop(RoutingRuleNextHop nextHop)

Set the nextHop property: Indicates the next hop for this particular rule.

Methods inherited from ChildResource

Methods inherited from java.lang.Object

Constructor Details

RoutingRuleInner

public RoutingRuleInner()

Creates an instance of RoutingRuleInner class.

Method Details

description

public String description()

Get the description property: A description for this rule.

Returns:

the description value.

destination

public RoutingRuleRouteDestination destination()

Get the destination property: Indicates the destination for this particular rule.

Returns:

the destination value.

etag

public String etag()

Get the etag property: A unique read-only string that changes whenever the resource is updated.

Overrides:

RoutingRuleInner.etag()

Returns:

the etag value.

fromJson

public static RoutingRuleInner fromJson(JsonReader jsonReader)

Reads an instance of RoutingRuleInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of RoutingRuleInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

id

public String id()

Get the id property: Fully qualified resource Id for the resource.

Overrides:

RoutingRuleInner.id()

Returns:

the id value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

RoutingRuleInner.name()

Returns:

the name value.

nextHop

public RoutingRuleNextHop nextHop()

Get the nextHop property: Indicates the next hop for this particular rule.

Returns:

the nextHop value.

provisioningState

public ProvisioningState provisioningState()

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

Returns:

the provisioningState value.

resourceGuid

public String resourceGuid()

Get the resourceGuid property: Unique identifier for this resource.

Returns:

the resourceGuid value.

systemData

public SystemData systemData()

Get the systemData property: The system metadata related to this resource.

Returns:

the systemData value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

RoutingRuleInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

RoutingRuleInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

Overrides:

RoutingRuleInner.validate()

withDescription

public RoutingRuleInner withDescription(String description)

Set the description property: A description for this rule.

Parameters:

description - the description value to set.

Returns:

the RoutingRuleInner object itself.

withDestination

public RoutingRuleInner withDestination(RoutingRuleRouteDestination destination)

Set the destination property: Indicates the destination for this particular rule.

Parameters:

destination - the destination value to set.

Returns:

the RoutingRuleInner object itself.

withNextHop

public RoutingRuleInner withNextHop(RoutingRuleNextHop nextHop)

Set the nextHop property: Indicates the next hop for this particular rule.

Parameters:

nextHop - the nextHop value to set.

Returns:

the RoutingRuleInner object itself.

Applies to