All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.aliyun.sdk.service.cbn20170912.models.ListTransitRouterCidrResponseBody Maven / Gradle / Ivy

// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.cbn20170912.models;

import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;

/**
 * {@link ListTransitRouterCidrResponseBody} extends {@link TeaModel}
 *
 * 

ListTransitRouterCidrResponseBody

*/ public class ListTransitRouterCidrResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("CidrLists") private java.util.List < CidrLists> cidrLists; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private ListTransitRouterCidrResponseBody(Builder builder) { this.cidrLists = builder.cidrLists; this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static ListTransitRouterCidrResponseBody create() { return builder().build(); } /** * @return cidrLists */ public java.util.List < CidrLists> getCidrLists() { return this.cidrLists; } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private java.util.List < CidrLists> cidrLists; private String requestId; /** * The information about the CIDR block. */ public Builder cidrLists(java.util.List < CidrLists> cidrLists) { this.cidrLists = cidrLists; return this; } /** * The ID of the request. */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public ListTransitRouterCidrResponseBody build() { return new ListTransitRouterCidrResponseBody(this); } } public static class CidrLists extends TeaModel { @com.aliyun.core.annotation.NameInMap("Cidr") private String cidr; @com.aliyun.core.annotation.NameInMap("Description") private String description; @com.aliyun.core.annotation.NameInMap("Family") private String family; @com.aliyun.core.annotation.NameInMap("Name") private String name; @com.aliyun.core.annotation.NameInMap("PublishCidrRoute") private Boolean publishCidrRoute; @com.aliyun.core.annotation.NameInMap("TransitRouterCidrId") private String transitRouterCidrId; @com.aliyun.core.annotation.NameInMap("TransitRouterId") private String transitRouterId; private CidrLists(Builder builder) { this.cidr = builder.cidr; this.description = builder.description; this.family = builder.family; this.name = builder.name; this.publishCidrRoute = builder.publishCidrRoute; this.transitRouterCidrId = builder.transitRouterCidrId; this.transitRouterId = builder.transitRouterId; } public static Builder builder() { return new Builder(); } public static CidrLists create() { return builder().build(); } /** * @return cidr */ public String getCidr() { return this.cidr; } /** * @return description */ public String getDescription() { return this.description; } /** * @return family */ public String getFamily() { return this.family; } /** * @return name */ public String getName() { return this.name; } /** * @return publishCidrRoute */ public Boolean getPublishCidrRoute() { return this.publishCidrRoute; } /** * @return transitRouterCidrId */ public String getTransitRouterCidrId() { return this.transitRouterCidrId; } /** * @return transitRouterId */ public String getTransitRouterId() { return this.transitRouterId; } public static final class Builder { private String cidr; private String description; private String family; private String name; private Boolean publishCidrRoute; private String transitRouterCidrId; private String transitRouterId; /** * The CIDR block of the transit router. */ public Builder cidr(String cidr) { this.cidr = cidr; return this; } /** * The description of the CIDR block. */ public Builder description(String description) { this.description = description; return this; } /** * The type of the CIDR block. *

* * The value is **IPv4**, which indicates that the CIDR block is of the IPv4 type. */ public Builder family(String family) { this.family = family; return this; } /** * The name of the CIDR block. */ public Builder name(String name) { this.name = name; return this; } /** * Indicates whether the system is allowed to automatically add a route to the route table of the transit router. Valid values: *

* * * **true** * * A value of **true** indicates that after you create a private VPN connection and enable route learning for the connection, the system automatically adds a blackhole route to the route table of the transit router to which the VPN connection is attached. * * The destination CIDR block of the blackhole route is the CIDR block of the transit router. The CIDR block of the transit router refers to the CIDR block from which gateway IP addresses are allocated to IPsec-VPN connections. * * The blackhole route is advertised only to the route table of the virtual border router (VBR) that is connected to the transit router. * * * **false** */ public Builder publishCidrRoute(Boolean publishCidrRoute) { this.publishCidrRoute = publishCidrRoute; return this; } /** * The ID of the transit router CIDR block. */ public Builder transitRouterCidrId(String transitRouterCidrId) { this.transitRouterCidrId = transitRouterCidrId; return this; } /** * The transit router ID. */ public Builder transitRouterId(String transitRouterId) { this.transitRouterId = transitRouterId; return this; } public CidrLists build() { return new CidrLists(this); } } } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy