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

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

The newest version!
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.ecs20140526.models;

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

/**
 * 
 * {@link CreateAutoProvisioningGroupResponseBody} extends {@link TeaModel}
 *
 * 

CreateAutoProvisioningGroupResponseBody

*/ public class CreateAutoProvisioningGroupResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("AutoProvisioningGroupId") private String autoProvisioningGroupId; @com.aliyun.core.annotation.NameInMap("LaunchResults") private LaunchResults launchResults; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private CreateAutoProvisioningGroupResponseBody(Builder builder) { this.autoProvisioningGroupId = builder.autoProvisioningGroupId; this.launchResults = builder.launchResults; this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static CreateAutoProvisioningGroupResponseBody create() { return builder().build(); } /** * @return autoProvisioningGroupId */ public String getAutoProvisioningGroupId() { return this.autoProvisioningGroupId; } /** * @return launchResults */ public LaunchResults getLaunchResults() { return this.launchResults; } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private String autoProvisioningGroupId; private LaunchResults launchResults; private String requestId; /** *

The ID of the auto provisioning group.

* * example: *

apg-sn54avj8htgvtyh8****

*/ public Builder autoProvisioningGroupId(String autoProvisioningGroupId) { this.autoProvisioningGroupId = autoProvisioningGroupId; return this; } /** *

The instances created by the auto provisioning group. The values of the parameters in this array are returned only when AutoProvisioningGroupType is set to instant.

*/ public Builder launchResults(LaunchResults launchResults) { this.launchResults = launchResults; return this; } /** *

The ID of the request.

* * example: *

745CEC9F-0DD7-4451-9FE7-8B752F39****

*/ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public CreateAutoProvisioningGroupResponseBody build() { return new CreateAutoProvisioningGroupResponseBody(this); } } /** * * {@link CreateAutoProvisioningGroupResponseBody} extends {@link TeaModel} * *

CreateAutoProvisioningGroupResponseBody

*/ public static class InstanceIds extends TeaModel { @com.aliyun.core.annotation.NameInMap("InstanceId") private java.util.List instanceId; private InstanceIds(Builder builder) { this.instanceId = builder.instanceId; } public static Builder builder() { return new Builder(); } public static InstanceIds create() { return builder().build(); } /** * @return instanceId */ public java.util.List getInstanceId() { return this.instanceId; } public static final class Builder { private java.util.List instanceId; /** * InstanceId. */ public Builder instanceId(java.util.List instanceId) { this.instanceId = instanceId; return this; } public InstanceIds build() { return new InstanceIds(this); } } } /** * * {@link CreateAutoProvisioningGroupResponseBody} extends {@link TeaModel} * *

CreateAutoProvisioningGroupResponseBody

*/ public static class LaunchResult extends TeaModel { @com.aliyun.core.annotation.NameInMap("Amount") private Integer amount; @com.aliyun.core.annotation.NameInMap("ErrorCode") private String errorCode; @com.aliyun.core.annotation.NameInMap("ErrorMsg") private String errorMsg; @com.aliyun.core.annotation.NameInMap("InstanceIds") private InstanceIds instanceIds; @com.aliyun.core.annotation.NameInMap("InstanceType") private String instanceType; @com.aliyun.core.annotation.NameInMap("SpotStrategy") private String spotStrategy; @com.aliyun.core.annotation.NameInMap("ZoneId") private String zoneId; private LaunchResult(Builder builder) { this.amount = builder.amount; this.errorCode = builder.errorCode; this.errorMsg = builder.errorMsg; this.instanceIds = builder.instanceIds; this.instanceType = builder.instanceType; this.spotStrategy = builder.spotStrategy; this.zoneId = builder.zoneId; } public static Builder builder() { return new Builder(); } public static LaunchResult create() { return builder().build(); } /** * @return amount */ public Integer getAmount() { return this.amount; } /** * @return errorCode */ public String getErrorCode() { return this.errorCode; } /** * @return errorMsg */ public String getErrorMsg() { return this.errorMsg; } /** * @return instanceIds */ public InstanceIds getInstanceIds() { return this.instanceIds; } /** * @return instanceType */ public String getInstanceType() { return this.instanceType; } /** * @return spotStrategy */ public String getSpotStrategy() { return this.spotStrategy; } /** * @return zoneId */ public String getZoneId() { return this.zoneId; } public static final class Builder { private Integer amount; private String errorCode; private String errorMsg; private InstanceIds instanceIds; private String instanceType; private String spotStrategy; private String zoneId; /** *

The number of created instances.

* * example: *

1

*/ public Builder amount(Integer amount) { this.amount = amount; return this; } /** *

The error code returned when the instance cannot be created.

* * example: *

InvalidParameter

*/ public Builder errorCode(String errorCode) { this.errorCode = errorCode; return this; } /** *

The error message returned when the instance cannot be created.

* * example: *

Specific parameter is not valid.

*/ public Builder errorMsg(String errorMsg) { this.errorMsg = errorMsg; return this; } /** *

The IDs of created instances.

*/ public Builder instanceIds(InstanceIds instanceIds) { this.instanceIds = instanceIds; return this; } /** *

The instance type of the instance.

* * example: *

ecs.g5.large

*/ public Builder instanceType(String instanceType) { this.instanceType = instanceType; return this; } /** *

The bidding policy for the pay-as-you-go instance. Valid values:

*
    *
  • NoSpot: The instance is a regular pay-as-you-go instance.
  • *
  • SpotWithPriceLimit: The instance is a preemptible instance for which you specify the maximum hourly price.
  • *
  • SpotAsPriceGo: The instance is a preemptible instance for which the market price at the time of purchase is used as the bid price.
  • *
* * example: *

NoSpot

*/ public Builder spotStrategy(String spotStrategy) { this.spotStrategy = spotStrategy; return this; } /** *

The zone ID of the instance.

* * example: *

cn-hangzhou-g

*/ public Builder zoneId(String zoneId) { this.zoneId = zoneId; return this; } public LaunchResult build() { return new LaunchResult(this); } } } /** * * {@link CreateAutoProvisioningGroupResponseBody} extends {@link TeaModel} * *

CreateAutoProvisioningGroupResponseBody

*/ public static class LaunchResults extends TeaModel { @com.aliyun.core.annotation.NameInMap("LaunchResult") private java.util.List launchResult; private LaunchResults(Builder builder) { this.launchResult = builder.launchResult; } public static Builder builder() { return new Builder(); } public static LaunchResults create() { return builder().build(); } /** * @return launchResult */ public java.util.List getLaunchResult() { return this.launchResult; } public static final class Builder { private java.util.List launchResult; /** * LaunchResult. */ public Builder launchResult(java.util.List launchResult) { this.launchResult = launchResult; return this; } public LaunchResults build() { return new LaunchResults(this); } } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy