Class BgpServiceCommunityInner
- java.lang.Object
-
- com.azure.core.management.ProxyResource
-
- com.azure.core.management.Resource
-
- com.azure.resourcemanager.network.fluent.models.BgpServiceCommunityInner
-
public final class BgpServiceCommunityInner extends com.azure.core.management.ResourceService Community Properties.
-
-
Constructor Summary
Constructors Constructor Description BgpServiceCommunityInner()
-
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.Stringid()Get the id property: Resource ID.StringserviceName()Get the serviceName property: The name of the bgp community.voidvalidate()Validates the instance.BgpServiceCommunityInnerwithBgpCommunities(List<BgpCommunity> bgpCommunities)Set the bgpCommunities property: A list of bgp communities.BgpServiceCommunityInnerwithId(String id)Set the id property: Resource ID.BgpServiceCommunityInnerwithLocation(String location)BgpServiceCommunityInnerwithServiceName(String serviceName)Set the serviceName property: The name of the bgp community.BgpServiceCommunityInnerwithTags(Map<String,String> tags)
-
-
-
Method Detail
-
id
public String id()
Get the id property: Resource ID.- Overrides:
idin classcom.azure.core.management.ProxyResource- Returns:
- the id value.
-
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:
withLocationin classcom.azure.core.management.Resource
-
withTags
public BgpServiceCommunityInner withTags(Map<String,String> tags)
- Overrides:
withTagsin classcom.azure.core.management.Resource
-
serviceName
public String serviceName()
Get the serviceName property: The name of the bgp community. e.g. Skype.- Returns:
- the serviceName value.
-
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.
-
bgpCommunities
public List<BgpCommunity> bgpCommunities()
Get the bgpCommunities property: A list of bgp communities.- Returns:
- the bgpCommunities value.
-
withBgpCommunities
public BgpServiceCommunityInner withBgpCommunities(List<BgpCommunity> bgpCommunities)
Set the bgpCommunities property: A list of bgp communities.- Parameters:
bgpCommunities- the bgpCommunities value to set.- Returns:
- the BgpServiceCommunityInner object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-