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.network.implementation;
import com.microsoft.azure.management.network.ProvisioningState;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.microsoft.rest.serializer.JsonFlatten;
import com.microsoft.azure.SubResource;
Virtual Router Peering resource.
/**
* Virtual Router Peering resource.
*/
@JsonFlatten
public class VirtualRouterPeeringInner extends SubResource {
Peer ASN.
/**
* Peer ASN.
*/
@JsonProperty(value = "properties.peerAsn")
private Long peerAsn;
Peer IP.
/**
* Peer IP.
*/
@JsonProperty(value = "properties.peerIp")
private String peerIp;
The provisioning state of the resource. Possible values include:
'Succeeded', 'Updating', 'Deleting', 'Failed'.
/**
* The provisioning state of the resource. Possible values include:
* 'Succeeded', 'Updating', 'Deleting', 'Failed'.
*/
@JsonProperty(value = "properties.provisioningState", access = JsonProperty.Access.WRITE_ONLY)
private ProvisioningState provisioningState;
Name of the virtual router peering that is unique within a virtual
router.
/**
* Name of the virtual router peering that is unique within a virtual
* router.
*/
@JsonProperty(value = "name")
private String name;
A unique read-only string that changes whenever the resource is updated.
/**
* A unique read-only string that changes whenever the resource is updated.
*/
@JsonProperty(value = "etag", access = JsonProperty.Access.WRITE_ONLY)
private String etag;
Peering type.
/**
* Peering type.
*/
@JsonProperty(value = "type", access = JsonProperty.Access.WRITE_ONLY)
private String type;
Get peer ASN.
Returns: the peerAsn value
/**
* Get peer ASN.
*
* @return the peerAsn value
*/
public Long peerAsn() {
return this.peerAsn;
}
Set peer ASN.
Params: - peerAsn – the peerAsn value to set
Returns: the VirtualRouterPeeringInner object itself.
/**
* Set peer ASN.
*
* @param peerAsn the peerAsn value to set
* @return the VirtualRouterPeeringInner object itself.
*/
public VirtualRouterPeeringInner withPeerAsn(Long peerAsn) {
this.peerAsn = peerAsn;
return this;
}
Get peer IP.
Returns: the peerIp value
/**
* Get peer IP.
*
* @return the peerIp value
*/
public String peerIp() {
return this.peerIp;
}
Set peer IP.
Params: - peerIp – the peerIp value to set
Returns: the VirtualRouterPeeringInner object itself.
/**
* Set peer IP.
*
* @param peerIp the peerIp value to set
* @return the VirtualRouterPeeringInner object itself.
*/
public VirtualRouterPeeringInner withPeerIp(String peerIp) {
this.peerIp = peerIp;
return this;
}
Get the provisioning state of the resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed'.
Returns: the provisioningState value
/**
* Get the provisioning state of the resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed'.
*
* @return the provisioningState value
*/
public ProvisioningState provisioningState() {
return this.provisioningState;
}
Get name of the virtual router peering that is unique within a virtual router.
Returns: the name value
/**
* Get name of the virtual router peering that is unique within a virtual router.
*
* @return the name value
*/
public String name() {
return this.name;
}
Set name of the virtual router peering that is unique within a virtual router.
Params: - name – the name value to set
Returns: the VirtualRouterPeeringInner object itself.
/**
* Set name of the virtual router peering that is unique within a virtual router.
*
* @param name the name value to set
* @return the VirtualRouterPeeringInner object itself.
*/
public VirtualRouterPeeringInner withName(String name) {
this.name = name;
return this;
}
Get a unique read-only string that changes whenever the resource is updated.
Returns: the etag value
/**
* Get a unique read-only string that changes whenever the resource is updated.
*
* @return the etag value
*/
public String etag() {
return this.etag;
}
Get peering type.
Returns: the type value
/**
* Get peering type.
*
* @return the type value
*/
public String type() {
return this.type;
}
}