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;
The network resource topology information for the given resource group.
/** * The network resource topology information for the given resource group. */
public class TopologyResource {
Name of the resource.
/** * Name of the resource. */
@JsonProperty(value = "name") private String name;
ID of the resource.
/** * ID of the resource. */
@JsonProperty(value = "id") private String id;
Resource location.
/** * Resource location. */
@JsonProperty(value = "location") private String location;
Holds the associations the resource has with other resources in the resource group.
/** * Holds the associations the resource has with other resources in the * resource group. */
@JsonProperty(value = "associations") private List<TopologyAssociation> associations;
Get name of the resource.
Returns:the name value
/** * Get name of the resource. * * @return the name value */
public String name() { return this.name; }
Set name of the resource.
Params:
  • name – the name value to set
Returns:the TopologyResource object itself.
/** * Set name of the resource. * * @param name the name value to set * @return the TopologyResource object itself. */
public TopologyResource withName(String name) { this.name = name; return this; }
Get iD of the resource.
Returns:the id value
/** * Get iD of the resource. * * @return the id value */
public String id() { return this.id; }
Set iD of the resource.
Params:
  • id – the id value to set
Returns:the TopologyResource object itself.
/** * Set iD of the resource. * * @param id the id value to set * @return the TopologyResource object itself. */
public TopologyResource withId(String id) { this.id = id; return this; }
Get resource location.
Returns:the location value
/** * Get resource location. * * @return the location value */
public String location() { return this.location; }
Set resource location.
Params:
  • location – the location value to set
Returns:the TopologyResource object itself.
/** * Set resource location. * * @param location the location value to set * @return the TopologyResource object itself. */
public TopologyResource withLocation(String location) { this.location = location; return this; }
Get holds the associations the resource has with other resources in the resource group.
Returns:the associations value
/** * Get holds the associations the resource has with other resources in the resource group. * * @return the associations value */
public List<TopologyAssociation> associations() { return this.associations; }
Set holds the associations the resource has with other resources in the resource group.
Params:
  • associations – the associations value to set
Returns:the TopologyResource object itself.
/** * Set holds the associations the resource has with other resources in the resource group. * * @param associations the associations value to set * @return the TopologyResource object itself. */
public TopologyResource withAssociations(List<TopologyAssociation> associations) { this.associations = associations; return this; } }