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

com.aliyun.sdk.service.polardb20170801.models.DescribePendingMaintenanceActionRequest Maven / Gradle / Ivy

The newest version!
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.polardb20170801.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 DescribePendingMaintenanceActionRequest} extends {@link RequestModel}
 *
 * 

DescribePendingMaintenanceActionRequest

*/ public class DescribePendingMaintenanceActionRequest extends Request { @com.aliyun.core.annotation.Host @com.aliyun.core.annotation.NameInMap("RegionId") private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("IsHistory") private Integer isHistory; @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("PageNumber") @com.aliyun.core.annotation.Validation(maximum = 2147483647, minimum = 1) private Integer pageNumber; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PageSize") @com.aliyun.core.annotation.Validation(maximum = 100, minimum = 10) private Integer pageSize; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Region") @com.aliyun.core.annotation.Validation(required = true) private String region; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceGroupId") private String resourceGroupId; @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("SecurityToken") private String securityToken; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("TaskType") @com.aliyun.core.annotation.Validation(required = true) private String taskType; private DescribePendingMaintenanceActionRequest(Builder builder) { super(builder); this.regionId = builder.regionId; this.isHistory = builder.isHistory; this.ownerAccount = builder.ownerAccount; this.ownerId = builder.ownerId; this.pageNumber = builder.pageNumber; this.pageSize = builder.pageSize; this.region = builder.region; this.resourceGroupId = builder.resourceGroupId; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.resourceOwnerId = builder.resourceOwnerId; this.securityToken = builder.securityToken; this.taskType = builder.taskType; } public static Builder builder() { return new Builder(); } public static DescribePendingMaintenanceActionRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return isHistory */ public Integer getIsHistory() { return this.isHistory; } /** * @return ownerAccount */ public String getOwnerAccount() { return this.ownerAccount; } /** * @return ownerId */ public Long getOwnerId() { return this.ownerId; } /** * @return pageNumber */ public Integer getPageNumber() { return this.pageNumber; } /** * @return pageSize */ public Integer getPageSize() { return this.pageSize; } /** * @return region */ public String getRegion() { return this.region; } /** * @return resourceGroupId */ public String getResourceGroupId() { return this.resourceGroupId; } /** * @return resourceOwnerAccount */ public String getResourceOwnerAccount() { return this.resourceOwnerAccount; } /** * @return resourceOwnerId */ public Long getResourceOwnerId() { return this.resourceOwnerId; } /** * @return securityToken */ public String getSecurityToken() { return this.securityToken; } /** * @return taskType */ public String getTaskType() { return this.taskType; } public static final class Builder extends Request.Builder { private String regionId; private Integer isHistory; private String ownerAccount; private Long ownerId; private Integer pageNumber; private Integer pageSize; private String region; private String resourceGroupId; private String resourceOwnerAccount; private Long resourceOwnerId; private String securityToken; private String taskType; private Builder() { super(); } private Builder(DescribePendingMaintenanceActionRequest request) { super(request); this.regionId = request.regionId; this.isHistory = request.isHistory; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.pageNumber = request.pageNumber; this.pageSize = request.pageSize; this.region = request.region; this.resourceGroupId = request.resourceGroupId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; this.securityToken = request.securityToken; this.taskType = request.taskType; } /** * RegionId. */ public Builder regionId(String regionId) { this.putHostParameter("RegionId", regionId); this.regionId = regionId; return this; } /** *

Specifies whether to return the historical tasks. Valid values:

*
    *
  • 0: returns the current task.
  • *
  • 1: returns the historical tasks.
  • *
*

Default value: 0.

* * example: *

0

*/ public Builder isHistory(Integer isHistory) { this.putQueryParameter("IsHistory", isHistory); this.isHistory = isHistory; 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 page number. The value of this parameter must be an integer that is greater than 0. Default value: 1.

* * example: *

1

*/ public Builder pageNumber(Integer pageNumber) { this.putQueryParameter("PageNumber", pageNumber); this.pageNumber = pageNumber; return this; } /** *

The number of entries per page. Valid values: 30, 50, or 100.

*

Default value: 30.

* * example: *

30

*/ public Builder pageSize(Integer pageSize) { this.putQueryParameter("PageSize", pageSize); this.pageSize = pageSize; return this; } /** *

The region ID of the pending event. You can call the DescribeRegions operation to query the regions and zones that are supported by PolarDB.

*
*
    *
  • You can set this parameter to all to view all pending events within your account.
  • *
  • If you set Region to all, you must set TaskType to all.
  • *
*
*

This parameter is required.

* * example: *

all

*/ public Builder region(String region) { this.putQueryParameter("Region", region); this.region = region; return this; } /** *

The ID of the resource group.

* * example: *

rg-************

*/ public Builder resourceGroupId(String resourceGroupId) { this.putQueryParameter("ResourceGroupId", resourceGroupId); this.resourceGroupId = resourceGroupId; 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; } /** * SecurityToken. */ public Builder securityToken(String securityToken) { this.putQueryParameter("SecurityToken", securityToken); this.securityToken = securityToken; return this; } /** *

The task type of pending events. Valid values:

*
    *
  • DatabaseSoftwareUpgrading: database software upgrades
  • *
  • DatabaseHardwareMaintenance: hardware maintenance and upgrades
  • *
  • DatabaseStorageUpgrading: database storage upgrades
  • *
  • DatabaseProxyUpgrading: minor version upgrades of the proxy
  • *
  • all: queries the details of the pending events of all preceding types.
  • *
*
*

If the Region parameter is set to all, the TaskType parameter must be set to all.

*
*

This parameter is required.

* * example: *

all

*/ public Builder taskType(String taskType) { this.putQueryParameter("TaskType", taskType); this.taskType = taskType; return this; } @Override public DescribePendingMaintenanceActionRequest build() { return new DescribePendingMaintenanceActionRequest(this); } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy