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

com.aliyun.sdk.service.ess20220222.models.DescribeScalingGroupsRequest 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 DescribeScalingGroupsRequest} extends {@link RequestModel}
 *
 * 

DescribeScalingGroupsRequest

*/ public class DescribeScalingGroupsRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("GroupType") private String groupType; @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") 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("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("ScalingGroupIds") private java.util.List < String > scalingGroupIds; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ScalingGroupName") private String scalingGroupName; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ScalingGroupNames") private java.util.List < String > scalingGroupNames; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Tags") private java.util.List < Tags> tags; private DescribeScalingGroupsRequest(Builder builder) { super(builder); this.groupType = builder.groupType; this.ownerAccount = builder.ownerAccount; this.ownerId = builder.ownerId; this.pageNumber = builder.pageNumber; this.pageSize = builder.pageSize; this.regionId = builder.regionId; this.resourceGroupId = builder.resourceGroupId; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.resourceOwnerId = builder.resourceOwnerId; this.scalingGroupIds = builder.scalingGroupIds; this.scalingGroupName = builder.scalingGroupName; this.scalingGroupNames = builder.scalingGroupNames; this.tags = builder.tags; } public static Builder builder() { return new Builder(); } public static DescribeScalingGroupsRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return groupType */ public String getGroupType() { return this.groupType; } /** * @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 regionId */ public String getRegionId() { return this.regionId; } /** * @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 scalingGroupIds */ public java.util.List < String > getScalingGroupIds() { return this.scalingGroupIds; } /** * @return scalingGroupName */ public String getScalingGroupName() { return this.scalingGroupName; } /** * @return scalingGroupNames */ public java.util.List < String > getScalingGroupNames() { return this.scalingGroupNames; } /** * @return tags */ public java.util.List < Tags> getTags() { return this.tags; } public static final class Builder extends Request.Builder { private String groupType; private String ownerAccount; private Long ownerId; private Integer pageNumber; private Integer pageSize; private String regionId; private String resourceGroupId; private String resourceOwnerAccount; private Long resourceOwnerId; private java.util.List < String > scalingGroupIds; private String scalingGroupName; private java.util.List < String > scalingGroupNames; private java.util.List < Tags> tags; private Builder() { super(); } private Builder(DescribeScalingGroupsRequest request) { super(request); this.groupType = request.groupType; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.pageNumber = request.pageNumber; this.pageSize = request.pageSize; this.regionId = request.regionId; this.resourceGroupId = request.resourceGroupId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; this.scalingGroupIds = request.scalingGroupIds; this.scalingGroupName = request.scalingGroupName; this.scalingGroupNames = request.scalingGroupNames; this.tags = request.tags; } /** * The type of instances that are managed by the scaling group. Valid values: *

* * * ECS: ECS instances * * ECI: elastic container instances */ public Builder groupType(String groupType) { this.putQueryParameter("GroupType", groupType); this.groupType = groupType; 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. 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 per page. Maximum value: 50. *

* * Default value: 10. */ public Builder pageSize(Integer pageSize) { this.putQueryParameter("PageSize", pageSize); this.pageSize = pageSize; return this; } /** * RegionId. */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * ResourceGroupId. */ 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; } /** * ScalingGroupIds. */ public Builder scalingGroupIds(java.util.List < String > scalingGroupIds) { this.putQueryParameter("ScalingGroupIds", scalingGroupIds); this.scalingGroupIds = scalingGroupIds; return this; } /** * ScalingGroupName. */ public Builder scalingGroupName(String scalingGroupName) { this.putQueryParameter("ScalingGroupName", scalingGroupName); this.scalingGroupName = scalingGroupName; return this; } /** * ScalingGroupNames. */ public Builder scalingGroupNames(java.util.List < String > scalingGroupNames) { this.putQueryParameter("ScalingGroupNames", scalingGroupNames); this.scalingGroupNames = scalingGroupNames; return this; } /** * Tags. */ public Builder tags(java.util.List < Tags> tags) { this.putQueryParameter("Tags", tags); this.tags = tags; return this; } @Override public DescribeScalingGroupsRequest build() { return new DescribeScalingGroupsRequest(this); } } public static class Tags extends TeaModel { @com.aliyun.core.annotation.NameInMap("Key") private String key; @com.aliyun.core.annotation.NameInMap("Value") private String value; private Tags(Builder builder) { this.key = builder.key; this.value = builder.value; } public static Builder builder() { return new Builder(); } public static Tags create() { return builder().build(); } /** * @return key */ public String getKey() { return this.key; } /** * @return value */ public String getValue() { return this.value; } public static final class Builder { private String key; private String value; /** * Key. */ public Builder key(String key) { this.key = key; return this; } /** * Value. */ public Builder value(String value) { this.value = value; return this; } public Tags build() { return new Tags(this); } } } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy