com.azure.resourcemanager.network.models.VirtualHubRouteTable 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.models;
import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
/**
* VirtualHub route table.
*/
@Fluent
public final class VirtualHubRouteTable {
/*
* List of all routes.
*/
@JsonProperty(value = "routes")
private List routes;
/**
* Creates an instance of VirtualHubRouteTable class.
*/
public VirtualHubRouteTable() {
}
/**
* Get the routes property: List of all routes.
*
* @return the routes value.
*/
public List routes() {
return this.routes;
}
/**
* Set the routes property: List of all routes.
*
* @param routes the routes value to set.
* @return the VirtualHubRouteTable object itself.
*/
public VirtualHubRouteTable withRoutes(List routes) {
this.routes = routes;
return this;
}
/**
* Validates the instance.
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
if (routes() != null) {
routes().forEach(e -> e.validate());
}
}
}