com.aliyun.sdk.service.aliding20230426.models.ListDentriesRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of alibabacloud-aliding20230426 Show documentation
Show all versions of alibabacloud-aliding20230426 Show documentation
Alibaba Cloud aliding (20230426) Async SDK for Java
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.aliding20230426.models;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
* {@link ListDentriesRequest} extends {@link RequestModel}
*
* ListDentriesRequest
*/
public class ListDentriesRequest extends Request {
@com.aliyun.core.annotation.Header
@com.aliyun.core.annotation.NameInMap("AccountContext")
private AccountContext accountContext;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("MaxResults")
private Integer maxResults;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("NextToken")
private String nextToken;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("Order")
private String order;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("OrderBy")
private String orderBy;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("ParentId")
@com.aliyun.core.annotation.Validation(required = true)
private String parentId;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("SpaceId")
@com.aliyun.core.annotation.Validation(required = true)
private String spaceId;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("TenantContext")
private TenantContext tenantContext;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("WithThumbnail")
private Boolean withThumbnail;
private ListDentriesRequest(Builder builder) {
super(builder);
this.accountContext = builder.accountContext;
this.maxResults = builder.maxResults;
this.nextToken = builder.nextToken;
this.order = builder.order;
this.orderBy = builder.orderBy;
this.parentId = builder.parentId;
this.spaceId = builder.spaceId;
this.tenantContext = builder.tenantContext;
this.withThumbnail = builder.withThumbnail;
}
public static Builder builder() {
return new Builder();
}
public static ListDentriesRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return accountContext
*/
public AccountContext getAccountContext() {
return this.accountContext;
}
/**
* @return maxResults
*/
public Integer getMaxResults() {
return this.maxResults;
}
/**
* @return nextToken
*/
public String getNextToken() {
return this.nextToken;
}
/**
* @return order
*/
public String getOrder() {
return this.order;
}
/**
* @return orderBy
*/
public String getOrderBy() {
return this.orderBy;
}
/**
* @return parentId
*/
public String getParentId() {
return this.parentId;
}
/**
* @return spaceId
*/
public String getSpaceId() {
return this.spaceId;
}
/**
* @return tenantContext
*/
public TenantContext getTenantContext() {
return this.tenantContext;
}
/**
* @return withThumbnail
*/
public Boolean getWithThumbnail() {
return this.withThumbnail;
}
public static final class Builder extends Request.Builder {
private AccountContext accountContext;
private Integer maxResults;
private String nextToken;
private String order;
private String orderBy;
private String parentId;
private String spaceId;
private TenantContext tenantContext;
private Boolean withThumbnail;
private Builder() {
super();
}
private Builder(ListDentriesRequest request) {
super(request);
this.accountContext = request.accountContext;
this.maxResults = request.maxResults;
this.nextToken = request.nextToken;
this.order = request.order;
this.orderBy = request.orderBy;
this.parentId = request.parentId;
this.spaceId = request.spaceId;
this.tenantContext = request.tenantContext;
this.withThumbnail = request.withThumbnail;
}
/**
* AccountContext.
*/
public Builder accountContext(AccountContext accountContext) {
String accountContextShrink = shrink(accountContext, "AccountContext", "json");
this.putHeaderParameter("AccountContext", accountContextShrink);
this.accountContext = accountContext;
return this;
}
/**
* MaxResults.
*/
public Builder maxResults(Integer maxResults) {
this.putBodyParameter("MaxResults", maxResults);
this.maxResults = maxResults;
return this;
}
/**
* NextToken.
*/
public Builder nextToken(String nextToken) {
this.putBodyParameter("NextToken", nextToken);
this.nextToken = nextToken;
return this;
}
/**
* Order.
*/
public Builder order(String order) {
this.putBodyParameter("Order", order);
this.order = order;
return this;
}
/**
* OrderBy.
*/
public Builder orderBy(String orderBy) {
this.putBodyParameter("OrderBy", orderBy);
this.orderBy = orderBy;
return this;
}
/**
* ParentId.
*/
public Builder parentId(String parentId) {
this.putBodyParameter("ParentId", parentId);
this.parentId = parentId;
return this;
}
/**
* SpaceId.
*/
public Builder spaceId(String spaceId) {
this.putBodyParameter("SpaceId", spaceId);
this.spaceId = spaceId;
return this;
}
/**
* TenantContext.
*/
public Builder tenantContext(TenantContext tenantContext) {
String tenantContextShrink = shrink(tenantContext, "TenantContext", "json");
this.putBodyParameter("TenantContext", tenantContextShrink);
this.tenantContext = tenantContext;
return this;
}
/**
* WithThumbnail.
*/
public Builder withThumbnail(Boolean withThumbnail) {
this.putBodyParameter("WithThumbnail", withThumbnail);
this.withThumbnail = withThumbnail;
return this;
}
@Override
public ListDentriesRequest build() {
return new ListDentriesRequest(this);
}
}
public static class AccountContext extends TeaModel {
@com.aliyun.core.annotation.NameInMap("accountId")
@com.aliyun.core.annotation.Validation(required = true)
private String accountId;
private AccountContext(Builder builder) {
this.accountId = builder.accountId;
}
public static Builder builder() {
return new Builder();
}
public static AccountContext create() {
return builder().build();
}
/**
* @return accountId
*/
public String getAccountId() {
return this.accountId;
}
public static final class Builder {
private String accountId;
/**
* accountId.
*/
public Builder accountId(String accountId) {
this.accountId = accountId;
return this;
}
public AccountContext build() {
return new AccountContext(this);
}
}
}
public static class TenantContext extends TeaModel {
@com.aliyun.core.annotation.NameInMap("tenantId")
private String tenantId;
private TenantContext(Builder builder) {
this.tenantId = builder.tenantId;
}
public static Builder builder() {
return new Builder();
}
public static TenantContext create() {
return builder().build();
}
/**
* @return tenantId
*/
public String getTenantId() {
return this.tenantId;
}
public static final class Builder {
private String tenantId;
/**
* tenantId.
*/
public Builder tenantId(String tenantId) {
this.tenantId = tenantId;
return this;
}
public TenantContext build() {
return new TenantContext(this);
}
}
}
}