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

com.aliyun.sdk.service.ess20220222.models.DescribeAlarmsRequest Maven / Gradle / Ivy

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

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

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

DescribeAlarmsRequest

*/ public class DescribeAlarmsRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("AlarmTaskId") private String alarmTaskId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("IsEnable") private Boolean isEnable; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("MetricName") private String metricName; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("MetricType") private String metricType; @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") private Integer pageNumber; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PageSize") @com.aliyun.core.annotation.Validation(maximum = 50) private Integer pageSize; @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("ResourceOwnerAccount") private String resourceOwnerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ScalingGroupId") private String scalingGroupId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("State") private String state; private DescribeAlarmsRequest(Builder builder) { super(builder); this.alarmTaskId = builder.alarmTaskId; this.isEnable = builder.isEnable; this.metricName = builder.metricName; this.metricType = builder.metricType; this.ownerId = builder.ownerId; this.pageNumber = builder.pageNumber; this.pageSize = builder.pageSize; this.regionId = builder.regionId; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.scalingGroupId = builder.scalingGroupId; this.state = builder.state; } public static Builder builder() { return new Builder(); } public static DescribeAlarmsRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return alarmTaskId */ public String getAlarmTaskId() { return this.alarmTaskId; } /** * @return isEnable */ public Boolean getIsEnable() { return this.isEnable; } /** * @return metricName */ public String getMetricName() { return this.metricName; } /** * @return metricType */ public String getMetricType() { return this.metricType; } /** * @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 regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceOwnerAccount */ public String getResourceOwnerAccount() { return this.resourceOwnerAccount; } /** * @return scalingGroupId */ public String getScalingGroupId() { return this.scalingGroupId; } /** * @return state */ public String getState() { return this.state; } public static final class Builder extends Request.Builder { private String alarmTaskId; private Boolean isEnable; private String metricName; private String metricType; private Long ownerId; private Integer pageNumber; private Integer pageSize; private String regionId; private String resourceOwnerAccount; private String scalingGroupId; private String state; private Builder() { super(); } private Builder(DescribeAlarmsRequest request) { super(request); this.alarmTaskId = request.alarmTaskId; this.isEnable = request.isEnable; this.metricName = request.metricName; this.metricType = request.metricType; this.ownerId = request.ownerId; this.pageNumber = request.pageNumber; this.pageSize = request.pageSize; this.regionId = request.regionId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.scalingGroupId = request.scalingGroupId; this.state = request.state; } /** * The ID of the event-triggered task. */ public Builder alarmTaskId(String alarmTaskId) { this.putQueryParameter("AlarmTaskId", alarmTaskId); this.alarmTaskId = alarmTaskId; return this; } /** * Specifies whether to enable the event-triggered task. Valid values: *

* * * true: enables the event-triggered task. * * false: disables the event-triggered task. */ public Builder isEnable(Boolean isEnable) { this.putQueryParameter("IsEnable", isEnable); this.isEnable = isEnable; return this; } /** * The metric name. */ public Builder metricName(String metricName) { this.putQueryParameter("MetricName", metricName); this.metricName = metricName; return this; } /** * The metric type. Valid values: *

* * * system: system metrics of CloudMonitor * * custom: custom metrics that are reported to CloudMonitor. */ public Builder metricType(String metricType) { this.putQueryParameter("MetricType", metricType); this.metricType = metricType; return this; } /** * OwnerId. */ public Builder ownerId(Long ownerId) { this.putQueryParameter("OwnerId", ownerId); this.ownerId = ownerId; return this; } /** * The number of the page to return. Pages start from page 1. *

* * Default value: 1. */ public Builder pageNumber(Integer pageNumber) { this.putQueryParameter("PageNumber", pageNumber); this.pageNumber = pageNumber; return this; } /** * The number of entries to return on each page. Maximum value: 50. *

* * Default value: 10. */ public Builder pageSize(Integer pageSize) { this.putQueryParameter("PageSize", pageSize); this.pageSize = pageSize; return this; } /** * The region ID of the event-triggered task. */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * ResourceOwnerAccount. */ public Builder resourceOwnerAccount(String resourceOwnerAccount) { this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); this.resourceOwnerAccount = resourceOwnerAccount; return this; } /** * The ID of the scaling group with which the event-triggered task is associated. */ public Builder scalingGroupId(String scalingGroupId) { this.putQueryParameter("ScalingGroupId", scalingGroupId); this.scalingGroupId = scalingGroupId; return this; } /** * The status of the event-triggered task. Valid values: *

* * * ALARM: The alert condition is met and an alert is triggered. * * OK: The alert condition is not met. * * INSUFFICIENT_DATA: Auto Scaling cannot determine whether the alert condition is met due to insufficient data. */ public Builder state(String state) { this.putQueryParameter("State", state); this.state = state; return this; } @Override public DescribeAlarmsRequest build() { return new DescribeAlarmsRequest(this); } } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy