
com.aliyun.sdk.service.cbn20170912.models.ListTransitRouterVpcAttachmentsResponseBody 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 ListTransitRouterVpcAttachmentsResponseBody} extends {@link TeaModel}
*
* ListTransitRouterVpcAttachmentsResponseBody
*/
public class ListTransitRouterVpcAttachmentsResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("MaxResults")
private Integer maxResults;
@com.aliyun.core.annotation.NameInMap("NextToken")
private String nextToken;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("TotalCount")
private Integer totalCount;
@com.aliyun.core.annotation.NameInMap("TransitRouterAttachments")
private java.util.List < TransitRouterAttachments> transitRouterAttachments;
private ListTransitRouterVpcAttachmentsResponseBody(Builder builder) {
this.maxResults = builder.maxResults;
this.nextToken = builder.nextToken;
this.requestId = builder.requestId;
this.totalCount = builder.totalCount;
this.transitRouterAttachments = builder.transitRouterAttachments;
}
public static Builder builder() {
return new Builder();
}
public static ListTransitRouterVpcAttachmentsResponseBody create() {
return builder().build();
}
/**
* @return maxResults
*/
public Integer getMaxResults() {
return this.maxResults;
}
/**
* @return nextToken
*/
public String getNextToken() {
return this.nextToken;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return totalCount
*/
public Integer getTotalCount() {
return this.totalCount;
}
/**
* @return transitRouterAttachments
*/
public java.util.List < TransitRouterAttachments> getTransitRouterAttachments() {
return this.transitRouterAttachments;
}
public static final class Builder {
private Integer maxResults;
private String nextToken;
private String requestId;
private Integer totalCount;
private java.util.List < TransitRouterAttachments> transitRouterAttachments;
/**
* The number of entries returned per page.
*/
public Builder maxResults(Integer maxResults) {
this.maxResults = maxResults;
return this;
}
/**
* The token that determines the start point of the next query. Valid values:
*
*
* * If **NextToken** is returned, it indicates that no additional results exist.
* * If **NextToken** was returned in the previous query, specify the value to obtain the next set of results.
*/
public Builder nextToken(String nextToken) {
this.nextToken = nextToken;
return this;
}
/**
* The ID of the region.
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* The total number of entries returned.
*/
public Builder totalCount(Integer totalCount) {
this.totalCount = totalCount;
return this;
}
/**
* The information about the VPC connection.
*/
public Builder transitRouterAttachments(java.util.List < TransitRouterAttachments> transitRouterAttachments) {
this.transitRouterAttachments = transitRouterAttachments;
return this;
}
public ListTransitRouterVpcAttachmentsResponseBody build() {
return new ListTransitRouterVpcAttachmentsResponseBody(this);
}
}
public static class Tags extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Key")
private String key;
@com.aliyun.core.annotation.NameInMap("Value")
private String value;
private Tags(Builder builder) {
this.key = builder.key;
this.value = builder.value;
}
public static Builder builder() {
return new Builder();
}
public static Tags create() {
return builder().build();
}
/**
* @return key
*/
public String getKey() {
return this.key;
}
/**
* @return value
*/
public String getValue() {
return this.value;
}
public static final class Builder {
private String key;
private String value;
/**
* The tag key.
*/
public Builder key(String key) {
this.key = key;
return this;
}
/**
* The tag value.
*/
public Builder value(String value) {
this.value = value;
return this;
}
public Tags build() {
return new Tags(this);
}
}
}
public static class ZoneMappings extends TeaModel {
@com.aliyun.core.annotation.NameInMap("NetworkInterfaceId")
private String networkInterfaceId;
@com.aliyun.core.annotation.NameInMap("VSwitchId")
private String vSwitchId;
@com.aliyun.core.annotation.NameInMap("ZoneId")
private String zoneId;
private ZoneMappings(Builder builder) {
this.networkInterfaceId = builder.networkInterfaceId;
this.vSwitchId = builder.vSwitchId;
this.zoneId = builder.zoneId;
}
public static Builder builder() {
return new Builder();
}
public static ZoneMappings create() {
return builder().build();
}
/**
* @return networkInterfaceId
*/
public String getNetworkInterfaceId() {
return this.networkInterfaceId;
}
/**
* @return vSwitchId
*/
public String getVSwitchId() {
return this.vSwitchId;
}
/**
* @return zoneId
*/
public String getZoneId() {
return this.zoneId;
}
public static final class Builder {
private String networkInterfaceId;
private String vSwitchId;
private String zoneId;
/**
* The ID of the ENI created by the Enterprise Edition transit router in the vSwitch.
*/
public Builder networkInterfaceId(String networkInterfaceId) {
this.networkInterfaceId = networkInterfaceId;
return this;
}
/**
* The vSwitch ID.
*/
public Builder vSwitchId(String vSwitchId) {
this.vSwitchId = vSwitchId;
return this;
}
/**
* The zone ID.
*/
public Builder zoneId(String zoneId) {
this.zoneId = zoneId;
return this;
}
public ZoneMappings build() {
return new ZoneMappings(this);
}
}
}
public static class TransitRouterAttachments extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AutoPublishRouteEnabled")
private Boolean autoPublishRouteEnabled;
@com.aliyun.core.annotation.NameInMap("CenId")
private String cenId;
@com.aliyun.core.annotation.NameInMap("ChargeType")
private String chargeType;
@com.aliyun.core.annotation.NameInMap("CreationTime")
private String creationTime;
@com.aliyun.core.annotation.NameInMap("OrderType")
private String orderType;
@com.aliyun.core.annotation.NameInMap("ResourceType")
private String resourceType;
@com.aliyun.core.annotation.NameInMap("Status")
private String status;
@com.aliyun.core.annotation.NameInMap("Tags")
private java.util.List < Tags> tags;
@com.aliyun.core.annotation.NameInMap("TransitRouterAttachmentDescription")
private String transitRouterAttachmentDescription;
@com.aliyun.core.annotation.NameInMap("TransitRouterAttachmentId")
private String transitRouterAttachmentId;
@com.aliyun.core.annotation.NameInMap("TransitRouterAttachmentName")
private String transitRouterAttachmentName;
@com.aliyun.core.annotation.NameInMap("TransitRouterId")
private String transitRouterId;
@com.aliyun.core.annotation.NameInMap("VpcId")
private String vpcId;
@com.aliyun.core.annotation.NameInMap("VpcOwnerId")
private Long vpcOwnerId;
@com.aliyun.core.annotation.NameInMap("VpcRegionId")
private String vpcRegionId;
@com.aliyun.core.annotation.NameInMap("ZoneMappings")
private java.util.List < ZoneMappings> zoneMappings;
private TransitRouterAttachments(Builder builder) {
this.autoPublishRouteEnabled = builder.autoPublishRouteEnabled;
this.cenId = builder.cenId;
this.chargeType = builder.chargeType;
this.creationTime = builder.creationTime;
this.orderType = builder.orderType;
this.resourceType = builder.resourceType;
this.status = builder.status;
this.tags = builder.tags;
this.transitRouterAttachmentDescription = builder.transitRouterAttachmentDescription;
this.transitRouterAttachmentId = builder.transitRouterAttachmentId;
this.transitRouterAttachmentName = builder.transitRouterAttachmentName;
this.transitRouterId = builder.transitRouterId;
this.vpcId = builder.vpcId;
this.vpcOwnerId = builder.vpcOwnerId;
this.vpcRegionId = builder.vpcRegionId;
this.zoneMappings = builder.zoneMappings;
}
public static Builder builder() {
return new Builder();
}
public static TransitRouterAttachments create() {
return builder().build();
}
/**
* @return autoPublishRouteEnabled
*/
public Boolean getAutoPublishRouteEnabled() {
return this.autoPublishRouteEnabled;
}
/**
* @return cenId
*/
public String getCenId() {
return this.cenId;
}
/**
* @return chargeType
*/
public String getChargeType() {
return this.chargeType;
}
/**
* @return creationTime
*/
public String getCreationTime() {
return this.creationTime;
}
/**
* @return orderType
*/
public String getOrderType() {
return this.orderType;
}
/**
* @return resourceType
*/
public String getResourceType() {
return this.resourceType;
}
/**
* @return status
*/
public String getStatus() {
return this.status;
}
/**
* @return tags
*/
public java.util.List < Tags> getTags() {
return this.tags;
}
/**
* @return transitRouterAttachmentDescription
*/
public String getTransitRouterAttachmentDescription() {
return this.transitRouterAttachmentDescription;
}
/**
* @return transitRouterAttachmentId
*/
public String getTransitRouterAttachmentId() {
return this.transitRouterAttachmentId;
}
/**
* @return transitRouterAttachmentName
*/
public String getTransitRouterAttachmentName() {
return this.transitRouterAttachmentName;
}
/**
* @return transitRouterId
*/
public String getTransitRouterId() {
return this.transitRouterId;
}
/**
* @return vpcId
*/
public String getVpcId() {
return this.vpcId;
}
/**
* @return vpcOwnerId
*/
public Long getVpcOwnerId() {
return this.vpcOwnerId;
}
/**
* @return vpcRegionId
*/
public String getVpcRegionId() {
return this.vpcRegionId;
}
/**
* @return zoneMappings
*/
public java.util.List < ZoneMappings> getZoneMappings() {
return this.zoneMappings;
}
public static final class Builder {
private Boolean autoPublishRouteEnabled;
private String cenId;
private String chargeType;
private String creationTime;
private String orderType;
private String resourceType;
private String status;
private java.util.List < Tags> tags;
private String transitRouterAttachmentDescription;
private String transitRouterAttachmentId;
private String transitRouterAttachmentName;
private String transitRouterId;
private String vpcId;
private Long vpcOwnerId;
private String vpcRegionId;
private java.util.List < ZoneMappings> zoneMappings;
/**
* Indicates whether the Enterprise Edition transit router can automatically advertise routes to the VPC. Valid values:
*
*
* * **false**
* * **true**
*/
public Builder autoPublishRouteEnabled(Boolean autoPublishRouteEnabled) {
this.autoPublishRouteEnabled = autoPublishRouteEnabled;
return this;
}
/**
* The ID of the CEN instance.
*/
public Builder cenId(String cenId) {
this.cenId = cenId;
return this;
}
/**
* The billing method of the VPC connection.
*
*
* Only **POSTPAY** may be returned, which indicates the default pay-as-you-go billing method.
*/
public Builder chargeType(String chargeType) {
this.chargeType = chargeType;
return this;
}
/**
* The time when the VPC connection was created.
*
*
* The time follows the ISO 8601 standard in the YYYY-MM-DDThh:mm:ssZ format. The time is displayed in UTC.
*/
public Builder creationTime(String creationTime) {
this.creationTime = creationTime;
return this;
}
/**
* The entity that pays the fees of the network instance. Valid values:
*
*
* * **PayByCenOwner**: the Alibaba Cloud account that owns the CEN instance.
* * **PayByResourceOwner**: the Alibaba Cloud account that owns the network instance.
*/
public Builder orderType(String orderType) {
this.orderType = orderType;
return this;
}
/**
* The type of resource to which the transit router is connected.
*
*
* Only **VPC** may be returned, which indicates VPCs.
*/
public Builder resourceType(String resourceType) {
this.resourceType = resourceType;
return this;
}
/**
* The status of the VPC connection. Valid values:
*
*
* * **Attached**
* * **Attaching**
* * **Detaching**
*/
public Builder status(String status) {
this.status = status;
return this;
}
/**
* The tag key.
*/
public Builder tags(java.util.List < Tags> tags) {
this.tags = tags;
return this;
}
/**
* The description of the VPC connection.
*/
public Builder transitRouterAttachmentDescription(String transitRouterAttachmentDescription) {
this.transitRouterAttachmentDescription = transitRouterAttachmentDescription;
return this;
}
/**
* The VPC connection ID.
*/
public Builder transitRouterAttachmentId(String transitRouterAttachmentId) {
this.transitRouterAttachmentId = transitRouterAttachmentId;
return this;
}
/**
* The name of the VPC connection.
*/
public Builder transitRouterAttachmentName(String transitRouterAttachmentName) {
this.transitRouterAttachmentName = transitRouterAttachmentName;
return this;
}
/**
* The description of the Enterprise Edition transit router.
*/
public Builder transitRouterId(String transitRouterId) {
this.transitRouterId = transitRouterId;
return this;
}
/**
* The VPC ID.
*/
public Builder vpcId(String vpcId) {
this.vpcId = vpcId;
return this;
}
/**
* The ID of the Alibaba Cloud account to which the VPC belongs.
*/
public Builder vpcOwnerId(Long vpcOwnerId) {
this.vpcOwnerId = vpcOwnerId;
return this;
}
/**
* The region ID of the VPC.
*/
public Builder vpcRegionId(String vpcRegionId) {
this.vpcRegionId = vpcRegionId;
return this;
}
/**
* The primary and secondary zones, vSwitches, and ENIs of the VPC.
*/
public Builder zoneMappings(java.util.List < ZoneMappings> zoneMappings) {
this.zoneMappings = zoneMappings;
return this;
}
public TransitRouterAttachments build() {
return new TransitRouterAttachments(this);
}
}
}
}