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

com.aliyun.sdk.service.dts20200101.models.DescribeClusterUsedUtilizationRequest Maven / Gradle / Ivy

There is a newer version: 1.0.18
Show newest version
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.dts20200101.models;

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

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

DescribeClusterUsedUtilizationRequest

*/ public class DescribeClusterUsedUtilizationRequest extends Request { @com.aliyun.core.annotation.Body @com.aliyun.core.annotation.NameInMap("AccountId") private String accountId; @com.aliyun.core.annotation.Body @com.aliyun.core.annotation.NameInMap("ClientToken") private String clientToken; @com.aliyun.core.annotation.Body @com.aliyun.core.annotation.NameInMap("DedicatedClusterId") @com.aliyun.core.annotation.Validation(required = true) private String dedicatedClusterId; @com.aliyun.core.annotation.Body @com.aliyun.core.annotation.NameInMap("DtsJobId") private String dtsJobId; @com.aliyun.core.annotation.Body @com.aliyun.core.annotation.NameInMap("Env") private String env; @com.aliyun.core.annotation.Body @com.aliyun.core.annotation.NameInMap("MetricType") private String metricType; @com.aliyun.core.annotation.Body @com.aliyun.core.annotation.NameInMap("OwnerID") private String ownerID; @com.aliyun.core.annotation.Body @com.aliyun.core.annotation.NameInMap("RegionId") private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceGroupId") private String resourceGroupId; @com.aliyun.core.annotation.Body @com.aliyun.core.annotation.NameInMap("SecurityToken") private String securityToken; private DescribeClusterUsedUtilizationRequest(Builder builder) { super(builder); this.accountId = builder.accountId; this.clientToken = builder.clientToken; this.dedicatedClusterId = builder.dedicatedClusterId; this.dtsJobId = builder.dtsJobId; this.env = builder.env; this.metricType = builder.metricType; this.ownerID = builder.ownerID; this.regionId = builder.regionId; this.resourceGroupId = builder.resourceGroupId; this.securityToken = builder.securityToken; } public static Builder builder() { return new Builder(); } public static DescribeClusterUsedUtilizationRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return accountId */ public String getAccountId() { return this.accountId; } /** * @return clientToken */ public String getClientToken() { return this.clientToken; } /** * @return dedicatedClusterId */ public String getDedicatedClusterId() { return this.dedicatedClusterId; } /** * @return dtsJobId */ public String getDtsJobId() { return this.dtsJobId; } /** * @return env */ public String getEnv() { return this.env; } /** * @return metricType */ public String getMetricType() { return this.metricType; } /** * @return ownerID */ public String getOwnerID() { return this.ownerID; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceGroupId */ public String getResourceGroupId() { return this.resourceGroupId; } /** * @return securityToken */ public String getSecurityToken() { return this.securityToken; } public static final class Builder extends Request.Builder { private String accountId; private String clientToken; private String dedicatedClusterId; private String dtsJobId; private String env; private String metricType; private String ownerID; private String regionId; private String resourceGroupId; private String securityToken; private Builder() { super(); } private Builder(DescribeClusterUsedUtilizationRequest request) { super(request); this.accountId = request.accountId; this.clientToken = request.clientToken; this.dedicatedClusterId = request.dedicatedClusterId; this.dtsJobId = request.dtsJobId; this.env = request.env; this.metricType = request.metricType; this.ownerID = request.ownerID; this.regionId = request.regionId; this.resourceGroupId = request.resourceGroupId; this.securityToken = request.securityToken; } /** * The ID of the Alibaba Cloud account. You do not need to specify this parameter because this parameter is discontinued. */ public Builder accountId(String accountId) { this.putBodyParameter("AccountId", accountId); this.accountId = accountId; return this; } /** * The client token that is used to ensure the idempotence of the request. You can use the client to generate the token, but you must make sure that the token is unique among different requests. **The token can contain only ASCII characters and cannot exceed 64 characters in length. */ public Builder clientToken(String clientToken) { this.putBodyParameter("ClientToken", clientToken); this.clientToken = clientToken; return this; } /** * The ID of the cluster. If the **MetricType** parameter is set to **CLUSTER**, enter the ID of the exclusive cluster. Otherwise, set this parameter to a node ID. */ public Builder dedicatedClusterId(String dedicatedClusterId) { this.putBodyParameter("DedicatedClusterId", dedicatedClusterId); this.dedicatedClusterId = dedicatedClusterId; return this; } /** * The ID of the data migration or synchronization task. */ public Builder dtsJobId(String dtsJobId) { this.putBodyParameter("DtsJobId", dtsJobId); this.dtsJobId = dtsJobId; return this; } /** * The cluster environment. Default value: **ALIYUN**. */ public Builder env(String env) { this.putBodyParameter("Env", env); this.env = env; return this; } /** * Specifies whether to query the metrics of the cluster or a node. Default value: CLUSTER. Valid values: *

* * * **CLUSTER**: query the metrics of the cluster. * * **NODE**: query the metrics of a node. */ public Builder metricType(String metricType) { this.putBodyParameter("MetricType", metricType); this.metricType = metricType; return this; } /** * OwnerID. */ public Builder ownerID(String ownerID) { this.putBodyParameter("OwnerID", ownerID); this.ownerID = ownerID; return this; } /** * The ID of the region in which the Data Transmission Service (DTS) instance resides. */ public Builder regionId(String regionId) { this.putBodyParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * ResourceGroupId. */ public Builder resourceGroupId(String resourceGroupId) { this.putQueryParameter("ResourceGroupId", resourceGroupId); this.resourceGroupId = resourceGroupId; return this; } /** * SecurityToken. */ public Builder securityToken(String securityToken) { this.putBodyParameter("SecurityToken", securityToken); this.securityToken = securityToken; return this; } @Override public DescribeClusterUsedUtilizationRequest build() { return new DescribeClusterUsedUtilizationRequest(this); } } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy