SubnetInner Class
- java.
lang. Object - com.
azure. core. management. SubResource - com.
azure. resourcemanager. network. fluent. models. SubnetInner
- com.
- com.
public final class SubnetInner
extends SubResource
Subnet in a virtual network resource.
Constructor Summary
Constructor | Description |
---|---|
SubnetInner() |
Creates an instance of Subnet |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
addressPrefix()
Get the address |
List<String> |
addressPrefixes()
Get the address |
List<Application |
applicationGatewayIpConfigurations()
Get the application |
Boolean |
defaultOutboundAccess()
Get the default |
List<Delegation> |
delegations()
Get the delegations property: An array of references to the delegations on the subnet. |
String |
etag()
Get the etag property: A unique read-only string that changes whenever the resource is updated. |
static
Subnet |
fromJson(JsonReader jsonReader)
Reads an instance of Subnet |
List<Sub |
ipAllocations()
Get the ip |
List<Ip |
ipConfigurationProfiles()
Get the ip |
List<Ip |
ipConfigurations()
Get the ip |
String |
name()
Get the name property: The name of the resource that is unique within a resource group. |
Sub |
natGateway()
Get the nat |
Network |
networkSecurityGroup()
Get the network |
Virtual |
privateEndpointNetworkPolicies()
Get the private |
List<Private |
privateEndpoints()
Get the private |
Virtual |
privateLinkServiceNetworkPolicies()
Get the private |
Provisioning |
provisioningState()
Get the provisioning |
String |
purpose()
Get the purpose property: A read-only string identifying the intention of use for this subnet based on delegations and other user-defined properties. |
List<Resource |
resourceNavigationLinks()
Get the resource |
Route |
routeTable()
Get the route |
List<Service |
serviceAssociationLinks()
Get the service |
List<Service |
serviceEndpointPolicies()
Get the service |
List<Service |
serviceEndpoints()
Get the service |
Sharing |
sharingScope()
Get the sharing |
Json |
toJson(JsonWriter jsonWriter) |
String |
type()
Get the type property: Resource type. |
void |
validate()
Validates the instance. |
Subnet |
withAddressPrefix(String addressPrefix)
Set the address |
Subnet |
withAddressPrefixes(List<String> addressPrefixes)
Set the address |
Subnet |
withApplicationGatewayIpConfigurations(List<ApplicationGatewayIpConfigurationInner> applicationGatewayIpConfigurations)
Set the application |
Subnet |
withDefaultOutboundAccess(Boolean defaultOutboundAccess)
Set the default |
Subnet |
withDelegations(List<Delegation> delegations)
Set the delegations property: An array of references to the delegations on the subnet. |
Subnet |
withId(String id) |
Subnet |
withIpAllocations(List<SubResource> ipAllocations)
Set the ip |
Subnet |
withName(String name)
Set the name property: The name of the resource that is unique within a resource group. |
Subnet |
withNatGateway(SubResource natGateway)
Set the nat |
Subnet |
withNetworkSecurityGroup(NetworkSecurityGroupInner networkSecurityGroup)
Set the network |
Subnet |
withPrivateEndpointNetworkPolicies(VirtualNetworkPrivateEndpointNetworkPolicies privateEndpointNetworkPolicies)
Set the private |
Subnet |
withPrivateLinkServiceNetworkPolicies(VirtualNetworkPrivateLinkServiceNetworkPolicies privateLinkServiceNetworkPolicies)
Set the private |
Subnet |
withRouteTable(RouteTableInner routeTable)
Set the route |
Subnet |
withServiceEndpointPolicies(List<ServiceEndpointPolicyInner> serviceEndpointPolicies)
Set the service |
Subnet |
withServiceEndpoints(List<ServiceEndpointPropertiesFormat> serviceEndpoints)
Set the service |
Subnet |
withSharingScope(SharingScope sharingScope)
Set the sharing |
Subnet |
withType(String type)
Set the type property: Resource type. |
Methods inherited from SubResource
Methods inherited from java.lang.Object
Constructor Details
SubnetInner
public SubnetInner()
Creates an instance of SubnetInner class.
Method Details
addressPrefix
public String addressPrefix()
Get the addressPrefix property: The address prefix for the subnet.
Returns:
addressPrefixes
public List
Get the addressPrefixes property: List of address prefixes for the subnet.
Returns:
applicationGatewayIpConfigurations
public List
Get the applicationGatewayIpConfigurations property: Application gateway IP configurations of virtual network resource.
Returns:
defaultOutboundAccess
public Boolean defaultOutboundAccess()
Get the defaultOutboundAccess property: Set this property to false to disable default outbound connectivity for all VMs in the subnet. This property can only be set at the time of subnet creation and cannot be updated for an existing subnet.
Returns:
delegations
public List
Get the delegations property: An array of references to the delegations on the subnet.
Returns:
etag
public String etag()
Get the etag property: A unique read-only string that changes whenever the resource is updated.
Returns:
fromJson
public static SubnetInner fromJson(JsonReader jsonReader)
Reads an instance of SubnetInner from the JsonReader.
Parameters:
Returns:
Throws:
ipAllocations
public List
Get the ipAllocations property: Array of IpAllocation which reference this subnet.
Returns:
ipConfigurationProfiles
public List
Get the ipConfigurationProfiles property: Array of IP configuration profiles which reference this subnet.
Returns:
ipConfigurations
public List
Get the ipConfigurations property: An array of references to the network interface IP configurations using subnet.
Returns:
name
public String name()
Get the name property: The name of the resource that is unique within a resource group. This name can be used to access the resource.
Returns:
natGateway
public SubResource natGateway()
Get the natGateway property: Nat gateway associated with this subnet.
Returns:
networkSecurityGroup
public NetworkSecurityGroupInner networkSecurityGroup()
Get the networkSecurityGroup property: The reference to the NetworkSecurityGroup resource.
Returns:
privateEndpointNetworkPolicies
public VirtualNetworkPrivateEndpointNetworkPolicies privateEndpointNetworkPolicies()
Get the privateEndpointNetworkPolicies property: Enable or Disable apply network policies on private end point in the subnet.
Returns:
privateEndpoints
public List
Get the privateEndpoints property: An array of references to private endpoints.
Returns:
privateLinkServiceNetworkPolicies
public VirtualNetworkPrivateLinkServiceNetworkPolicies privateLinkServiceNetworkPolicies()
Get the privateLinkServiceNetworkPolicies property: Enable or Disable apply network policies on private link service in the subnet.
Returns:
provisioningState
public ProvisioningState provisioningState()
Get the provisioningState property: The provisioning state of the subnet resource.
Returns:
purpose
public String purpose()
Get the purpose property: A read-only string identifying the intention of use for this subnet based on delegations and other user-defined properties.
Returns:
resourceNavigationLinks
public List
Get the resourceNavigationLinks property: An array of references to the external resources using subnet.
Returns:
routeTable
public RouteTableInner routeTable()
Get the routeTable property: The reference to the RouteTable resource.
Returns:
serviceAssociationLinks
public List
Get the serviceAssociationLinks property: An array of references to services injecting into this subnet.
Returns:
serviceEndpointPolicies
public List
Get the serviceEndpointPolicies property: An array of service endpoint policies.
Returns:
serviceEndpoints
public List
Get the serviceEndpoints property: An array of service endpoints.
Returns:
sharingScope
public SharingScope sharingScope()
Get the sharingScope property: Set this property to Tenant to allow sharing subnet with other subscriptions in your AAD tenant. This property can only be set if defaultOutboundAccess is set to false, both properties can only be set if subnet is empty.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
SubnetInner.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: Resource type.
Returns:
validate
public void validate()
Validates the instance.
withAddressPrefix
public SubnetInner withAddressPrefix(String addressPrefix)
Set the addressPrefix property: The address prefix for the subnet.
Parameters:
Returns:
withAddressPrefixes
public SubnetInner withAddressPrefixes(List
Set the addressPrefixes property: List of address prefixes for the subnet.
Parameters:
Returns:
withApplicationGatewayIpConfigurations
public SubnetInner withApplicationGatewayIpConfigurations(List
Set the applicationGatewayIpConfigurations property: Application gateway IP configurations of virtual network resource.
Parameters:
Returns:
withDefaultOutboundAccess
public SubnetInner withDefaultOutboundAccess(Boolean defaultOutboundAccess)
Set the defaultOutboundAccess property: Set this property to false to disable default outbound connectivity for all VMs in the subnet. This property can only be set at the time of subnet creation and cannot be updated for an existing subnet.
Parameters:
Returns:
withDelegations
public SubnetInner withDelegations(List
Set the delegations property: An array of references to the delegations on the subnet.
Parameters:
Returns:
withId
public SubnetInner withId(String id)
Overrides:
SubnetInner.withId(String id)Parameters:
withIpAllocations
public SubnetInner withIpAllocations(List
Set the ipAllocations property: Array of IpAllocation which reference this subnet.
Parameters:
Returns:
withName
public SubnetInner withName(String name)
Set the name property: The name of the resource that is unique within a resource group. This name can be used to access the resource.
Parameters:
Returns:
withNatGateway
public SubnetInner withNatGateway(SubResource natGateway)
Set the natGateway property: Nat gateway associated with this subnet.
Parameters:
Returns:
withNetworkSecurityGroup
public SubnetInner withNetworkSecurityGroup(NetworkSecurityGroupInner networkSecurityGroup)
Set the networkSecurityGroup property: The reference to the NetworkSecurityGroup resource.
Parameters:
Returns:
withPrivateEndpointNetworkPolicies
public SubnetInner withPrivateEndpointNetworkPolicies(VirtualNetworkPrivateEndpointNetworkPolicies privateEndpointNetworkPolicies)
Set the privateEndpointNetworkPolicies property: Enable or Disable apply network policies on private end point in the subnet.
Parameters:
Returns:
withPrivateLinkServiceNetworkPolicies
public SubnetInner withPrivateLinkServiceNetworkPolicies(VirtualNetworkPrivateLinkServiceNetworkPolicies privateLinkServiceNetworkPolicies)
Set the privateLinkServiceNetworkPolicies property: Enable or Disable apply network policies on private link service in the subnet.
Parameters:
Returns:
withRouteTable
public SubnetInner withRouteTable(RouteTableInner routeTable)
Set the routeTable property: The reference to the RouteTable resource.
Parameters:
Returns:
withServiceEndpointPolicies
public SubnetInner withServiceEndpointPolicies(List
Set the serviceEndpointPolicies property: An array of service endpoint policies.
Parameters:
Returns:
withServiceEndpoints
public SubnetInner withServiceEndpoints(List
Set the serviceEndpoints property: An array of service endpoints.
Parameters:
Returns:
withSharingScope
public SubnetInner withSharingScope(SharingScope sharingScope)
Set the sharingScope property: Set this property to Tenant to allow sharing subnet with other subscriptions in your AAD tenant. This property can only be set if defaultOutboundAccess is set to false, both properties can only be set if subnet is empty.
Parameters:
Returns:
withType
public SubnetInner withType(String type)
Set the type property: Resource type.
Parameters:
Returns:
Applies to
Azure SDK for Java