Class SubnetPropertiesFormatInner
java.lang.Object
com.azure.resourcemanager.network.fluent.models.SubnetPropertiesFormatInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<SubnetPropertiesFormatInner>
public final class SubnetPropertiesFormatInner
extends Object
implements com.azure.json.JsonSerializable<SubnetPropertiesFormatInner>
Properties of the subnet.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of SubnetPropertiesFormatInner class. -
Method Summary
Modifier and TypeMethodDescriptionGet the addressPrefix property: The address prefix for the subnet.Get the addressPrefixes property: List of address prefixes for the subnet.Get the applicationGatewayIpConfigurations property: Application gateway IP configurations of virtual network resource.Get the defaultOutboundAccess property: Set this property to false to disable default outbound connectivity for all VMs in the subnet.Get the delegations property: An array of references to the delegations on the subnet.static SubnetPropertiesFormatInnerfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of SubnetPropertiesFormatInner from the JsonReader.List<com.azure.core.management.SubResource> Get the ipAllocations property: Array of IpAllocation which reference this subnet.Get the ipamPoolPrefixAllocations property: A list of IPAM Pools for allocating IP address prefixes.Get the ipConfigurationProfiles property: Array of IP configuration profiles which reference this subnet.Get the ipConfigurations property: An array of references to the network interface IP configurations using subnet.com.azure.core.management.SubResourceGet the natGateway property: Nat gateway associated with this subnet.Get the networkSecurityGroup property: The reference to the NetworkSecurityGroup resource.Get the privateEndpointNetworkPolicies property: Enable or Disable apply network policies on private end point in the subnet.Get the privateEndpoints property: An array of references to private endpoints.Get the privateLinkServiceNetworkPolicies property: Enable or Disable apply network policies on private link service in the subnet.Get the provisioningState property: The provisioning state of the subnet resource.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.Get the resourceNavigationLinks property: An array of references to the external resources using subnet.Get the routeTable property: The reference to the RouteTable resource.Get the serviceAssociationLinks property: An array of references to services injecting into this subnet.Get the serviceEndpointPolicies property: An array of service endpoint policies.Get the serviceEndpoints property: An array of service endpoints.Get the sharingScope property: Set this property to Tenant to allow sharing subnet with other subscriptions in your AAD tenant.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withAddressPrefix(String addressPrefix) Set the addressPrefix property: The address prefix for the subnet.withAddressPrefixes(List<String> addressPrefixes) Set the addressPrefixes property: List of address prefixes for the subnet.withApplicationGatewayIpConfigurations(List<ApplicationGatewayIpConfigurationInner> applicationGatewayIpConfigurations) Set the applicationGatewayIpConfigurations property: Application gateway IP configurations of virtual network resource.withDefaultOutboundAccess(Boolean defaultOutboundAccess) Set the defaultOutboundAccess property: Set this property to false to disable default outbound connectivity for all VMs in the subnet.withDelegations(List<Delegation> delegations) Set the delegations property: An array of references to the delegations on the subnet.withIpAllocations(List<com.azure.core.management.SubResource> ipAllocations) Set the ipAllocations property: Array of IpAllocation which reference this subnet.withIpamPoolPrefixAllocations(List<IpamPoolPrefixAllocation> ipamPoolPrefixAllocations) Set the ipamPoolPrefixAllocations property: A list of IPAM Pools for allocating IP address prefixes.withNatGateway(com.azure.core.management.SubResource natGateway) Set the natGateway property: Nat gateway associated with this subnet.withNetworkSecurityGroup(NetworkSecurityGroupInner networkSecurityGroup) Set the networkSecurityGroup property: The reference to the NetworkSecurityGroup resource.withPrivateEndpointNetworkPolicies(VirtualNetworkPrivateEndpointNetworkPolicies privateEndpointNetworkPolicies) Set the privateEndpointNetworkPolicies property: Enable or Disable apply network policies on private end point in the subnet.withPrivateLinkServiceNetworkPolicies(VirtualNetworkPrivateLinkServiceNetworkPolicies privateLinkServiceNetworkPolicies) Set the privateLinkServiceNetworkPolicies property: Enable or Disable apply network policies on private link service in the subnet.withRouteTable(RouteTableInner routeTable) Set the routeTable property: The reference to the RouteTable resource.withServiceEndpointPolicies(List<ServiceEndpointPolicyInner> serviceEndpointPolicies) Set the serviceEndpointPolicies property: An array of service endpoint policies.withServiceEndpoints(List<ServiceEndpointPropertiesFormat> serviceEndpoints) Set the serviceEndpoints property: An array of service endpoints.withSharingScope(SharingScope sharingScope) Set the sharingScope property: Set this property to Tenant to allow sharing subnet with other subscriptions in your AAD tenant.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
SubnetPropertiesFormatInner
public SubnetPropertiesFormatInner()Creates an instance of SubnetPropertiesFormatInner class.
-
-
Method Details
-
addressPrefix
Get the addressPrefix property: The address prefix for the subnet.- Returns:
- the addressPrefix value.
-
withAddressPrefix
Set the addressPrefix property: The address prefix for the subnet.- Parameters:
addressPrefix- the addressPrefix value to set.- Returns:
- the SubnetPropertiesFormatInner object itself.
-
addressPrefixes
Get the addressPrefixes property: List of address prefixes for the subnet.- Returns:
- the addressPrefixes value.
-
withAddressPrefixes
Set the addressPrefixes property: List of address prefixes for the subnet.- Parameters:
addressPrefixes- the addressPrefixes value to set.- Returns:
- the SubnetPropertiesFormatInner object itself.
-
networkSecurityGroup
Get the networkSecurityGroup property: The reference to the NetworkSecurityGroup resource.- Returns:
- the networkSecurityGroup value.
-
withNetworkSecurityGroup
public SubnetPropertiesFormatInner withNetworkSecurityGroup(NetworkSecurityGroupInner networkSecurityGroup) Set the networkSecurityGroup property: The reference to the NetworkSecurityGroup resource.- Parameters:
networkSecurityGroup- the networkSecurityGroup value to set.- Returns:
- the SubnetPropertiesFormatInner object itself.
-
routeTable
Get the routeTable property: The reference to the RouteTable resource.- Returns:
- the routeTable value.
-
withRouteTable
Set the routeTable property: The reference to the RouteTable resource.- Parameters:
routeTable- the routeTable value to set.- Returns:
- the SubnetPropertiesFormatInner object itself.
-
natGateway
public com.azure.core.management.SubResource natGateway()Get the natGateway property: Nat gateway associated with this subnet.- Returns:
- the natGateway value.
-
withNatGateway
Set the natGateway property: Nat gateway associated with this subnet.- Parameters:
natGateway- the natGateway value to set.- Returns:
- the SubnetPropertiesFormatInner object itself.
-
serviceEndpoints
Get the serviceEndpoints property: An array of service endpoints.- Returns:
- the serviceEndpoints value.
-
withServiceEndpoints
public SubnetPropertiesFormatInner withServiceEndpoints(List<ServiceEndpointPropertiesFormat> serviceEndpoints) Set the serviceEndpoints property: An array of service endpoints.- Parameters:
serviceEndpoints- the serviceEndpoints value to set.- Returns:
- the SubnetPropertiesFormatInner object itself.
-
serviceEndpointPolicies
Get the serviceEndpointPolicies property: An array of service endpoint policies.- Returns:
- the serviceEndpointPolicies value.
-
withServiceEndpointPolicies
public SubnetPropertiesFormatInner withServiceEndpointPolicies(List<ServiceEndpointPolicyInner> serviceEndpointPolicies) Set the serviceEndpointPolicies property: An array of service endpoint policies.- Parameters:
serviceEndpointPolicies- the serviceEndpointPolicies value to set.- Returns:
- the SubnetPropertiesFormatInner object itself.
-
privateEndpoints
Get the privateEndpoints property: An array of references to private endpoints.- Returns:
- the privateEndpoints value.
-
ipConfigurations
Get the ipConfigurations property: An array of references to the network interface IP configurations using subnet.- Returns:
- the ipConfigurations value.
-
ipConfigurationProfiles
Get the ipConfigurationProfiles property: Array of IP configuration profiles which reference this subnet.- Returns:
- the ipConfigurationProfiles value.
-
ipAllocations
Get the ipAllocations property: Array of IpAllocation which reference this subnet.- Returns:
- the ipAllocations value.
-
withIpAllocations
public SubnetPropertiesFormatInner withIpAllocations(List<com.azure.core.management.SubResource> ipAllocations) Set the ipAllocations property: Array of IpAllocation which reference this subnet.- Parameters:
ipAllocations- the ipAllocations value to set.- Returns:
- the SubnetPropertiesFormatInner object itself.
-
serviceAssociationLinks
Get the serviceAssociationLinks property: An array of references to services injecting into this subnet.- Returns:
- the serviceAssociationLinks value.
-
delegations
Get the delegations property: An array of references to the delegations on the subnet.- Returns:
- the delegations value.
-
withDelegations
Set the delegations property: An array of references to the delegations on the subnet.- Parameters:
delegations- the delegations value to set.- Returns:
- the SubnetPropertiesFormatInner object itself.
-
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:
- the purpose value.
-
provisioningState
Get the provisioningState property: The provisioning state of the subnet resource.- Returns:
- the provisioningState value.
-
privateEndpointNetworkPolicies
Get the privateEndpointNetworkPolicies property: Enable or Disable apply network policies on private end point in the subnet.- Returns:
- the privateEndpointNetworkPolicies value.
-
withPrivateEndpointNetworkPolicies
public SubnetPropertiesFormatInner withPrivateEndpointNetworkPolicies(VirtualNetworkPrivateEndpointNetworkPolicies privateEndpointNetworkPolicies) Set the privateEndpointNetworkPolicies property: Enable or Disable apply network policies on private end point in the subnet.- Parameters:
privateEndpointNetworkPolicies- the privateEndpointNetworkPolicies value to set.- Returns:
- the SubnetPropertiesFormatInner object itself.
-
privateLinkServiceNetworkPolicies
Get the privateLinkServiceNetworkPolicies property: Enable or Disable apply network policies on private link service in the subnet.- Returns:
- the privateLinkServiceNetworkPolicies value.
-
withPrivateLinkServiceNetworkPolicies
public SubnetPropertiesFormatInner withPrivateLinkServiceNetworkPolicies(VirtualNetworkPrivateLinkServiceNetworkPolicies privateLinkServiceNetworkPolicies) Set the privateLinkServiceNetworkPolicies property: Enable or Disable apply network policies on private link service in the subnet.- Parameters:
privateLinkServiceNetworkPolicies- the privateLinkServiceNetworkPolicies value to set.- Returns:
- the SubnetPropertiesFormatInner object itself.
-
applicationGatewayIpConfigurations
Get the applicationGatewayIpConfigurations property: Application gateway IP configurations of virtual network resource.- Returns:
- the applicationGatewayIpConfigurations value.
-
withApplicationGatewayIpConfigurations
public SubnetPropertiesFormatInner withApplicationGatewayIpConfigurations(List<ApplicationGatewayIpConfigurationInner> applicationGatewayIpConfigurations) Set the applicationGatewayIpConfigurations property: Application gateway IP configurations of virtual network resource.- Parameters:
applicationGatewayIpConfigurations- the applicationGatewayIpConfigurations value to set.- Returns:
- the SubnetPropertiesFormatInner object itself.
-
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:
- the sharingScope value.
-
withSharingScope
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:
sharingScope- the sharingScope value to set.- Returns:
- the SubnetPropertiesFormatInner object itself.
-
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:
- the defaultOutboundAccess value.
-
withDefaultOutboundAccess
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:
defaultOutboundAccess- the defaultOutboundAccess value to set.- Returns:
- the SubnetPropertiesFormatInner object itself.
-
ipamPoolPrefixAllocations
Get the ipamPoolPrefixAllocations property: A list of IPAM Pools for allocating IP address prefixes.- Returns:
- the ipamPoolPrefixAllocations value.
-
withIpamPoolPrefixAllocations
public SubnetPropertiesFormatInner withIpamPoolPrefixAllocations(List<IpamPoolPrefixAllocation> ipamPoolPrefixAllocations) Set the ipamPoolPrefixAllocations property: A list of IPAM Pools for allocating IP address prefixes.- Parameters:
ipamPoolPrefixAllocations- the ipamPoolPrefixAllocations value to set.- Returns:
- the SubnetPropertiesFormatInner object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<SubnetPropertiesFormatInner>- Throws:
IOException
-
fromJson
public static SubnetPropertiesFormatInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of SubnetPropertiesFormatInner from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of SubnetPropertiesFormatInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the SubnetPropertiesFormatInner.
-