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.appservice; import java.util.List; import com.fasterxml.jackson.annotation.JsonProperty;
Description of a Virtual Network that is useable for private site access.
/** * Description of a Virtual Network that is useable for private site access. */
public class PrivateAccessVirtualNetwork {
The name of the Virtual Network.
/** * The name of the Virtual Network. */
@JsonProperty(value = "name") private String name;
The key (ID) of the Virtual Network.
/** * The key (ID) of the Virtual Network. */
@JsonProperty(value = "key") private Integer key;
The ARM uri of the Virtual Network.
/** * The ARM uri of the Virtual Network. */
@JsonProperty(value = "resourceId") private String resourceId;
A List of subnets that access is allowed to on this Virtual Network. An empty array (but not null) is interpreted to mean that all subnets are allowed within this Virtual Network.
/** * A List of subnets that access is allowed to on this Virtual Network. An * empty array (but not null) is interpreted to mean that all subnets are * allowed within this Virtual Network. */
@JsonProperty(value = "subnets") private List<PrivateAccessSubnet> subnets;
Get the name of the Virtual Network.
Returns:the name value
/** * Get the name of the Virtual Network. * * @return the name value */
public String name() { return this.name; }
Set the name of the Virtual Network.
Params:
  • name – the name value to set
Returns:the PrivateAccessVirtualNetwork object itself.
/** * Set the name of the Virtual Network. * * @param name the name value to set * @return the PrivateAccessVirtualNetwork object itself. */
public PrivateAccessVirtualNetwork withName(String name) { this.name = name; return this; }
Get the key (ID) of the Virtual Network.
Returns:the key value
/** * Get the key (ID) of the Virtual Network. * * @return the key value */
public Integer key() { return this.key; }
Set the key (ID) of the Virtual Network.
Params:
  • key – the key value to set
Returns:the PrivateAccessVirtualNetwork object itself.
/** * Set the key (ID) of the Virtual Network. * * @param key the key value to set * @return the PrivateAccessVirtualNetwork object itself. */
public PrivateAccessVirtualNetwork withKey(Integer key) { this.key = key; return this; }
Get the ARM uri of the Virtual Network.
Returns:the resourceId value
/** * Get the ARM uri of the Virtual Network. * * @return the resourceId value */
public String resourceId() { return this.resourceId; }
Set the ARM uri of the Virtual Network.
Params:
  • resourceId – the resourceId value to set
Returns:the PrivateAccessVirtualNetwork object itself.
/** * Set the ARM uri of the Virtual Network. * * @param resourceId the resourceId value to set * @return the PrivateAccessVirtualNetwork object itself. */
public PrivateAccessVirtualNetwork withResourceId(String resourceId) { this.resourceId = resourceId; return this; }
Get a List of subnets that access is allowed to on this Virtual Network. An empty array (but not null) is interpreted to mean that all subnets are allowed within this Virtual Network.
Returns:the subnets value
/** * Get a List of subnets that access is allowed to on this Virtual Network. An empty array (but not null) is interpreted to mean that all subnets are allowed within this Virtual Network. * * @return the subnets value */
public List<PrivateAccessSubnet> subnets() { return this.subnets; }
Set a List of subnets that access is allowed to on this Virtual Network. An empty array (but not null) is interpreted to mean that all subnets are allowed within this Virtual Network.
Params:
  • subnets – the subnets value to set
Returns:the PrivateAccessVirtualNetwork object itself.
/** * Set a List of subnets that access is allowed to on this Virtual Network. An empty array (but not null) is interpreted to mean that all subnets are allowed within this Virtual Network. * * @param subnets the subnets value to set * @return the PrivateAccessVirtualNetwork object itself. */
public PrivateAccessVirtualNetwork withSubnets(List<PrivateAccessSubnet> subnets) { this.subnets = subnets; return this; } }