Class BgpServiceCommunityPropertiesFormat
- java.lang.Object
-
- com.azure.resourcemanager.network.fluent.models.BgpServiceCommunityPropertiesFormat
-
public final class BgpServiceCommunityPropertiesFormat extends Object
Properties of Service Community.
-
-
Constructor Summary
Constructors Constructor Description BgpServiceCommunityPropertiesFormat()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<BgpCommunity>bgpCommunities()Get the bgpCommunities property: A list of bgp communities.StringserviceName()Get the serviceName property: The name of the bgp community.voidvalidate()Validates the instance.BgpServiceCommunityPropertiesFormatwithBgpCommunities(List<BgpCommunity> bgpCommunities)Set the bgpCommunities property: A list of bgp communities.BgpServiceCommunityPropertiesFormatwithServiceName(String serviceName)Set the serviceName property: The name of the bgp community.
-
-
-
Method Detail
-
serviceName
public String serviceName()
Get the serviceName property: The name of the bgp community. e.g. Skype.- Returns:
- the serviceName value.
-
withServiceName
public BgpServiceCommunityPropertiesFormat 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 BgpServiceCommunityPropertiesFormat object itself.
-
bgpCommunities
public List<BgpCommunity> bgpCommunities()
Get the bgpCommunities property: A list of bgp communities.- Returns:
- the bgpCommunities value.
-
withBgpCommunities
public BgpServiceCommunityPropertiesFormat withBgpCommunities(List<BgpCommunity> bgpCommunities)
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.
-
-