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.implementation; import java.util.List; import com.microsoft.azure.management.network.BGPCommunity; import com.fasterxml.jackson.annotation.JsonProperty; import com.microsoft.rest.serializer.JsonFlatten; import com.microsoft.rest.SkipParentValidation; import com.microsoft.azure.Resource;
Service Community Properties.
/** * Service Community Properties. */
@JsonFlatten @SkipParentValidation public class BgpServiceCommunityInner extends Resource {
The name of the bgp community. e.g. Skype.
/** * The name of the bgp community. e.g. Skype. */
@JsonProperty(value = "properties.serviceName") private String serviceName;
A list of bgp communities.
/** * A list of bgp communities. */
@JsonProperty(value = "properties.bgpCommunities") private List<BGPCommunity> bgpCommunities;
Resource ID.
/** * Resource ID. */
@JsonProperty(value = "id") private String id;
Get the name of the bgp community. e.g. Skype.
Returns:the serviceName value
/** * Get the name of the bgp community. e.g. Skype. * * @return the serviceName value */
public String serviceName() { return this.serviceName; }
Set the name of the bgp community. e.g. Skype.
Params:
  • serviceName – the serviceName value to set
Returns:the BgpServiceCommunityInner object itself.
/** * Set the name of the bgp community. e.g. Skype. * * @param serviceName the serviceName value to set * @return the BgpServiceCommunityInner object itself. */
public BgpServiceCommunityInner withServiceName(String serviceName) { this.serviceName = serviceName; return this; }
Get a list of bgp communities.
Returns:the bgpCommunities value
/** * Get a list of bgp communities. * * @return the bgpCommunities value */
public List<BGPCommunity> bgpCommunities() { return this.bgpCommunities; }
Set a list of bgp communities.
Params:
  • bgpCommunities – the bgpCommunities value to set
Returns:the BgpServiceCommunityInner object itself.
/** * Set a list of bgp communities. * * @param bgpCommunities the bgpCommunities value to set * @return the BgpServiceCommunityInner object itself. */
public BgpServiceCommunityInner withBgpCommunities(List<BGPCommunity> bgpCommunities) { this.bgpCommunities = bgpCommunities; return this; }
Get resource ID.
Returns:the id value
/** * Get resource ID. * * @return the id value */
public String id() { return this.id; }
Set resource ID.
Params:
  • id – the id value to set
Returns:the BgpServiceCommunityInner object itself.
/** * Set resource ID. * * @param id the id value to set * @return the BgpServiceCommunityInner object itself. */
public BgpServiceCommunityInner withId(String id) { this.id = id; return this; } }