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

com.aliyun.sdk.service.ecs20140526.models.CreateDiagnosticReportRequest 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 darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;

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

CreateDiagnosticReportRequest

*/ public class CreateDiagnosticReportRequest extends Request { @com.aliyun.core.annotation.Host @com.aliyun.core.annotation.NameInMap("SourceRegionId") private String sourceRegionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("EndTime") private String endTime; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("MetricSetId") private String metricSetId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceId") @com.aliyun.core.annotation.Validation(required = true) private String resourceId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("StartTime") private String startTime; private CreateDiagnosticReportRequest(Builder builder) { super(builder); this.sourceRegionId = builder.sourceRegionId; this.endTime = builder.endTime; this.metricSetId = builder.metricSetId; this.regionId = builder.regionId; this.resourceId = builder.resourceId; this.startTime = builder.startTime; } public static Builder builder() { return new Builder(); } public static CreateDiagnosticReportRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return sourceRegionId */ public String getSourceRegionId() { return this.sourceRegionId; } /** * @return endTime */ public String getEndTime() { return this.endTime; } /** * @return metricSetId */ public String getMetricSetId() { return this.metricSetId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceId */ public String getResourceId() { return this.resourceId; } /** * @return startTime */ public String getStartTime() { return this.startTime; } public static final class Builder extends Request.Builder { private String sourceRegionId; private String endTime; private String metricSetId; private String regionId; private String resourceId; private String startTime; private Builder() { super(); } private Builder(CreateDiagnosticReportRequest request) { super(request); this.sourceRegionId = request.sourceRegionId; this.endTime = request.endTime; this.metricSetId = request.metricSetId; this.regionId = request.regionId; this.resourceId = request.resourceId; this.startTime = request.startTime; } /** * SourceRegionId. */ public Builder sourceRegionId(String sourceRegionId) { this.putHostParameter("SourceRegionId", sourceRegionId); this.sourceRegionId = sourceRegionId; return this; } /** * The end of the reporting period. This parameter takes effect only for diagnostic metrics that do not need to be assessed by running Cloud Assistant commands in guest operating systems. */ public Builder endTime(String endTime) { this.putQueryParameter("EndTime", endTime); this.endTime = endTime; return this; } /** * The ID of the diagnostic metric set. If this parameter is left empty, the dms-instancedefault set is used, which is the default diagnostic metric set provided for Elastic Compute Service (ECS) instances. */ public Builder metricSetId(String metricSetId) { this.putQueryParameter("MetricSetId", metricSetId); this.metricSetId = metricSetId; return this; } /** * The ID of the region in which to create a diagnostic report. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list. */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * The ID of the resource. */ public Builder resourceId(String resourceId) { this.putQueryParameter("ResourceId", resourceId); this.resourceId = resourceId; return this; } /** * The beginning of the reporting period. This parameter takes effect only for diagnostic metrics that do not need to be assessed by running Cloud Assistant commands in guest operating systems. */ public Builder startTime(String startTime) { this.putQueryParameter("StartTime", startTime); this.startTime = startTime; return this; } @Override public CreateDiagnosticReportRequest build() { return new CreateDiagnosticReportRequest(this); } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy