
com.aliyun.sdk.service.cbn20170912.models.DescribeGrantRulesToCenRequest 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 DescribeGrantRulesToCenRequest} extends {@link RequestModel}
*
* DescribeGrantRulesToCenRequest
*/
public class DescribeGrantRulesToCenRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("CenId")
@com.aliyun.core.annotation.Validation(required = true)
private String cenId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ChildInstanceId")
private String childInstanceId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ChildInstanceOwnerId")
private Long childInstanceOwnerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("MaxResults")
@com.aliyun.core.annotation.Validation(maximum = 100)
private Long maxResults;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("NextToken")
private String nextToken;
@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("ProductType")
@com.aliyun.core.annotation.Validation(required = true)
private String productType;
@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;
private DescribeGrantRulesToCenRequest(Builder builder) {
super(builder);
this.cenId = builder.cenId;
this.childInstanceId = builder.childInstanceId;
this.childInstanceOwnerId = builder.childInstanceOwnerId;
this.maxResults = builder.maxResults;
this.nextToken = builder.nextToken;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.productType = builder.productType;
this.regionId = builder.regionId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeGrantRulesToCenRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return cenId
*/
public String getCenId() {
return this.cenId;
}
/**
* @return childInstanceId
*/
public String getChildInstanceId() {
return this.childInstanceId;
}
/**
* @return childInstanceOwnerId
*/
public Long getChildInstanceOwnerId() {
return this.childInstanceOwnerId;
}
/**
* @return maxResults
*/
public Long getMaxResults() {
return this.maxResults;
}
/**
* @return nextToken
*/
public String getNextToken() {
return this.nextToken;
}
/**
* @return ownerAccount
*/
public String getOwnerAccount() {
return this.ownerAccount;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return productType
*/
public String getProductType() {
return this.productType;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
public static final class Builder extends Request.Builder {
private String cenId;
private String childInstanceId;
private Long childInstanceOwnerId;
private Long maxResults;
private String nextToken;
private String ownerAccount;
private Long ownerId;
private String productType;
private String regionId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private Builder() {
super();
}
private Builder(DescribeGrantRulesToCenRequest request) {
super(request);
this.cenId = request.cenId;
this.childInstanceId = request.childInstanceId;
this.childInstanceOwnerId = request.childInstanceOwnerId;
this.maxResults = request.maxResults;
this.nextToken = request.nextToken;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.productType = request.productType;
this.regionId = request.regionId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
}
/**
* The CEN instance ID.
*/
public Builder cenId(String cenId) {
this.putQueryParameter("CenId", cenId);
this.cenId = cenId;
return this;
}
/**
* The ID of the network instance that you want to query.
*/
public Builder childInstanceId(String childInstanceId) {
this.putQueryParameter("ChildInstanceId", childInstanceId);
this.childInstanceId = childInstanceId;
return this;
}
/**
* The ID of the Alibaba Cloud account to which the network instance belongs.
*/
public Builder childInstanceOwnerId(Long childInstanceOwnerId) {
this.putQueryParameter("ChildInstanceOwnerId", childInstanceOwnerId);
this.childInstanceOwnerId = childInstanceOwnerId;
return this;
}
/**
* * If you do not set **MaxResults**, it indicates that you do not need to query results in batches. The value of **MaxResults** in the response indicates the total number of entries returned.
*
* * If you specify a value for **MaxResults**, it indicates that you need to query results in batches. The value of **MaxResults** indicates the number of entries to return in each batch. Valid values: **1** to **100**. The value of **MaxResults** in the response indicates the number of entries in the current batch. We recommend that you set **MaxResults** to **20**.
*/
public Builder maxResults(Long maxResults) {
this.putQueryParameter("MaxResults", maxResults);
this.maxResults = maxResults;
return this;
}
/**
* The pagination token that is used in the next request to retrieve a new page of results. Valid values:
*
*
* * You do not need to specify this parameter for the first request.
* * You must specify the token that is obtained from the previous query as the value of **NextToken**.
*/
public Builder nextToken(String nextToken) {
this.putQueryParameter("NextToken", nextToken);
this.nextToken = nextToken;
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;
}
/**
* The type of the network instance. Valid values:
*
*
* * **VPC**
* * **VBR**
* * **CCN**
* * **VPN**
*/
public Builder productType(String productType) {
this.putQueryParameter("ProductType", productType);
this.productType = productType;
return this;
}
/**
* The region ID of the network instance.
*
*
* You can call the [DescribeChildInstanceRegions](~~132080~~) operation to query the most recent region list.
*/
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;
}
@Override
public DescribeGrantRulesToCenRequest build() {
return new DescribeGrantRulesToCenRequest(this);
}
}
}