azure-docs-sdk-java/docs-ref-autogen/com.azure.resourcemanager.n...

559 строки
48 KiB
YAML

### YamlMime:JavaType
uid: "com.azure.resourcemanager.network.fluent.models.SubnetInner"
fullName: "com.azure.resourcemanager.network.fluent.models.SubnetInner"
name: "SubnetInner"
nameWithType: "SubnetInner"
summary: "Subnet in a virtual network resource."
inheritances:
- "<xref href=\"java.lang.Object?displayProperty=fullName\" data-throw-if-not-resolved=\"False\" />"
- "<xref href=\"com.azure.core.management.SubResource?displayProperty=fullName\" data-throw-if-not-resolved=\"False\" />"
inheritedClassMethods:
- classRef: "<xref href=\"com.azure.core.management.SubResource?alt=com.azure.core.management.SubResource&text=SubResource\" data-throw-if-not-resolved=\"False\" />"
methodsRef:
- "<xref href=\"com.azure.core.management.SubResource.fromJson(com.azure.json.JsonReader)?alt=com.azure.core.management.SubResource.fromJson&text=fromJson\" data-throw-if-not-resolved=\"False\" />"
- "<xref href=\"com.azure.core.management.SubResource.id()?alt=com.azure.core.management.SubResource.id&text=id\" data-throw-if-not-resolved=\"False\" />"
- "<xref href=\"com.azure.core.management.SubResource.toJson(com.azure.json.JsonWriter)?alt=com.azure.core.management.SubResource.toJson&text=toJson\" data-throw-if-not-resolved=\"False\" />"
- "<xref href=\"com.azure.core.management.SubResource.withId(java.lang.String)?alt=com.azure.core.management.SubResource.withId&text=withId\" data-throw-if-not-resolved=\"False\" />"
- classRef: "java.lang.<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html\">Object</a>"
methodsRef:
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#clone--\">clone</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#equals-java.lang.Object-\">equals</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#finalize--\">finalize</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#getClass--\">getClass</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#hashCode--\">hashCode</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notify--\">notify</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notifyAll--\">notifyAll</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#toString--\">toString</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait--\">wait</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-\">wait</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-int-\">wait</a>"
syntax: "public final class **SubnetInner**</br> extends <xref href=\"com.azure.core.management.SubResource?alt=com.azure.core.management.SubResource&text=SubResource\" data-throw-if-not-resolved=\"False\" />"
constructors:
- uid: "com.azure.resourcemanager.network.fluent.models.SubnetInner.SubnetInner()"
fullName: "com.azure.resourcemanager.network.fluent.models.SubnetInner.SubnetInner()"
name: "SubnetInner()"
nameWithType: "SubnetInner.SubnetInner()"
summary: "Creates an instance of Subnet<wbr>Inner class."
syntax: "public SubnetInner()"
desc: "Creates an instance of SubnetInner class."
methods:
- uid: "com.azure.resourcemanager.network.fluent.models.SubnetInner.addressPrefix()"
fullName: "com.azure.resourcemanager.network.fluent.models.SubnetInner.addressPrefix()"
name: "addressPrefix()"
nameWithType: "SubnetInner.addressPrefix()"
summary: "Get the address<wbr>Prefix property: The address prefix for the subnet."
syntax: "public String addressPrefix()"
desc: "Get the addressPrefix property: The address prefix for the subnet."
returns:
description: "the addressPrefix value."
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
- uid: "com.azure.resourcemanager.network.fluent.models.SubnetInner.addressPrefixes()"
fullName: "com.azure.resourcemanager.network.fluent.models.SubnetInner.addressPrefixes()"
name: "addressPrefixes()"
nameWithType: "SubnetInner.addressPrefixes()"
summary: "Get the address<wbr>Prefixes property: List of address prefixes for the subnet."
syntax: "public List<String> addressPrefixes()"
desc: "Get the addressPrefixes property: List of address prefixes for the subnet."
returns:
description: "the addressPrefixes value."
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/util/List.html\">List</a>&lt;<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>&gt;"
- uid: "com.azure.resourcemanager.network.fluent.models.SubnetInner.applicationGatewayIpConfigurations()"
fullName: "com.azure.resourcemanager.network.fluent.models.SubnetInner.applicationGatewayIpConfigurations()"
name: "applicationGatewayIpConfigurations()"
nameWithType: "SubnetInner.applicationGatewayIpConfigurations()"
summary: "Get the application<wbr>Gateway<wbr>IpConfigurations property: Application gateway IP configurations of virtual network resource."
syntax: "public List<ApplicationGatewayIpConfigurationInner> applicationGatewayIpConfigurations()"
desc: "Get the applicationGatewayIpConfigurations property: Application gateway IP configurations of virtual network resource."
returns:
description: "the applicationGatewayIpConfigurations value."
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/util/List.html\">List</a>&lt;<xref href=\"com.azure.resourcemanager.network.fluent.models.ApplicationGatewayIpConfigurationInner?alt=com.azure.resourcemanager.network.fluent.models.ApplicationGatewayIpConfigurationInner&text=ApplicationGatewayIpConfigurationInner\" data-throw-if-not-resolved=\"False\" />&gt;"
- uid: "com.azure.resourcemanager.network.fluent.models.SubnetInner.defaultOutboundAccess()"
fullName: "com.azure.resourcemanager.network.fluent.models.SubnetInner.defaultOutboundAccess()"
name: "defaultOutboundAccess()"
nameWithType: "SubnetInner.defaultOutboundAccess()"
summary: "Get the default<wbr>Outbound<wbr>Access property: Set this property to false to disable default outbound connectivity for all VMs in the subnet."
syntax: "public Boolean defaultOutboundAccess()"
desc: "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:
description: "the defaultOutboundAccess value."
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Boolean.html\">Boolean</a>"
- uid: "com.azure.resourcemanager.network.fluent.models.SubnetInner.delegations()"
fullName: "com.azure.resourcemanager.network.fluent.models.SubnetInner.delegations()"
name: "delegations()"
nameWithType: "SubnetInner.delegations()"
summary: "Get the delegations property: An array of references to the delegations on the subnet."
syntax: "public List<Delegation> delegations()"
desc: "Get the delegations property: An array of references to the delegations on the subnet."
returns:
description: "the delegations value."
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/util/List.html\">List</a>&lt;<xref href=\"com.azure.resourcemanager.network.models.Delegation?alt=com.azure.resourcemanager.network.models.Delegation&text=Delegation\" data-throw-if-not-resolved=\"False\" />&gt;"
- uid: "com.azure.resourcemanager.network.fluent.models.SubnetInner.etag()"
fullName: "com.azure.resourcemanager.network.fluent.models.SubnetInner.etag()"
name: "etag()"
nameWithType: "SubnetInner.etag()"
summary: "Get the etag property: A unique read-only string that changes whenever the resource is updated."
syntax: "public String etag()"
desc: "Get the etag property: A unique read-only string that changes whenever the resource is updated."
returns:
description: "the etag value."
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
- uid: "com.azure.resourcemanager.network.fluent.models.SubnetInner.fromJson(com.azure.json.JsonReader)"
fullName: "com.azure.resourcemanager.network.fluent.models.SubnetInner.fromJson(JsonReader jsonReader)"
name: "fromJson(JsonReader jsonReader)"
nameWithType: "SubnetInner.fromJson(JsonReader jsonReader)"
summary: "Reads an instance of Subnet<wbr>Inner from the Json<wbr>Reader."
modifiers:
- "static"
parameters:
- description: "The JsonReader being read."
name: "jsonReader"
type: "<xref href=\"com.azure.json.JsonReader?alt=com.azure.json.JsonReader&text=JsonReader\" data-throw-if-not-resolved=\"False\" />"
syntax: "public static SubnetInner fromJson(JsonReader jsonReader)"
exceptions:
- description: "If an error occurs while reading the SubnetInner."
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html\">IOException</a>"
desc: "Reads an instance of SubnetInner from the JsonReader."
returns:
description: "An instance of SubnetInner if the JsonReader was pointing to an instance of it, or null if it was\n pointing to JSON null."
type: "<xref href=\"com.azure.resourcemanager.network.fluent.models.SubnetInner?alt=com.azure.resourcemanager.network.fluent.models.SubnetInner&text=SubnetInner\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.resourcemanager.network.fluent.models.SubnetInner.ipAllocations()"
fullName: "com.azure.resourcemanager.network.fluent.models.SubnetInner.ipAllocations()"
name: "ipAllocations()"
nameWithType: "SubnetInner.ipAllocations()"
summary: "Get the ip<wbr>Allocations property: Array of Ip<wbr>Allocation which reference this subnet."
syntax: "public List<SubResource> ipAllocations()"
desc: "Get the ipAllocations property: Array of IpAllocation which reference this subnet."
returns:
description: "the ipAllocations value."
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/util/List.html\">List</a>&lt;<xref href=\"com.azure.core.management.SubResource?alt=com.azure.core.management.SubResource&text=SubResource\" data-throw-if-not-resolved=\"False\" />&gt;"
- uid: "com.azure.resourcemanager.network.fluent.models.SubnetInner.ipConfigurationProfiles()"
fullName: "com.azure.resourcemanager.network.fluent.models.SubnetInner.ipConfigurationProfiles()"
name: "ipConfigurationProfiles()"
nameWithType: "SubnetInner.ipConfigurationProfiles()"
summary: "Get the ip<wbr>Configuration<wbr>Profiles property: Array of IP configuration profiles which reference this subnet."
syntax: "public List<IpConfigurationProfileInner> ipConfigurationProfiles()"
desc: "Get the ipConfigurationProfiles property: Array of IP configuration profiles which reference this subnet."
returns:
description: "the ipConfigurationProfiles value."
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/util/List.html\">List</a>&lt;<xref href=\"com.azure.resourcemanager.network.fluent.models.IpConfigurationProfileInner?alt=com.azure.resourcemanager.network.fluent.models.IpConfigurationProfileInner&text=IpConfigurationProfileInner\" data-throw-if-not-resolved=\"False\" />&gt;"
- uid: "com.azure.resourcemanager.network.fluent.models.SubnetInner.ipConfigurations()"
fullName: "com.azure.resourcemanager.network.fluent.models.SubnetInner.ipConfigurations()"
name: "ipConfigurations()"
nameWithType: "SubnetInner.ipConfigurations()"
summary: "Get the ip<wbr>Configurations property: An array of references to the network interface IP configurations using subnet."
syntax: "public List<IpConfigurationInner> ipConfigurations()"
desc: "Get the ipConfigurations property: An array of references to the network interface IP configurations using subnet."
returns:
description: "the ipConfigurations value."
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/util/List.html\">List</a>&lt;<xref href=\"com.azure.resourcemanager.network.fluent.models.IpConfigurationInner?alt=com.azure.resourcemanager.network.fluent.models.IpConfigurationInner&text=IpConfigurationInner\" data-throw-if-not-resolved=\"False\" />&gt;"
- uid: "com.azure.resourcemanager.network.fluent.models.SubnetInner.name()"
fullName: "com.azure.resourcemanager.network.fluent.models.SubnetInner.name()"
name: "name()"
nameWithType: "SubnetInner.name()"
summary: "Get the name property: The name of the resource that is unique within a resource group."
syntax: "public String name()"
desc: "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:
description: "the name value."
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
- uid: "com.azure.resourcemanager.network.fluent.models.SubnetInner.natGateway()"
fullName: "com.azure.resourcemanager.network.fluent.models.SubnetInner.natGateway()"
name: "natGateway()"
nameWithType: "SubnetInner.natGateway()"
summary: "Get the nat<wbr>Gateway property: Nat gateway associated with this subnet."
syntax: "public SubResource natGateway()"
desc: "Get the natGateway property: Nat gateway associated with this subnet."
returns:
description: "the natGateway value."
type: "<xref href=\"com.azure.core.management.SubResource?alt=com.azure.core.management.SubResource&text=SubResource\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.resourcemanager.network.fluent.models.SubnetInner.networkSecurityGroup()"
fullName: "com.azure.resourcemanager.network.fluent.models.SubnetInner.networkSecurityGroup()"
name: "networkSecurityGroup()"
nameWithType: "SubnetInner.networkSecurityGroup()"
summary: "Get the network<wbr>Security<wbr>Group property: The reference to the Network<wbr>Security<wbr>Group resource."
syntax: "public NetworkSecurityGroupInner networkSecurityGroup()"
desc: "Get the networkSecurityGroup property: The reference to the NetworkSecurityGroup resource."
returns:
description: "the networkSecurityGroup value."
type: "<xref href=\"com.azure.resourcemanager.network.fluent.models.NetworkSecurityGroupInner?alt=com.azure.resourcemanager.network.fluent.models.NetworkSecurityGroupInner&text=NetworkSecurityGroupInner\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.resourcemanager.network.fluent.models.SubnetInner.privateEndpointNetworkPolicies()"
fullName: "com.azure.resourcemanager.network.fluent.models.SubnetInner.privateEndpointNetworkPolicies()"
name: "privateEndpointNetworkPolicies()"
nameWithType: "SubnetInner.privateEndpointNetworkPolicies()"
summary: "Get the private<wbr>Endpoint<wbr>Network<wbr>Policies property: Enable or Disable apply network policies on private end point in the subnet."
syntax: "public VirtualNetworkPrivateEndpointNetworkPolicies privateEndpointNetworkPolicies()"
desc: "Get the privateEndpointNetworkPolicies property: Enable or Disable apply network policies on private end point in the subnet."
returns:
description: "the privateEndpointNetworkPolicies value."
type: "<xref href=\"com.azure.resourcemanager.network.models.VirtualNetworkPrivateEndpointNetworkPolicies?alt=com.azure.resourcemanager.network.models.VirtualNetworkPrivateEndpointNetworkPolicies&text=VirtualNetworkPrivateEndpointNetworkPolicies\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.resourcemanager.network.fluent.models.SubnetInner.privateEndpoints()"
fullName: "com.azure.resourcemanager.network.fluent.models.SubnetInner.privateEndpoints()"
name: "privateEndpoints()"
nameWithType: "SubnetInner.privateEndpoints()"
summary: "Get the private<wbr>Endpoints property: An array of references to private endpoints."
syntax: "public List<PrivateEndpointInner> privateEndpoints()"
desc: "Get the privateEndpoints property: An array of references to private endpoints."
returns:
description: "the privateEndpoints value."
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/util/List.html\">List</a>&lt;<xref href=\"com.azure.resourcemanager.network.fluent.models.PrivateEndpointInner?alt=com.azure.resourcemanager.network.fluent.models.PrivateEndpointInner&text=PrivateEndpointInner\" data-throw-if-not-resolved=\"False\" />&gt;"
- uid: "com.azure.resourcemanager.network.fluent.models.SubnetInner.privateLinkServiceNetworkPolicies()"
fullName: "com.azure.resourcemanager.network.fluent.models.SubnetInner.privateLinkServiceNetworkPolicies()"
name: "privateLinkServiceNetworkPolicies()"
nameWithType: "SubnetInner.privateLinkServiceNetworkPolicies()"
summary: "Get the private<wbr>Link<wbr>Service<wbr>Network<wbr>Policies property: Enable or Disable apply network policies on private link service in the subnet."
syntax: "public VirtualNetworkPrivateLinkServiceNetworkPolicies privateLinkServiceNetworkPolicies()"
desc: "Get the privateLinkServiceNetworkPolicies property: Enable or Disable apply network policies on private link service in the subnet."
returns:
description: "the privateLinkServiceNetworkPolicies value."
type: "<xref href=\"com.azure.resourcemanager.network.models.VirtualNetworkPrivateLinkServiceNetworkPolicies?alt=com.azure.resourcemanager.network.models.VirtualNetworkPrivateLinkServiceNetworkPolicies&text=VirtualNetworkPrivateLinkServiceNetworkPolicies\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.resourcemanager.network.fluent.models.SubnetInner.provisioningState()"
fullName: "com.azure.resourcemanager.network.fluent.models.SubnetInner.provisioningState()"
name: "provisioningState()"
nameWithType: "SubnetInner.provisioningState()"
summary: "Get the provisioning<wbr>State property: The provisioning state of the subnet resource."
syntax: "public ProvisioningState provisioningState()"
desc: "Get the provisioningState property: The provisioning state of the subnet resource."
returns:
description: "the provisioningState value."
type: "<xref href=\"com.azure.resourcemanager.network.models.ProvisioningState?alt=com.azure.resourcemanager.network.models.ProvisioningState&text=ProvisioningState\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.resourcemanager.network.fluent.models.SubnetInner.purpose()"
fullName: "com.azure.resourcemanager.network.fluent.models.SubnetInner.purpose()"
name: "purpose()"
nameWithType: "SubnetInner.purpose()"
summary: "Get the purpose property: A read-only string identifying the intention of use for this subnet based on delegations and other user-defined properties."
syntax: "public String purpose()"
desc: "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:
description: "the purpose value."
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
- uid: "com.azure.resourcemanager.network.fluent.models.SubnetInner.resourceNavigationLinks()"
fullName: "com.azure.resourcemanager.network.fluent.models.SubnetInner.resourceNavigationLinks()"
name: "resourceNavigationLinks()"
nameWithType: "SubnetInner.resourceNavigationLinks()"
summary: "Get the resource<wbr>Navigation<wbr>Links property: An array of references to the external resources using subnet."
syntax: "public List<ResourceNavigationLink> resourceNavigationLinks()"
desc: "Get the resourceNavigationLinks property: An array of references to the external resources using subnet."
returns:
description: "the resourceNavigationLinks value."
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/util/List.html\">List</a>&lt;<xref href=\"com.azure.resourcemanager.network.models.ResourceNavigationLink?alt=com.azure.resourcemanager.network.models.ResourceNavigationLink&text=ResourceNavigationLink\" data-throw-if-not-resolved=\"False\" />&gt;"
- uid: "com.azure.resourcemanager.network.fluent.models.SubnetInner.routeTable()"
fullName: "com.azure.resourcemanager.network.fluent.models.SubnetInner.routeTable()"
name: "routeTable()"
nameWithType: "SubnetInner.routeTable()"
summary: "Get the route<wbr>Table property: The reference to the Route<wbr>Table resource."
syntax: "public RouteTableInner routeTable()"
desc: "Get the routeTable property: The reference to the RouteTable resource."
returns:
description: "the routeTable value."
type: "<xref href=\"com.azure.resourcemanager.network.fluent.models.RouteTableInner?alt=com.azure.resourcemanager.network.fluent.models.RouteTableInner&text=RouteTableInner\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.resourcemanager.network.fluent.models.SubnetInner.serviceAssociationLinks()"
fullName: "com.azure.resourcemanager.network.fluent.models.SubnetInner.serviceAssociationLinks()"
name: "serviceAssociationLinks()"
nameWithType: "SubnetInner.serviceAssociationLinks()"
summary: "Get the service<wbr>Association<wbr>Links property: An array of references to services injecting into this subnet."
syntax: "public List<ServiceAssociationLink> serviceAssociationLinks()"
desc: "Get the serviceAssociationLinks property: An array of references to services injecting into this subnet."
returns:
description: "the serviceAssociationLinks value."
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/util/List.html\">List</a>&lt;<xref href=\"com.azure.resourcemanager.network.models.ServiceAssociationLink?alt=com.azure.resourcemanager.network.models.ServiceAssociationLink&text=ServiceAssociationLink\" data-throw-if-not-resolved=\"False\" />&gt;"
- uid: "com.azure.resourcemanager.network.fluent.models.SubnetInner.serviceEndpointPolicies()"
fullName: "com.azure.resourcemanager.network.fluent.models.SubnetInner.serviceEndpointPolicies()"
name: "serviceEndpointPolicies()"
nameWithType: "SubnetInner.serviceEndpointPolicies()"
summary: "Get the service<wbr>Endpoint<wbr>Policies property: An array of service endpoint policies."
syntax: "public List<ServiceEndpointPolicyInner> serviceEndpointPolicies()"
desc: "Get the serviceEndpointPolicies property: An array of service endpoint policies."
returns:
description: "the serviceEndpointPolicies value."
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/util/List.html\">List</a>&lt;<xref href=\"com.azure.resourcemanager.network.fluent.models.ServiceEndpointPolicyInner?alt=com.azure.resourcemanager.network.fluent.models.ServiceEndpointPolicyInner&text=ServiceEndpointPolicyInner\" data-throw-if-not-resolved=\"False\" />&gt;"
- uid: "com.azure.resourcemanager.network.fluent.models.SubnetInner.serviceEndpoints()"
fullName: "com.azure.resourcemanager.network.fluent.models.SubnetInner.serviceEndpoints()"
name: "serviceEndpoints()"
nameWithType: "SubnetInner.serviceEndpoints()"
summary: "Get the service<wbr>Endpoints property: An array of service endpoints."
syntax: "public List<ServiceEndpointPropertiesFormat> serviceEndpoints()"
desc: "Get the serviceEndpoints property: An array of service endpoints."
returns:
description: "the serviceEndpoints value."
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/util/List.html\">List</a>&lt;<xref href=\"com.azure.resourcemanager.network.models.ServiceEndpointPropertiesFormat?alt=com.azure.resourcemanager.network.models.ServiceEndpointPropertiesFormat&text=ServiceEndpointPropertiesFormat\" data-throw-if-not-resolved=\"False\" />&gt;"
- uid: "com.azure.resourcemanager.network.fluent.models.SubnetInner.sharingScope()"
fullName: "com.azure.resourcemanager.network.fluent.models.SubnetInner.sharingScope()"
name: "sharingScope()"
nameWithType: "SubnetInner.sharingScope()"
summary: "Get the sharing<wbr>Scope property: Set this property to Tenant to allow sharing subnet with other subscriptions in your AAD tenant."
syntax: "public SharingScope sharingScope()"
desc: "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:
description: "the sharingScope value."
type: "<xref href=\"com.azure.resourcemanager.network.models.SharingScope?alt=com.azure.resourcemanager.network.models.SharingScope&text=SharingScope\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.resourcemanager.network.fluent.models.SubnetInner.toJson(com.azure.json.JsonWriter)"
fullName: "com.azure.resourcemanager.network.fluent.models.SubnetInner.toJson(JsonWriter jsonWriter)"
name: "toJson(JsonWriter jsonWriter)"
nameWithType: "SubnetInner.toJson(JsonWriter jsonWriter)"
overridden: "com.azure.core.management.SubResource.toJson(com.azure.json.JsonWriter)"
parameters:
- name: "jsonWriter"
type: "<xref href=\"com.azure.json.JsonWriter?alt=com.azure.json.JsonWriter&text=JsonWriter\" data-throw-if-not-resolved=\"False\" />"
syntax: "public JsonWriter toJson(JsonWriter jsonWriter)"
exceptions:
- type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html\">IOException</a>"
returns:
type: "<xref href=\"com.azure.json.JsonWriter?alt=com.azure.json.JsonWriter&text=JsonWriter\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.resourcemanager.network.fluent.models.SubnetInner.type()"
fullName: "com.azure.resourcemanager.network.fluent.models.SubnetInner.type()"
name: "type()"
nameWithType: "SubnetInner.type()"
summary: "Get the type property: Resource type."
syntax: "public String type()"
desc: "Get the type property: Resource type."
returns:
description: "the type value."
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
- uid: "com.azure.resourcemanager.network.fluent.models.SubnetInner.validate()"
fullName: "com.azure.resourcemanager.network.fluent.models.SubnetInner.validate()"
name: "validate()"
nameWithType: "SubnetInner.validate()"
summary: "Validates the instance."
syntax: "public void validate()"
desc: "Validates the instance."
- uid: "com.azure.resourcemanager.network.fluent.models.SubnetInner.withAddressPrefix(java.lang.String)"
fullName: "com.azure.resourcemanager.network.fluent.models.SubnetInner.withAddressPrefix(String addressPrefix)"
name: "withAddressPrefix(String addressPrefix)"
nameWithType: "SubnetInner.withAddressPrefix(String addressPrefix)"
summary: "Set the address<wbr>Prefix property: The address prefix for the subnet."
parameters:
- description: "the addressPrefix value to set."
name: "addressPrefix"
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
syntax: "public SubnetInner withAddressPrefix(String addressPrefix)"
desc: "Set the addressPrefix property: The address prefix for the subnet."
returns:
description: "the SubnetInner object itself."
type: "<xref href=\"com.azure.resourcemanager.network.fluent.models.SubnetInner?alt=com.azure.resourcemanager.network.fluent.models.SubnetInner&text=SubnetInner\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.resourcemanager.network.fluent.models.SubnetInner.withAddressPrefixes(java.util.List<java.lang.String>)"
fullName: "com.azure.resourcemanager.network.fluent.models.SubnetInner.withAddressPrefixes(List<String> addressPrefixes)"
name: "withAddressPrefixes(List<String> addressPrefixes)"
nameWithType: "SubnetInner.withAddressPrefixes(List<String> addressPrefixes)"
summary: "Set the address<wbr>Prefixes property: List of address prefixes for the subnet."
parameters:
- description: "the addressPrefixes value to set."
name: "addressPrefixes"
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/util/List.html\">List</a>&lt;<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>&gt;"
syntax: "public SubnetInner withAddressPrefixes(List<String> addressPrefixes)"
desc: "Set the addressPrefixes property: List of address prefixes for the subnet."
returns:
description: "the SubnetInner object itself."
type: "<xref href=\"com.azure.resourcemanager.network.fluent.models.SubnetInner?alt=com.azure.resourcemanager.network.fluent.models.SubnetInner&text=SubnetInner\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.resourcemanager.network.fluent.models.SubnetInner.withApplicationGatewayIpConfigurations(java.util.List<com.azure.resourcemanager.network.fluent.models.ApplicationGatewayIpConfigurationInner>)"
fullName: "com.azure.resourcemanager.network.fluent.models.SubnetInner.withApplicationGatewayIpConfigurations(List<ApplicationGatewayIpConfigurationInner> applicationGatewayIpConfigurations)"
name: "withApplicationGatewayIpConfigurations(List<ApplicationGatewayIpConfigurationInner> applicationGatewayIpConfigurations)"
nameWithType: "SubnetInner.withApplicationGatewayIpConfigurations(List<ApplicationGatewayIpConfigurationInner> applicationGatewayIpConfigurations)"
summary: "Set the application<wbr>Gateway<wbr>IpConfigurations property: Application gateway IP configurations of virtual network resource."
parameters:
- description: "the applicationGatewayIpConfigurations value to set."
name: "applicationGatewayIpConfigurations"
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/util/List.html\">List</a>&lt;<xref href=\"com.azure.resourcemanager.network.fluent.models.ApplicationGatewayIpConfigurationInner?alt=com.azure.resourcemanager.network.fluent.models.ApplicationGatewayIpConfigurationInner&text=ApplicationGatewayIpConfigurationInner\" data-throw-if-not-resolved=\"False\" />&gt;"
syntax: "public SubnetInner withApplicationGatewayIpConfigurations(List<ApplicationGatewayIpConfigurationInner> applicationGatewayIpConfigurations)"
desc: "Set the applicationGatewayIpConfigurations property: Application gateway IP configurations of virtual network resource."
returns:
description: "the SubnetInner object itself."
type: "<xref href=\"com.azure.resourcemanager.network.fluent.models.SubnetInner?alt=com.azure.resourcemanager.network.fluent.models.SubnetInner&text=SubnetInner\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.resourcemanager.network.fluent.models.SubnetInner.withDefaultOutboundAccess(java.lang.Boolean)"
fullName: "com.azure.resourcemanager.network.fluent.models.SubnetInner.withDefaultOutboundAccess(Boolean defaultOutboundAccess)"
name: "withDefaultOutboundAccess(Boolean defaultOutboundAccess)"
nameWithType: "SubnetInner.withDefaultOutboundAccess(Boolean defaultOutboundAccess)"
summary: "Set the default<wbr>Outbound<wbr>Access property: Set this property to false to disable default outbound connectivity for all VMs in the subnet."
parameters:
- description: "the defaultOutboundAccess value to set."
name: "defaultOutboundAccess"
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Boolean.html\">Boolean</a>"
syntax: "public SubnetInner withDefaultOutboundAccess(Boolean defaultOutboundAccess)"
desc: "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."
returns:
description: "the SubnetInner object itself."
type: "<xref href=\"com.azure.resourcemanager.network.fluent.models.SubnetInner?alt=com.azure.resourcemanager.network.fluent.models.SubnetInner&text=SubnetInner\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.resourcemanager.network.fluent.models.SubnetInner.withDelegations(java.util.List<com.azure.resourcemanager.network.models.Delegation>)"
fullName: "com.azure.resourcemanager.network.fluent.models.SubnetInner.withDelegations(List<Delegation> delegations)"
name: "withDelegations(List<Delegation> delegations)"
nameWithType: "SubnetInner.withDelegations(List<Delegation> delegations)"
summary: "Set the delegations property: An array of references to the delegations on the subnet."
parameters:
- description: "the delegations value to set."
name: "delegations"
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/util/List.html\">List</a>&lt;<xref href=\"com.azure.resourcemanager.network.models.Delegation?alt=com.azure.resourcemanager.network.models.Delegation&text=Delegation\" data-throw-if-not-resolved=\"False\" />&gt;"
syntax: "public SubnetInner withDelegations(List<Delegation> delegations)"
desc: "Set the delegations property: An array of references to the delegations on the subnet."
returns:
description: "the SubnetInner object itself."
type: "<xref href=\"com.azure.resourcemanager.network.fluent.models.SubnetInner?alt=com.azure.resourcemanager.network.fluent.models.SubnetInner&text=SubnetInner\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.resourcemanager.network.fluent.models.SubnetInner.withId(java.lang.String)"
fullName: "com.azure.resourcemanager.network.fluent.models.SubnetInner.withId(String id)"
name: "withId(String id)"
nameWithType: "SubnetInner.withId(String id)"
overridden: "com.azure.core.management.SubResource.withId(java.lang.String)"
parameters:
- name: "id"
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
syntax: "public SubnetInner withId(String id)"
returns:
type: "<xref href=\"com.azure.resourcemanager.network.fluent.models.SubnetInner?alt=com.azure.resourcemanager.network.fluent.models.SubnetInner&text=SubnetInner\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.resourcemanager.network.fluent.models.SubnetInner.withIpAllocations(java.util.List<com.azure.core.management.SubResource>)"
fullName: "com.azure.resourcemanager.network.fluent.models.SubnetInner.withIpAllocations(List<SubResource> ipAllocations)"
name: "withIpAllocations(List<SubResource> ipAllocations)"
nameWithType: "SubnetInner.withIpAllocations(List<SubResource> ipAllocations)"
summary: "Set the ip<wbr>Allocations property: Array of Ip<wbr>Allocation which reference this subnet."
parameters:
- description: "the ipAllocations value to set."
name: "ipAllocations"
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/util/List.html\">List</a>&lt;<xref href=\"com.azure.core.management.SubResource?alt=com.azure.core.management.SubResource&text=SubResource\" data-throw-if-not-resolved=\"False\" />&gt;"
syntax: "public SubnetInner withIpAllocations(List<SubResource> ipAllocations)"
desc: "Set the ipAllocations property: Array of IpAllocation which reference this subnet."
returns:
description: "the SubnetInner object itself."
type: "<xref href=\"com.azure.resourcemanager.network.fluent.models.SubnetInner?alt=com.azure.resourcemanager.network.fluent.models.SubnetInner&text=SubnetInner\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.resourcemanager.network.fluent.models.SubnetInner.withName(java.lang.String)"
fullName: "com.azure.resourcemanager.network.fluent.models.SubnetInner.withName(String name)"
name: "withName(String name)"
nameWithType: "SubnetInner.withName(String name)"
summary: "Set the name property: The name of the resource that is unique within a resource group."
parameters:
- description: "the name value to set."
name: "name"
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
syntax: "public SubnetInner withName(String name)"
desc: "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."
returns:
description: "the SubnetInner object itself."
type: "<xref href=\"com.azure.resourcemanager.network.fluent.models.SubnetInner?alt=com.azure.resourcemanager.network.fluent.models.SubnetInner&text=SubnetInner\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.resourcemanager.network.fluent.models.SubnetInner.withNatGateway(com.azure.core.management.SubResource)"
fullName: "com.azure.resourcemanager.network.fluent.models.SubnetInner.withNatGateway(SubResource natGateway)"
name: "withNatGateway(SubResource natGateway)"
nameWithType: "SubnetInner.withNatGateway(SubResource natGateway)"
summary: "Set the nat<wbr>Gateway property: Nat gateway associated with this subnet."
parameters:
- description: "the natGateway value to set."
name: "natGateway"
type: "<xref href=\"com.azure.core.management.SubResource?alt=com.azure.core.management.SubResource&text=SubResource\" data-throw-if-not-resolved=\"False\" />"
syntax: "public SubnetInner withNatGateway(SubResource natGateway)"
desc: "Set the natGateway property: Nat gateway associated with this subnet."
returns:
description: "the SubnetInner object itself."
type: "<xref href=\"com.azure.resourcemanager.network.fluent.models.SubnetInner?alt=com.azure.resourcemanager.network.fluent.models.SubnetInner&text=SubnetInner\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.resourcemanager.network.fluent.models.SubnetInner.withNetworkSecurityGroup(com.azure.resourcemanager.network.fluent.models.NetworkSecurityGroupInner)"
fullName: "com.azure.resourcemanager.network.fluent.models.SubnetInner.withNetworkSecurityGroup(NetworkSecurityGroupInner networkSecurityGroup)"
name: "withNetworkSecurityGroup(NetworkSecurityGroupInner networkSecurityGroup)"
nameWithType: "SubnetInner.withNetworkSecurityGroup(NetworkSecurityGroupInner networkSecurityGroup)"
summary: "Set the network<wbr>Security<wbr>Group property: The reference to the Network<wbr>Security<wbr>Group resource."
parameters:
- description: "the networkSecurityGroup value to set."
name: "networkSecurityGroup"
type: "<xref href=\"com.azure.resourcemanager.network.fluent.models.NetworkSecurityGroupInner?alt=com.azure.resourcemanager.network.fluent.models.NetworkSecurityGroupInner&text=NetworkSecurityGroupInner\" data-throw-if-not-resolved=\"False\" />"
syntax: "public SubnetInner withNetworkSecurityGroup(NetworkSecurityGroupInner networkSecurityGroup)"
desc: "Set the networkSecurityGroup property: The reference to the NetworkSecurityGroup resource."
returns:
description: "the SubnetInner object itself."
type: "<xref href=\"com.azure.resourcemanager.network.fluent.models.SubnetInner?alt=com.azure.resourcemanager.network.fluent.models.SubnetInner&text=SubnetInner\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.resourcemanager.network.fluent.models.SubnetInner.withPrivateEndpointNetworkPolicies(com.azure.resourcemanager.network.models.VirtualNetworkPrivateEndpointNetworkPolicies)"
fullName: "com.azure.resourcemanager.network.fluent.models.SubnetInner.withPrivateEndpointNetworkPolicies(VirtualNetworkPrivateEndpointNetworkPolicies privateEndpointNetworkPolicies)"
name: "withPrivateEndpointNetworkPolicies(VirtualNetworkPrivateEndpointNetworkPolicies privateEndpointNetworkPolicies)"
nameWithType: "SubnetInner.withPrivateEndpointNetworkPolicies(VirtualNetworkPrivateEndpointNetworkPolicies privateEndpointNetworkPolicies)"
summary: "Set the private<wbr>Endpoint<wbr>Network<wbr>Policies property: Enable or Disable apply network policies on private end point in the subnet."
parameters:
- description: "the privateEndpointNetworkPolicies value to set."
name: "privateEndpointNetworkPolicies"
type: "<xref href=\"com.azure.resourcemanager.network.models.VirtualNetworkPrivateEndpointNetworkPolicies?alt=com.azure.resourcemanager.network.models.VirtualNetworkPrivateEndpointNetworkPolicies&text=VirtualNetworkPrivateEndpointNetworkPolicies\" data-throw-if-not-resolved=\"False\" />"
syntax: "public SubnetInner withPrivateEndpointNetworkPolicies(VirtualNetworkPrivateEndpointNetworkPolicies privateEndpointNetworkPolicies)"
desc: "Set the privateEndpointNetworkPolicies property: Enable or Disable apply network policies on private end point in the subnet."
returns:
description: "the SubnetInner object itself."
type: "<xref href=\"com.azure.resourcemanager.network.fluent.models.SubnetInner?alt=com.azure.resourcemanager.network.fluent.models.SubnetInner&text=SubnetInner\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.resourcemanager.network.fluent.models.SubnetInner.withPrivateLinkServiceNetworkPolicies(com.azure.resourcemanager.network.models.VirtualNetworkPrivateLinkServiceNetworkPolicies)"
fullName: "com.azure.resourcemanager.network.fluent.models.SubnetInner.withPrivateLinkServiceNetworkPolicies(VirtualNetworkPrivateLinkServiceNetworkPolicies privateLinkServiceNetworkPolicies)"
name: "withPrivateLinkServiceNetworkPolicies(VirtualNetworkPrivateLinkServiceNetworkPolicies privateLinkServiceNetworkPolicies)"
nameWithType: "SubnetInner.withPrivateLinkServiceNetworkPolicies(VirtualNetworkPrivateLinkServiceNetworkPolicies privateLinkServiceNetworkPolicies)"
summary: "Set the private<wbr>Link<wbr>Service<wbr>Network<wbr>Policies property: Enable or Disable apply network policies on private link service in the subnet."
parameters:
- description: "the privateLinkServiceNetworkPolicies value to set."
name: "privateLinkServiceNetworkPolicies"
type: "<xref href=\"com.azure.resourcemanager.network.models.VirtualNetworkPrivateLinkServiceNetworkPolicies?alt=com.azure.resourcemanager.network.models.VirtualNetworkPrivateLinkServiceNetworkPolicies&text=VirtualNetworkPrivateLinkServiceNetworkPolicies\" data-throw-if-not-resolved=\"False\" />"
syntax: "public SubnetInner withPrivateLinkServiceNetworkPolicies(VirtualNetworkPrivateLinkServiceNetworkPolicies privateLinkServiceNetworkPolicies)"
desc: "Set the privateLinkServiceNetworkPolicies property: Enable or Disable apply network policies on private link service in the subnet."
returns:
description: "the SubnetInner object itself."
type: "<xref href=\"com.azure.resourcemanager.network.fluent.models.SubnetInner?alt=com.azure.resourcemanager.network.fluent.models.SubnetInner&text=SubnetInner\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.resourcemanager.network.fluent.models.SubnetInner.withRouteTable(com.azure.resourcemanager.network.fluent.models.RouteTableInner)"
fullName: "com.azure.resourcemanager.network.fluent.models.SubnetInner.withRouteTable(RouteTableInner routeTable)"
name: "withRouteTable(RouteTableInner routeTable)"
nameWithType: "SubnetInner.withRouteTable(RouteTableInner routeTable)"
summary: "Set the route<wbr>Table property: The reference to the Route<wbr>Table resource."
parameters:
- description: "the routeTable value to set."
name: "routeTable"
type: "<xref href=\"com.azure.resourcemanager.network.fluent.models.RouteTableInner?alt=com.azure.resourcemanager.network.fluent.models.RouteTableInner&text=RouteTableInner\" data-throw-if-not-resolved=\"False\" />"
syntax: "public SubnetInner withRouteTable(RouteTableInner routeTable)"
desc: "Set the routeTable property: The reference to the RouteTable resource."
returns:
description: "the SubnetInner object itself."
type: "<xref href=\"com.azure.resourcemanager.network.fluent.models.SubnetInner?alt=com.azure.resourcemanager.network.fluent.models.SubnetInner&text=SubnetInner\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.resourcemanager.network.fluent.models.SubnetInner.withServiceEndpointPolicies(java.util.List<com.azure.resourcemanager.network.fluent.models.ServiceEndpointPolicyInner>)"
fullName: "com.azure.resourcemanager.network.fluent.models.SubnetInner.withServiceEndpointPolicies(List<ServiceEndpointPolicyInner> serviceEndpointPolicies)"
name: "withServiceEndpointPolicies(List<ServiceEndpointPolicyInner> serviceEndpointPolicies)"
nameWithType: "SubnetInner.withServiceEndpointPolicies(List<ServiceEndpointPolicyInner> serviceEndpointPolicies)"
summary: "Set the service<wbr>Endpoint<wbr>Policies property: An array of service endpoint policies."
parameters:
- description: "the serviceEndpointPolicies value to set."
name: "serviceEndpointPolicies"
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/util/List.html\">List</a>&lt;<xref href=\"com.azure.resourcemanager.network.fluent.models.ServiceEndpointPolicyInner?alt=com.azure.resourcemanager.network.fluent.models.ServiceEndpointPolicyInner&text=ServiceEndpointPolicyInner\" data-throw-if-not-resolved=\"False\" />&gt;"
syntax: "public SubnetInner withServiceEndpointPolicies(List<ServiceEndpointPolicyInner> serviceEndpointPolicies)"
desc: "Set the serviceEndpointPolicies property: An array of service endpoint policies."
returns:
description: "the SubnetInner object itself."
type: "<xref href=\"com.azure.resourcemanager.network.fluent.models.SubnetInner?alt=com.azure.resourcemanager.network.fluent.models.SubnetInner&text=SubnetInner\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.resourcemanager.network.fluent.models.SubnetInner.withServiceEndpoints(java.util.List<com.azure.resourcemanager.network.models.ServiceEndpointPropertiesFormat>)"
fullName: "com.azure.resourcemanager.network.fluent.models.SubnetInner.withServiceEndpoints(List<ServiceEndpointPropertiesFormat> serviceEndpoints)"
name: "withServiceEndpoints(List<ServiceEndpointPropertiesFormat> serviceEndpoints)"
nameWithType: "SubnetInner.withServiceEndpoints(List<ServiceEndpointPropertiesFormat> serviceEndpoints)"
summary: "Set the service<wbr>Endpoints property: An array of service endpoints."
parameters:
- description: "the serviceEndpoints value to set."
name: "serviceEndpoints"
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/util/List.html\">List</a>&lt;<xref href=\"com.azure.resourcemanager.network.models.ServiceEndpointPropertiesFormat?alt=com.azure.resourcemanager.network.models.ServiceEndpointPropertiesFormat&text=ServiceEndpointPropertiesFormat\" data-throw-if-not-resolved=\"False\" />&gt;"
syntax: "public SubnetInner withServiceEndpoints(List<ServiceEndpointPropertiesFormat> serviceEndpoints)"
desc: "Set the serviceEndpoints property: An array of service endpoints."
returns:
description: "the SubnetInner object itself."
type: "<xref href=\"com.azure.resourcemanager.network.fluent.models.SubnetInner?alt=com.azure.resourcemanager.network.fluent.models.SubnetInner&text=SubnetInner\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.resourcemanager.network.fluent.models.SubnetInner.withSharingScope(com.azure.resourcemanager.network.models.SharingScope)"
fullName: "com.azure.resourcemanager.network.fluent.models.SubnetInner.withSharingScope(SharingScope sharingScope)"
name: "withSharingScope(SharingScope sharingScope)"
nameWithType: "SubnetInner.withSharingScope(SharingScope sharingScope)"
summary: "Set the sharing<wbr>Scope property: Set this property to Tenant to allow sharing subnet with other subscriptions in your AAD tenant."
parameters:
- description: "the sharingScope value to set."
name: "sharingScope"
type: "<xref href=\"com.azure.resourcemanager.network.models.SharingScope?alt=com.azure.resourcemanager.network.models.SharingScope&text=SharingScope\" data-throw-if-not-resolved=\"False\" />"
syntax: "public SubnetInner withSharingScope(SharingScope sharingScope)"
desc: "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."
returns:
description: "the SubnetInner object itself."
type: "<xref href=\"com.azure.resourcemanager.network.fluent.models.SubnetInner?alt=com.azure.resourcemanager.network.fluent.models.SubnetInner&text=SubnetInner\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.resourcemanager.network.fluent.models.SubnetInner.withType(java.lang.String)"
fullName: "com.azure.resourcemanager.network.fluent.models.SubnetInner.withType(String type)"
name: "withType(String type)"
nameWithType: "SubnetInner.withType(String type)"
summary: "Set the type property: Resource type."
parameters:
- description: "the type value to set."
name: "type"
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
syntax: "public SubnetInner withType(String type)"
desc: "Set the type property: Resource type."
returns:
description: "the SubnetInner object itself."
type: "<xref href=\"com.azure.resourcemanager.network.fluent.models.SubnetInner?alt=com.azure.resourcemanager.network.fluent.models.SubnetInner&text=SubnetInner\" data-throw-if-not-resolved=\"False\" />"
type: "class"
desc: "Subnet in a virtual network resource."
metadata: {}
package: "com.azure.resourcemanager.network.fluent.models"
artifact: com.azure.resourcemanager:azure-resourcemanager-network:2.44.0