BgpServiceCommunityInner Class

public final class BgpServiceCommunityInner
extends Resource

Service Community Properties.

Method Summary

Modifier and Type Method and Description
List<BgpCommunity> bgpCommunities()

Get the bgpCommunities property: A list of bgp communities.

static BgpServiceCommunityInner fromJson(JsonReader jsonReader)

Reads an instance of BgpServiceCommunityInner from the JsonReader.

String id()

Get the id property: Resource ID.

String name()

Get the name property: The name of the resource.

String serviceName()

Get the serviceName property: The name of the bgp community.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

Methods inherited from ProxyResource

Methods inherited from Resource

Methods inherited from java.lang.Object

Method Details

bgpCommunities

public List<BgpCommunity> bgpCommunities()

Get the bgpCommunities property: A list of bgp communities.

Returns:

the bgpCommunities value.

fromJson

public static BgpServiceCommunityInner fromJson(JsonReader jsonReader)

Reads an instance of BgpServiceCommunityInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of BgpServiceCommunityInner 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: Resource ID.

Overrides:

BgpServiceCommunityInner.id()

Returns:

the id value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

BgpServiceCommunityInner.name()

Returns:

the name value.

serviceName

public String serviceName()

Get the serviceName property: The name of the bgp community. e.g. Skype.

Returns:

the serviceName value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

BgpServiceCommunityInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

BgpServiceCommunityInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

Applies to