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

com.aliyun.eas20210701.models.DescribeSpotDiscountHistoryResponseBody Maven / Gradle / Ivy

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

import com.aliyun.tea.*;

public class DescribeSpotDiscountHistoryResponseBody extends TeaModel {
    /**
     * 

The request ID.

* * example: *

40325405-579C-4D82***

*/ @NameInMap("RequestId") public String requestId; /** *

The discount for the preemptible instance.

*/ @NameInMap("SpotDiscounts") public java.util.List spotDiscounts; public static DescribeSpotDiscountHistoryResponseBody build(java.util.Map map) throws Exception { DescribeSpotDiscountHistoryResponseBody self = new DescribeSpotDiscountHistoryResponseBody(); return TeaModel.build(map, self); } public DescribeSpotDiscountHistoryResponseBody setRequestId(String requestId) { this.requestId = requestId; return this; } public String getRequestId() { return this.requestId; } public DescribeSpotDiscountHistoryResponseBody setSpotDiscounts(java.util.List spotDiscounts) { this.spotDiscounts = spotDiscounts; return this; } public java.util.List getSpotDiscounts() { return this.spotDiscounts; } public static class DescribeSpotDiscountHistoryResponseBodySpotDiscounts extends TeaModel { /** *

The type of the ECS instance.

* * example: *

ecs.c7.large

*/ @NameInMap("InstanceType") public String instanceType; /** *

The discount for the preemptible instance. For example, 0.1 represents a 90% discount.

* * example: *

0.1

*/ @NameInMap("SpotDiscount") public String spotDiscount; /** *

The time when the discount is available. The time must be in UTC.

* * example: *

2024-04-10T10:00:00Z

*/ @NameInMap("Timestamp") public String timestamp; /** *

The zone ID.

* * example: *

cn-hangzhou-i

*/ @NameInMap("ZoneId") public String zoneId; public static DescribeSpotDiscountHistoryResponseBodySpotDiscounts build(java.util.Map map) throws Exception { DescribeSpotDiscountHistoryResponseBodySpotDiscounts self = new DescribeSpotDiscountHistoryResponseBodySpotDiscounts(); return TeaModel.build(map, self); } public DescribeSpotDiscountHistoryResponseBodySpotDiscounts setInstanceType(String instanceType) { this.instanceType = instanceType; return this; } public String getInstanceType() { return this.instanceType; } public DescribeSpotDiscountHistoryResponseBodySpotDiscounts setSpotDiscount(String spotDiscount) { this.spotDiscount = spotDiscount; return this; } public String getSpotDiscount() { return this.spotDiscount; } public DescribeSpotDiscountHistoryResponseBodySpotDiscounts setTimestamp(String timestamp) { this.timestamp = timestamp; return this; } public String getTimestamp() { return this.timestamp; } public DescribeSpotDiscountHistoryResponseBodySpotDiscounts setZoneId(String zoneId) { this.zoneId = zoneId; return this; } public String getZoneId() { return this.zoneId; } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy