BgpServiceCommunityInner Class

public final class BgpServiceCommunityInner
extends Resource

Service Community Properties.

Constructor Summary

Constructor Description
BgpServiceCommunityInner()

Creates an instance of BgpServiceCommunityInner class.

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.

BgpServiceCommunityInner withBgpCommunities(List<BgpCommunity> bgpCommunities)

Set the bgpCommunities property: A list of bgp communities.

BgpServiceCommunityInner withId(String id)

Set the id property: Resource ID.

BgpServiceCommunityInner withLocation(String location)
BgpServiceCommunityInner withServiceName(String serviceName)

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

BgpServiceCommunityInner withTags(Map<String,String> tags)

Methods inherited from ProxyResource

Methods inherited from Resource

Methods inherited from java.lang.Object

Constructor Details

BgpServiceCommunityInner

public BgpServiceCommunityInner()

Creates an instance of BgpServiceCommunityInner class.

Method Details

bgpCommunities

public List 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.

withBgpCommunities

public BgpServiceCommunityInner withBgpCommunities(List bgpCommunities)

Set the bgpCommunities property: A list of bgp communities.

Parameters:

bgpCommunities - the bgpCommunities value to set.

Returns:

the BgpServiceCommunityInner object itself.

withId

public BgpServiceCommunityInner withId(String id)

Set the id property: Resource ID.

Parameters:

id - the id value to set.

Returns:

the BgpServiceCommunityInner object itself.

withLocation

public BgpServiceCommunityInner withLocation(String location)

Overrides:

BgpServiceCommunityInner.withLocation(String location)

Parameters:

location

withServiceName

public BgpServiceCommunityInner withServiceName(String serviceName)

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

Parameters:

serviceName - the serviceName value to set.

Returns:

the BgpServiceCommunityInner object itself.

withTags

public BgpServiceCommunityInner withTags(Map tags)

Overrides:

BgpServiceCommunityInner.withTags(Map<String,String> tags)

Parameters:

tags

Applies to