com.aliyun.sdk.service.ecs20140526.models.CreateRouteEntryRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of alibabacloud-ecs20140526 Show documentation
Show all versions of alibabacloud-ecs20140526 Show documentation
Alibaba Cloud Ecs (20140526) Async SDK for Java
The newest version!
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.ecs20140526.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link CreateRouteEntryRequest} extends {@link RequestModel}
*
* CreateRouteEntryRequest
*/
public class CreateRouteEntryRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ClientToken")
private String clientToken;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DestinationCidrBlock")
@com.aliyun.core.annotation.Validation(required = true)
private String destinationCidrBlock;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("NextHopId")
private String nextHopId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("NextHopList")
private java.util.List nextHopList;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("NextHopType")
private String nextHopType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerAccount")
private String ownerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerId")
private Long ownerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount")
private String resourceOwnerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RouteTableId")
@com.aliyun.core.annotation.Validation(required = true)
private String routeTableId;
private CreateRouteEntryRequest(Builder builder) {
super(builder);
this.clientToken = builder.clientToken;
this.destinationCidrBlock = builder.destinationCidrBlock;
this.nextHopId = builder.nextHopId;
this.nextHopList = builder.nextHopList;
this.nextHopType = builder.nextHopType;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.regionId = builder.regionId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
this.routeTableId = builder.routeTableId;
}
public static Builder builder() {
return new Builder();
}
public static CreateRouteEntryRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return clientToken
*/
public String getClientToken() {
return this.clientToken;
}
/**
* @return destinationCidrBlock
*/
public String getDestinationCidrBlock() {
return this.destinationCidrBlock;
}
/**
* @return nextHopId
*/
public String getNextHopId() {
return this.nextHopId;
}
/**
* @return nextHopList
*/
public java.util.List getNextHopList() {
return this.nextHopList;
}
/**
* @return nextHopType
*/
public String getNextHopType() {
return this.nextHopType;
}
/**
* @return ownerAccount
*/
public String getOwnerAccount() {
return this.ownerAccount;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
/**
* @return routeTableId
*/
public String getRouteTableId() {
return this.routeTableId;
}
public static final class Builder extends Request.Builder {
private String clientToken;
private String destinationCidrBlock;
private String nextHopId;
private java.util.List nextHopList;
private String nextHopType;
private String ownerAccount;
private Long ownerId;
private String regionId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private String routeTableId;
private Builder() {
super();
}
private Builder(CreateRouteEntryRequest request) {
super(request);
this.clientToken = request.clientToken;
this.destinationCidrBlock = request.destinationCidrBlock;
this.nextHopId = request.nextHopId;
this.nextHopList = request.nextHopList;
this.nextHopType = request.nextHopType;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.regionId = request.regionId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
this.routeTableId = request.routeTableId;
}
/**
* ClientToken.
*/
public Builder clientToken(String clientToken) {
this.putQueryParameter("ClientToken", clientToken);
this.clientToken = clientToken;
return this;
}
/**
* This parameter is required.
*/
public Builder destinationCidrBlock(String destinationCidrBlock) {
this.putQueryParameter("DestinationCidrBlock", destinationCidrBlock);
this.destinationCidrBlock = destinationCidrBlock;
return this;
}
/**
* NextHopId.
*/
public Builder nextHopId(String nextHopId) {
this.putQueryParameter("NextHopId", nextHopId);
this.nextHopId = nextHopId;
return this;
}
/**
* NextHopList.
*/
public Builder nextHopList(java.util.List nextHopList) {
this.putQueryParameter("NextHopList", nextHopList);
this.nextHopList = nextHopList;
return this;
}
/**
* NextHopType.
*/
public Builder nextHopType(String nextHopType) {
this.putQueryParameter("NextHopType", nextHopType);
this.nextHopType = nextHopType;
return this;
}
/**
* OwnerAccount.
*/
public Builder ownerAccount(String ownerAccount) {
this.putQueryParameter("OwnerAccount", ownerAccount);
this.ownerAccount = ownerAccount;
return this;
}
/**
* OwnerId.
*/
public Builder ownerId(Long ownerId) {
this.putQueryParameter("OwnerId", ownerId);
this.ownerId = ownerId;
return this;
}
/**
* RegionId.
*/
public Builder regionId(String regionId) {
this.putQueryParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* ResourceOwnerAccount.
*/
public Builder resourceOwnerAccount(String resourceOwnerAccount) {
this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount);
this.resourceOwnerAccount = resourceOwnerAccount;
return this;
}
/**
* ResourceOwnerId.
*/
public Builder resourceOwnerId(Long resourceOwnerId) {
this.putQueryParameter("ResourceOwnerId", resourceOwnerId);
this.resourceOwnerId = resourceOwnerId;
return this;
}
/**
* This parameter is required.
*/
public Builder routeTableId(String routeTableId) {
this.putQueryParameter("RouteTableId", routeTableId);
this.routeTableId = routeTableId;
return this;
}
@Override
public CreateRouteEntryRequest build() {
return new CreateRouteEntryRequest(this);
}
}
/**
*
* {@link CreateRouteEntryRequest} extends {@link TeaModel}
*
* CreateRouteEntryRequest
*/
public static class NextHopList extends TeaModel {
@com.aliyun.core.annotation.NameInMap("NextHopId")
private String nextHopId;
@com.aliyun.core.annotation.NameInMap("NextHopType")
private String nextHopType;
private NextHopList(Builder builder) {
this.nextHopId = builder.nextHopId;
this.nextHopType = builder.nextHopType;
}
public static Builder builder() {
return new Builder();
}
public static NextHopList create() {
return builder().build();
}
/**
* @return nextHopId
*/
public String getNextHopId() {
return this.nextHopId;
}
/**
* @return nextHopType
*/
public String getNextHopType() {
return this.nextHopType;
}
public static final class Builder {
private String nextHopId;
private String nextHopType;
/**
* NextHopId.
*/
public Builder nextHopId(String nextHopId) {
this.nextHopId = nextHopId;
return this;
}
/**
* NextHopType.
*/
public Builder nextHopType(String nextHopType) {
this.nextHopType = nextHopType;
return this;
}
public NextHopList build() {
return new NextHopList(this);
}
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy