Class BgpServiceCommunityPropertiesFormat
java.lang.Object
com.azure.resourcemanager.network.fluent.models.BgpServiceCommunityPropertiesFormat
- All Implemented Interfaces:
com.azure.json.JsonSerializable<BgpServiceCommunityPropertiesFormat>
public final class BgpServiceCommunityPropertiesFormat
extends Object
implements com.azure.json.JsonSerializable<BgpServiceCommunityPropertiesFormat>
Properties of Service Community.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of BgpServiceCommunityPropertiesFormat class. -
Method Summary
Modifier and TypeMethodDescriptionGet the bgpCommunities property: A list of bgp communities.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of BgpServiceCommunityPropertiesFormat from the JsonReader.Get the serviceName property: The name of the bgp community. e.g.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withBgpCommunities(List<BgpCommunity> bgpCommunities) Set the bgpCommunities property: A list of bgp communities.withServiceName(String serviceName) Set the serviceName property: The name of the bgp community. e.g.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
BgpServiceCommunityPropertiesFormat
public BgpServiceCommunityPropertiesFormat()Creates an instance of BgpServiceCommunityPropertiesFormat class.
-
-
Method Details
-
serviceName
Get the serviceName property: The name of the bgp community. e.g. Skype.- Returns:
- the serviceName value.
-
withServiceName
Set the serviceName property: The name of the bgp community. e.g. Skype.- Parameters:
serviceName- the serviceName value to set.- Returns:
- the BgpServiceCommunityPropertiesFormat object itself.
-
bgpCommunities
Get the bgpCommunities property: A list of bgp communities.- Returns:
- the bgpCommunities value.
-
withBgpCommunities
Set the bgpCommunities property: A list of bgp communities.- Parameters:
bgpCommunities- the bgpCommunities value to set.- Returns:
- the BgpServiceCommunityPropertiesFormat object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<BgpServiceCommunityPropertiesFormat>- Throws:
IOException
-
fromJson
public static BgpServiceCommunityPropertiesFormat fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of BgpServiceCommunityPropertiesFormat from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of BgpServiceCommunityPropertiesFormat 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 BgpServiceCommunityPropertiesFormat.
-