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

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

DescribeResourcesModificationRequest

*/ public class DescribeResourcesModificationRequest 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("Conditions") private java.util.List < String > conditions; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Cores") private Integer cores; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("DestinationResource") @com.aliyun.core.annotation.Validation(required = true) private String destinationResource; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("InstanceType") private String instanceType; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Memory") private Float memory; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("MigrateAcrossZone") private Boolean migrateAcrossZone; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OperationType") private String operationType; @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("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("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("ZoneId") private String zoneId; private DescribeResourcesModificationRequest(Builder builder) { super(builder); this.sourceRegionId = builder.sourceRegionId; this.conditions = builder.conditions; this.cores = builder.cores; this.destinationResource = builder.destinationResource; this.instanceType = builder.instanceType; this.memory = builder.memory; this.migrateAcrossZone = builder.migrateAcrossZone; this.operationType = builder.operationType; this.ownerAccount = builder.ownerAccount; this.ownerId = builder.ownerId; this.regionId = builder.regionId; this.resourceId = builder.resourceId; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.resourceOwnerId = builder.resourceOwnerId; this.zoneId = builder.zoneId; } public static Builder builder() { return new Builder(); } public static DescribeResourcesModificationRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return sourceRegionId */ public String getSourceRegionId() { return this.sourceRegionId; } /** * @return conditions */ public java.util.List < String > getConditions() { return this.conditions; } /** * @return cores */ public Integer getCores() { return this.cores; } /** * @return destinationResource */ public String getDestinationResource() { return this.destinationResource; } /** * @return instanceType */ public String getInstanceType() { return this.instanceType; } /** * @return memory */ public Float getMemory() { return this.memory; } /** * @return migrateAcrossZone */ public Boolean getMigrateAcrossZone() { return this.migrateAcrossZone; } /** * @return operationType */ public String getOperationType() { return this.operationType; } /** * @return ownerAccount */ public String getOwnerAccount() { return this.ownerAccount; } /** * @return ownerId */ public Long getOwnerId() { return this.ownerId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceId */ public String getResourceId() { return this.resourceId; } /** * @return resourceOwnerAccount */ public String getResourceOwnerAccount() { return this.resourceOwnerAccount; } /** * @return resourceOwnerId */ public Long getResourceOwnerId() { return this.resourceOwnerId; } /** * @return zoneId */ public String getZoneId() { return this.zoneId; } public static final class Builder extends Request.Builder { private String sourceRegionId; private java.util.List < String > conditions; private Integer cores; private String destinationResource; private String instanceType; private Float memory; private Boolean migrateAcrossZone; private String operationType; private String ownerAccount; private Long ownerId; private String regionId; private String resourceId; private String resourceOwnerAccount; private Long resourceOwnerId; private String zoneId; private Builder() { super(); } private Builder(DescribeResourcesModificationRequest request) { super(request); this.sourceRegionId = request.sourceRegionId; this.conditions = request.conditions; this.cores = request.cores; this.destinationResource = request.destinationResource; this.instanceType = request.instanceType; this.memory = request.memory; this.migrateAcrossZone = request.migrateAcrossZone; this.operationType = request.operationType; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.regionId = request.regionId; this.resourceId = request.resourceId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; this.zoneId = request.zoneId; } /** * SourceRegionId. */ public Builder sourceRegionId(String sourceRegionId) { this.putHostParameter("SourceRegionId", sourceRegionId); this.sourceRegionId = sourceRegionId; return this; } /** * The conditions. */ public Builder conditions(java.util.List < String > conditions) { this.putQueryParameter("Conditions", conditions); this.conditions = conditions; return this; } /** * The number of vCPUs of the instance type. For information about the values, see [Overview of instance families](~~25378~~). This parameter takes effect only when DestinationResource is set to InstanceType. */ public Builder cores(Integer cores) { this.putQueryParameter("Cores", cores); this.cores = cores; return this; } /** * The type of the resource. Valid values: *

* * * InstanceType * * SystemDisk */ public Builder destinationResource(String destinationResource) { this.putQueryParameter("DestinationResource", destinationResource); this.destinationResource = destinationResource; return this; } /** * The instance type. For more information, see [Overview of instance families](~~25378~~). You can also call the [DescribeInstanceTypes](~~25620~~) operation to query the most recent instance type list. This parameter must be specified when DestinationResource is set to SystemDisk. */ public Builder instanceType(String instanceType) { this.putQueryParameter("InstanceType", instanceType); this.instanceType = instanceType; return this; } /** * The memory size of the instance type. Unit: GiB. For information about the values, see [Overview of instance families](~~25378~~). This parameter takes effect only when DestinationResource is set to InstanceType. */ public Builder memory(Float memory) { this.putQueryParameter("Memory", memory); this.memory = memory; return this; } /** * Specifies whether cross-cluster instance type upgrades are supported. Valid values: *

* * * true * * false * * Default value: false. * * When MigrateAcrossZone is set to true and you upgrade the instance type of an instance based on the returned information, take note of the following items: * * * Instance that resides in the classic network: * * * For [retired instance types](~~55263~~), when a non-I/O optimized instance is upgraded to an I/O optimized instance, the private IP address, disk device names, and software authorization codes of the instance change. For a Linux instance, basic disks (cloud) are identified as xvd\* such as xvda and xvdb, and ultra disks (cloud_efficiency) and standard SSDs (cloud_ssd) are identified as vd\* such as vda and vdb. * * For [instance families available for purchase](~~25378~~), when the instance type of an instance is changed, the private IP address of the instance changes. * * * Instance that resides in a virtual private cloud (VPC): For [retired instance types](~~55263~~), when a non-I/O optimized instance is upgraded to an I/O optimized instance, the disk device names and software authorization codes of the instance change. For a Linux instance, basic disks (cloud) are identified as xvd\* such as xvda and xvdb, and ultra disks (cloud_efficiency) and standard SSDs (cloud_ssd) are identified as vd\* such as vda and vdb. */ public Builder migrateAcrossZone(Boolean migrateAcrossZone) { this.putQueryParameter("MigrateAcrossZone", migrateAcrossZone); this.migrateAcrossZone = migrateAcrossZone; return this; } /** * The operation of changing resource configurations. *

* * * Valid values for subscription resources: * * * Upgrade: upgrades resources. * * Downgrade: downgrades resources. * * RenewDowngrade: renews and downgrades resources. * * RenewModify: renews an expired instance and changes its configurations. * * * Set the value to Upgrade for pay-as-you-go resources. * * Default value: Upgrade. */ public Builder operationType(String operationType) { this.putQueryParameter("OperationType", operationType); this.operationType = operationType; 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 region ID. 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. For example, when DestinationResource is set to InstanceType, this parameter can be interpreted as InstanceId. */ public Builder resourceId(String resourceId) { this.putQueryParameter("ResourceId", resourceId); this.resourceId = resourceId; 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; } /** * The zone ID. */ public Builder zoneId(String zoneId) { this.putQueryParameter("ZoneId", zoneId); this.zoneId = zoneId; return this; } @Override public DescribeResourcesModificationRequest build() { return new DescribeResourcesModificationRequest(this); } } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy