All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.aliyun.sdk.service.adb20211201.models.ListSparkAppAttemptsRequest Maven / Gradle / Ivy

The newest version!
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.adb20211201.models;

import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;

/**
 * {@link ListSparkAppAttemptsRequest} extends {@link RequestModel}
 *
 * 

ListSparkAppAttemptsRequest

*/ public class ListSparkAppAttemptsRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("AppId") @com.aliyun.core.annotation.Validation(required = true) private String appId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("DBClusterId") private String DBClusterId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PageNumber") @com.aliyun.core.annotation.Validation(required = true, minimum = 1) private Long pageNumber; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PageSize") @com.aliyun.core.annotation.Validation(maximum = 100, minimum = 1) private Long pageSize; private ListSparkAppAttemptsRequest(Builder builder) { super(builder); this.appId = builder.appId; this.DBClusterId = builder.DBClusterId; this.pageNumber = builder.pageNumber; this.pageSize = builder.pageSize; } public static Builder builder() { return new Builder(); } public static ListSparkAppAttemptsRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return appId */ public String getAppId() { return this.appId; } /** * @return DBClusterId */ public String getDBClusterId() { return this.DBClusterId; } /** * @return pageNumber */ public Long getPageNumber() { return this.pageNumber; } /** * @return pageSize */ public Long getPageSize() { return this.pageSize; } public static final class Builder extends Request.Builder { private String appId; private String DBClusterId; private Long pageNumber; private Long pageSize; private Builder() { super(); } private Builder(ListSparkAppAttemptsRequest request) { super(request); this.appId = request.appId; this.DBClusterId = request.DBClusterId; this.pageNumber = request.pageNumber; this.pageSize = request.pageSize; } /** * The ID of the Spark application. *

* * > You can call the [ListSparkApps](~~455888~~) operation to query all application IDs. */ public Builder appId(String appId) { this.putQueryParameter("AppId", appId); this.appId = appId; return this; } /** * The ID of the AnalyticDB for MySQL Data Lakehouse Edition cluster. */ public Builder DBClusterId(String DBClusterId) { this.putQueryParameter("DBClusterId", DBClusterId); this.DBClusterId = DBClusterId; return this; } /** * The page number. The value must be an integer that is greater than 0. Default value: **1**. */ public Builder pageNumber(Long pageNumber) { this.putQueryParameter("PageNumber", pageNumber); this.pageNumber = pageNumber; return this; } /** * The number of entries per page. Valid values: *

* * * **10** (default) * * **50** * * **100** */ public Builder pageSize(Long pageSize) { this.putQueryParameter("PageSize", pageSize); this.pageSize = pageSize; return this; } @Override public ListSparkAppAttemptsRequest build() { return new ListSparkAppAttemptsRequest(this); } } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy