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

com.aliyun.sdk.service.ecs20140526.models.CreateDiagnosticMetricSetRequest Maven / Gradle / Ivy

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

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

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

CreateDiagnosticMetricSetRequest

*/ public class CreateDiagnosticMetricSetRequest extends Request { @Host @NameInMap("SourceRegionId") private String sourceRegionId; @Query @NameInMap("Description") @Validation(maxLength = 255) private String description; @Query @NameInMap("MetricIds") @Validation(required = true) private java.util.List < String > metricIds; @Query @NameInMap("MetricSetName") @Validation(maxLength = 128) private String metricSetName; @Query @NameInMap("RegionId") @Validation(required = true) private String regionId; @Query @NameInMap("ResourceType") @Validation(required = true) private String resourceType; private CreateDiagnosticMetricSetRequest(Builder builder) { super(builder); this.sourceRegionId = builder.sourceRegionId; this.description = builder.description; this.metricIds = builder.metricIds; this.metricSetName = builder.metricSetName; this.regionId = builder.regionId; this.resourceType = builder.resourceType; } public static Builder builder() { return new Builder(); } public static CreateDiagnosticMetricSetRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return sourceRegionId */ public String getSourceRegionId() { return this.sourceRegionId; } /** * @return description */ public String getDescription() { return this.description; } /** * @return metricIds */ public java.util.List < String > getMetricIds() { return this.metricIds; } /** * @return metricSetName */ public String getMetricSetName() { return this.metricSetName; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceType */ public String getResourceType() { return this.resourceType; } public static final class Builder extends Request.Builder { private String sourceRegionId; private String description; private java.util.List < String > metricIds; private String metricSetName; private String regionId; private String resourceType; private Builder() { super(); } private Builder(CreateDiagnosticMetricSetRequest request) { super(request); this.sourceRegionId = request.sourceRegionId; this.description = request.description; this.metricIds = request.metricIds; this.metricSetName = request.metricSetName; this.regionId = request.regionId; this.resourceType = request.resourceType; } /** * SourceRegionId. */ public Builder sourceRegionId(String sourceRegionId) { this.putHostParameter("SourceRegionId", sourceRegionId); this.sourceRegionId = sourceRegionId; return this; } /** * testDescription */ public Builder description(String description) { this.putQueryParameter("Description", description); this.description = description; return this; } /** * The ID of diagnostic metric. */ public Builder metricIds(java.util.List < String > metricIds) { this.putQueryParameter("MetricIds", metricIds); this.metricIds = metricIds; return this; } /** * my_dms */ public Builder metricSetName(String metricSetName) { this.putQueryParameter("MetricSetName", metricSetName); this.metricSetName = metricSetName; return this; } /** * The type of the resource. *

* * Default value: instance. */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * The name of the diagnostic metric set. */ public Builder resourceType(String resourceType) { this.putQueryParameter("ResourceType", resourceType); this.resourceType = resourceType; return this; } @Override public CreateDiagnosticMetricSetRequest build() { return new CreateDiagnosticMetricSetRequest(this); } } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy