
com.aliyun.sdk.service.cbn20170912.models.DeleteTransitRouterRouteEntryRequest 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 DeleteTransitRouterRouteEntryRequest} extends {@link RequestModel}
*
* DeleteTransitRouterRouteEntryRequest
*/
public class DeleteTransitRouterRouteEntryRequest 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("DryRun")
private Boolean dryRun;
@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("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("TransitRouterRouteEntryDestinationCidrBlock")
private String transitRouterRouteEntryDestinationCidrBlock;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("TransitRouterRouteEntryId")
private String transitRouterRouteEntryId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("TransitRouterRouteEntryNextHopId")
private String transitRouterRouteEntryNextHopId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("TransitRouterRouteEntryNextHopType")
private String transitRouterRouteEntryNextHopType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("TransitRouterRouteTableId")
private String transitRouterRouteTableId;
private DeleteTransitRouterRouteEntryRequest(Builder builder) {
super(builder);
this.clientToken = builder.clientToken;
this.dryRun = builder.dryRun;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
this.transitRouterRouteEntryDestinationCidrBlock = builder.transitRouterRouteEntryDestinationCidrBlock;
this.transitRouterRouteEntryId = builder.transitRouterRouteEntryId;
this.transitRouterRouteEntryNextHopId = builder.transitRouterRouteEntryNextHopId;
this.transitRouterRouteEntryNextHopType = builder.transitRouterRouteEntryNextHopType;
this.transitRouterRouteTableId = builder.transitRouterRouteTableId;
}
public static Builder builder() {
return new Builder();
}
public static DeleteTransitRouterRouteEntryRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return clientToken
*/
public String getClientToken() {
return this.clientToken;
}
/**
* @return dryRun
*/
public Boolean getDryRun() {
return this.dryRun;
}
/**
* @return ownerAccount
*/
public String getOwnerAccount() {
return this.ownerAccount;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
/**
* @return transitRouterRouteEntryDestinationCidrBlock
*/
public String getTransitRouterRouteEntryDestinationCidrBlock() {
return this.transitRouterRouteEntryDestinationCidrBlock;
}
/**
* @return transitRouterRouteEntryId
*/
public String getTransitRouterRouteEntryId() {
return this.transitRouterRouteEntryId;
}
/**
* @return transitRouterRouteEntryNextHopId
*/
public String getTransitRouterRouteEntryNextHopId() {
return this.transitRouterRouteEntryNextHopId;
}
/**
* @return transitRouterRouteEntryNextHopType
*/
public String getTransitRouterRouteEntryNextHopType() {
return this.transitRouterRouteEntryNextHopType;
}
/**
* @return transitRouterRouteTableId
*/
public String getTransitRouterRouteTableId() {
return this.transitRouterRouteTableId;
}
public static final class Builder extends Request.Builder {
private String clientToken;
private Boolean dryRun;
private String ownerAccount;
private Long ownerId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private String transitRouterRouteEntryDestinationCidrBlock;
private String transitRouterRouteEntryId;
private String transitRouterRouteEntryNextHopId;
private String transitRouterRouteEntryNextHopType;
private String transitRouterRouteTableId;
private Builder() {
super();
}
private Builder(DeleteTransitRouterRouteEntryRequest request) {
super(request);
this.clientToken = request.clientToken;
this.dryRun = request.dryRun;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
this.transitRouterRouteEntryDestinationCidrBlock = request.transitRouterRouteEntryDestinationCidrBlock;
this.transitRouterRouteEntryId = request.transitRouterRouteEntryId;
this.transitRouterRouteEntryNextHopId = request.transitRouterRouteEntryNextHopId;
this.transitRouterRouteEntryNextHopType = request.transitRouterRouteEntryNextHopType;
this.transitRouterRouteTableId = request.transitRouterRouteTableId;
}
/**
* The client token that is used to ensure the idempotence of the request.
*
*
* You can use the client to generate the value, but you must make sure that it is unique among all requests. The client token can contain only ASCII characters.
*
* > If you do not specify this parameter, the system automatically uses the value of **RequestId** as the value of **ClientToken**. The value of **RequestId** for each API request may be different.
*/
public Builder clientToken(String clientToken) {
this.putQueryParameter("ClientToken", clientToken);
this.clientToken = clientToken;
return this;
}
/**
* Specifies whether to check the request but not perform the operation. The system checks the permissions and the status of the specified instances. Valid values:
*
*
* * **false** (default): sends the request. If the request passes the precheck, the route is deleted.
* * **true**: sends a precheck request. The route is not deleted after the request passes the precheck. If you use this value, the system checks the required parameters and the request syntax. If the check fails, the corresponding error message is returned. If the request passes the check, the system returns the ID of the request.
*/
public Builder dryRun(Boolean dryRun) {
this.putQueryParameter("DryRun", dryRun);
this.dryRun = dryRun;
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;
}
/**
* 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;
}
/**
* The destination CIDR block.
*/
public Builder transitRouterRouteEntryDestinationCidrBlock(String transitRouterRouteEntryDestinationCidrBlock) {
this.putQueryParameter("TransitRouterRouteEntryDestinationCidrBlock", transitRouterRouteEntryDestinationCidrBlock);
this.transitRouterRouteEntryDestinationCidrBlock = transitRouterRouteEntryDestinationCidrBlock;
return this;
}
/**
* The ID of the route entry.
*/
public Builder transitRouterRouteEntryId(String transitRouterRouteEntryId) {
this.putQueryParameter("TransitRouterRouteEntryId", transitRouterRouteEntryId);
this.transitRouterRouteEntryId = transitRouterRouteEntryId;
return this;
}
/**
* The ID of the network instance connection that you want to specify as the next hop.
*/
public Builder transitRouterRouteEntryNextHopId(String transitRouterRouteEntryNextHopId) {
this.putQueryParameter("TransitRouterRouteEntryNextHopId", transitRouterRouteEntryNextHopId);
this.transitRouterRouteEntryNextHopId = transitRouterRouteEntryNextHopId;
return this;
}
/**
* The type of the next hop. Valid values:
*
*
* * **BlackHole**: a blackhole route. You do not need to specify a next hop.
* * **Attachment**: a network instance connection. You must specify a network instance connection as the next hop.
*/
public Builder transitRouterRouteEntryNextHopType(String transitRouterRouteEntryNextHopType) {
this.putQueryParameter("TransitRouterRouteEntryNextHopType", transitRouterRouteEntryNextHopType);
this.transitRouterRouteEntryNextHopType = transitRouterRouteEntryNextHopType;
return this;
}
/**
* The ID of the route table of the Enterprise Edition transit router.
*/
public Builder transitRouterRouteTableId(String transitRouterRouteTableId) {
this.putQueryParameter("TransitRouterRouteTableId", transitRouterRouteTableId);
this.transitRouterRouteTableId = transitRouterRouteTableId;
return this;
}
@Override
public DeleteTransitRouterRouteEntryRequest build() {
return new DeleteTransitRouterRouteEntryRequest(this);
}
}
}