VirtualRouterInner Class
- java.
lang. Object - com.
azure. core. management. ProxyResource - com.
azure. core. management. Resource - com.
azure. resourcemanager. network. fluent. models. VirtualRouterInner
- com.
- com.
- com.
public final class VirtualRouterInner
extends Resource
VirtualRouter Resource.
Constructor Summary
Constructor | Description |
---|---|
VirtualRouterInner() |
Creates an instance of Virtual |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
etag()
Get the etag property: A unique read-only string that changes whenever the resource is updated. |
static
Virtual |
fromJson(JsonReader jsonReader)
Reads an instance of Virtual |
Sub |
hostedGateway()
Get the hosted |
Sub |
hostedSubnet()
Get the hosted |
String |
id()
Get the id property: Resource ID. |
String |
name()
Get the name property: The name of the resource. |
List<Sub |
peerings()
Get the peerings property: List of references to Virtual |
Provisioning |
provisioningState()
Get the provisioning |
Json |
toJson(JsonWriter jsonWriter) |
String |
type()
Get the type property: The type of the resource. |
void |
validate()
Validates the instance. |
Long |
virtualRouterAsn()
Get the virtual |
List<String> |
virtualRouterIps()
Get the virtual |
Virtual |
withHostedGateway(SubResource hostedGateway)
Set the hosted |
Virtual |
withHostedSubnet(SubResource hostedSubnet)
Set the hosted |
Virtual |
withId(String id)
Set the id property: Resource ID. |
Virtual |
withLocation(String location) |
Virtual |
withTags(Map<String,String> tags) |
Virtual |
withVirtualRouterAsn(Long virtualRouterAsn)
Set the virtual |
Virtual |
withVirtualRouterIps(List<String> virtualRouterIps)
Set the virtual |
Methods inherited from ProxyResource
Methods inherited from Resource
Methods inherited from java.lang.Object
Constructor Details
VirtualRouterInner
public VirtualRouterInner()
Creates an instance of VirtualRouterInner class.
Method Details
etag
public String etag()
Get the etag property: A unique read-only string that changes whenever the resource is updated.
Returns:
fromJson
public static VirtualRouterInner fromJson(JsonReader jsonReader)
Reads an instance of VirtualRouterInner from the JsonReader.
Parameters:
Returns:
Throws:
hostedGateway
public SubResource hostedGateway()
Get the hostedGateway property: The Gateway on which VirtualRouter is hosted.
Returns:
hostedSubnet
public SubResource hostedSubnet()
Get the hostedSubnet property: The Subnet on which VirtualRouter is hosted.
Returns:
id
public String id()
Get the id property: Resource ID.
Overrides:
VirtualRouterInner.id()Returns:
name
public String name()
Get the name property: The name of the resource.
Overrides:
VirtualRouterInner.name()Returns:
peerings
public List
Get the peerings property: List of references to VirtualRouterPeerings.
Returns:
provisioningState
public ProvisioningState provisioningState()
Get the provisioningState property: The provisioning state of the resource.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
VirtualRouterInner.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: The type of the resource.
Overrides:
VirtualRouterInner.type()Returns:
validate
public void validate()
Validates the instance.
virtualRouterAsn
public Long virtualRouterAsn()
Get the virtualRouterAsn property: VirtualRouter ASN.
Returns:
virtualRouterIps
public List
Get the virtualRouterIps property: VirtualRouter IPs.
Returns:
withHostedGateway
public VirtualRouterInner withHostedGateway(SubResource hostedGateway)
Set the hostedGateway property: The Gateway on which VirtualRouter is hosted.
Parameters:
Returns:
withHostedSubnet
public VirtualRouterInner withHostedSubnet(SubResource hostedSubnet)
Set the hostedSubnet property: The Subnet on which VirtualRouter is hosted.
Parameters:
Returns:
withId
public VirtualRouterInner withId(String id)
Set the id property: Resource ID.
Parameters:
Returns:
withLocation
public VirtualRouterInner withLocation(String location)
Overrides:
VirtualRouterInner.withLocation(String location)Parameters:
withTags
public VirtualRouterInner withTags(Map
Overrides:
VirtualRouterInner.withTags(Map<String,String> tags)Parameters:
withVirtualRouterAsn
public VirtualRouterInner withVirtualRouterAsn(Long virtualRouterAsn)
Set the virtualRouterAsn property: VirtualRouter ASN.
Parameters:
Returns:
withVirtualRouterIps
public VirtualRouterInner withVirtualRouterIps(List
Set the virtualRouterIps property: VirtualRouter IPs.
Parameters:
Returns:
Applies to
Azure SDK for Java