com.azure.resourcemanager.network.fluent.models.RouteTableInner Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-resourcemanager-network Show documentation
Show all versions of azure-resourcemanager-network Show documentation
This package contains Microsoft Azure Network Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.network.fluent.models;
import com.azure.core.annotation.Fluent;
import com.azure.core.management.Resource;
import com.azure.resourcemanager.network.models.ProvisioningState;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
import java.util.Map;
/**
* Route table resource.
*/
@Fluent
public final class RouteTableInner extends Resource {
/*
* Properties of the route table.
*/
@JsonProperty(value = "properties")
private RouteTablePropertiesFormat innerProperties;
/*
* A unique read-only string that changes whenever the resource is updated.
*/
@JsonProperty(value = "etag", access = JsonProperty.Access.WRITE_ONLY)
private String etag;
/*
* Resource ID.
*/
@JsonProperty(value = "id")
private String id;
/**
* Creates an instance of RouteTableInner class.
*/
public RouteTableInner() {
}
/**
* Get the innerProperties property: Properties of the route table.
*
* @return the innerProperties value.
*/
private RouteTablePropertiesFormat innerProperties() {
return this.innerProperties;
}
/**
* Get the etag property: A unique read-only string that changes whenever the resource is updated.
*
* @return the etag value.
*/
public String etag() {
return this.etag;
}
/**
* Get the id property: Resource ID.
*
* @return the id value.
*/
public String id() {
return this.id;
}
/**
* Set the id property: Resource ID.
*
* @param id the id value to set.
* @return the RouteTableInner object itself.
*/
public RouteTableInner withId(String id) {
this.id = id;
return this;
}
/**
* {@inheritDoc}
*/
@Override
public RouteTableInner withLocation(String location) {
super.withLocation(location);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public RouteTableInner withTags(Map tags) {
super.withTags(tags);
return this;
}
/**
* Get the routes property: Collection of routes contained within a route table.
*
* @return the routes value.
*/
public List routes() {
return this.innerProperties() == null ? null : this.innerProperties().routes();
}
/**
* Set the routes property: Collection of routes contained within a route table.
*
* @param routes the routes value to set.
* @return the RouteTableInner object itself.
*/
public RouteTableInner withRoutes(List routes) {
if (this.innerProperties() == null) {
this.innerProperties = new RouteTablePropertiesFormat();
}
this.innerProperties().withRoutes(routes);
return this;
}
/**
* Get the subnets property: A collection of references to subnets.
*
* @return the subnets value.
*/
public List subnets() {
return this.innerProperties() == null ? null : this.innerProperties().subnets();
}
/**
* Get the disableBgpRoutePropagation property: Whether to disable the routes learned by BGP on that route table.
* True means disable.
*
* @return the disableBgpRoutePropagation value.
*/
public Boolean disableBgpRoutePropagation() {
return this.innerProperties() == null ? null : this.innerProperties().disableBgpRoutePropagation();
}
/**
* Set the disableBgpRoutePropagation property: Whether to disable the routes learned by BGP on that route table.
* True means disable.
*
* @param disableBgpRoutePropagation the disableBgpRoutePropagation value to set.
* @return the RouteTableInner object itself.
*/
public RouteTableInner withDisableBgpRoutePropagation(Boolean disableBgpRoutePropagation) {
if (this.innerProperties() == null) {
this.innerProperties = new RouteTablePropertiesFormat();
}
this.innerProperties().withDisableBgpRoutePropagation(disableBgpRoutePropagation);
return this;
}
/**
* Get the provisioningState property: The provisioning state of the route table resource.
*
* @return the provisioningState value.
*/
public ProvisioningState provisioningState() {
return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
}
/**
* Get the resourceGuid property: The resource GUID property of the route table.
*
* @return the resourceGuid value.
*/
public String resourceGuid() {
return this.innerProperties() == null ? null : this.innerProperties().resourceGuid();
}
/**
* Validates the instance.
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
if (innerProperties() != null) {
innerProperties().validate();
}
}
}