Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License. See License.txt in the project root for license information. Code generated by Microsoft (R) AutoRest Code Generator.
/** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. */
package com.microsoft.azure.management.network; import java.util.List; import com.fasterxml.jackson.annotation.JsonProperty;
Contains bgp community information offered in Service Community resources.
/** * Contains bgp community information offered in Service Community resources. */
public class BGPCommunity {
The region which the service support. e.g. For O365, region is Global.
/** * The region which the service support. e.g. For O365, region is Global. */
@JsonProperty(value = "serviceSupportedRegion") private String serviceSupportedRegion;
The name of the bgp community. e.g. Skype.
/** * The name of the bgp community. e.g. Skype. */
@JsonProperty(value = "communityName") private String communityName;
The value of the bgp community. For more information: https://docs.microsoft.com/en-us/azure/expressroute/expressroute-routing.
/** * The value of the bgp community. For more information: * https://docs.microsoft.com/en-us/azure/expressroute/expressroute-routing. */
@JsonProperty(value = "communityValue") private String communityValue;
The prefixes that the bgp community contains.
/** * The prefixes that the bgp community contains. */
@JsonProperty(value = "communityPrefixes") private List<String> communityPrefixes;
Customer is authorized to use bgp community or not.
/** * Customer is authorized to use bgp community or not. */
@JsonProperty(value = "isAuthorizedToUse") private Boolean isAuthorizedToUse;
The service group of the bgp community contains.
/** * The service group of the bgp community contains. */
@JsonProperty(value = "serviceGroup") private String serviceGroup;
Get the region which the service support. e.g. For O365, region is Global.
Returns:the serviceSupportedRegion value
/** * Get the region which the service support. e.g. For O365, region is Global. * * @return the serviceSupportedRegion value */
public String serviceSupportedRegion() { return this.serviceSupportedRegion; }
Set the region which the service support. e.g. For O365, region is Global.
Params:
  • serviceSupportedRegion – the serviceSupportedRegion value to set
Returns:the BGPCommunity object itself.
/** * Set the region which the service support. e.g. For O365, region is Global. * * @param serviceSupportedRegion the serviceSupportedRegion value to set * @return the BGPCommunity object itself. */
public BGPCommunity withServiceSupportedRegion(String serviceSupportedRegion) { this.serviceSupportedRegion = serviceSupportedRegion; return this; }
Get the name of the bgp community. e.g. Skype.
Returns:the communityName value
/** * Get the name of the bgp community. e.g. Skype. * * @return the communityName value */
public String communityName() { return this.communityName; }
Set the name of the bgp community. e.g. Skype.
Params:
  • communityName – the communityName value to set
Returns:the BGPCommunity object itself.
/** * Set the name of the bgp community. e.g. Skype. * * @param communityName the communityName value to set * @return the BGPCommunity object itself. */
public BGPCommunity withCommunityName(String communityName) { this.communityName = communityName; return this; }
Get the value of the bgp community. For more information: https://docs.microsoft.com/en-us/azure/expressroute/expressroute-routing.
Returns:the communityValue value
/** * Get the value of the bgp community. For more information: https://docs.microsoft.com/en-us/azure/expressroute/expressroute-routing. * * @return the communityValue value */
public String communityValue() { return this.communityValue; }
Set the value of the bgp community. For more information: https://docs.microsoft.com/en-us/azure/expressroute/expressroute-routing.
Params:
  • communityValue – the communityValue value to set
Returns:the BGPCommunity object itself.
/** * Set the value of the bgp community. For more information: https://docs.microsoft.com/en-us/azure/expressroute/expressroute-routing. * * @param communityValue the communityValue value to set * @return the BGPCommunity object itself. */
public BGPCommunity withCommunityValue(String communityValue) { this.communityValue = communityValue; return this; }
Get the prefixes that the bgp community contains.
Returns:the communityPrefixes value
/** * Get the prefixes that the bgp community contains. * * @return the communityPrefixes value */
public List<String> communityPrefixes() { return this.communityPrefixes; }
Set the prefixes that the bgp community contains.
Params:
  • communityPrefixes – the communityPrefixes value to set
Returns:the BGPCommunity object itself.
/** * Set the prefixes that the bgp community contains. * * @param communityPrefixes the communityPrefixes value to set * @return the BGPCommunity object itself. */
public BGPCommunity withCommunityPrefixes(List<String> communityPrefixes) { this.communityPrefixes = communityPrefixes; return this; }
Get customer is authorized to use bgp community or not.
Returns:the isAuthorizedToUse value
/** * Get customer is authorized to use bgp community or not. * * @return the isAuthorizedToUse value */
public Boolean isAuthorizedToUse() { return this.isAuthorizedToUse; }
Set customer is authorized to use bgp community or not.
Params:
  • isAuthorizedToUse – the isAuthorizedToUse value to set
Returns:the BGPCommunity object itself.
/** * Set customer is authorized to use bgp community or not. * * @param isAuthorizedToUse the isAuthorizedToUse value to set * @return the BGPCommunity object itself. */
public BGPCommunity withIsAuthorizedToUse(Boolean isAuthorizedToUse) { this.isAuthorizedToUse = isAuthorizedToUse; return this; }
Get the service group of the bgp community contains.
Returns:the serviceGroup value
/** * Get the service group of the bgp community contains. * * @return the serviceGroup value */
public String serviceGroup() { return this.serviceGroup; }
Set the service group of the bgp community contains.
Params:
  • serviceGroup – the serviceGroup value to set
Returns:the BGPCommunity object itself.
/** * Set the service group of the bgp community contains. * * @param serviceGroup the serviceGroup value to set * @return the BGPCommunity object itself. */
public BGPCommunity withServiceGroup(String serviceGroup) { this.serviceGroup = serviceGroup; return this; } }