com.aliyun.eas20210701.models.DescribeSpotDiscountHistoryResponseBody Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of eas20210701 Show documentation
Show all versions of eas20210701 Show documentation
Alibaba Cloud eas (20210701) SDK for Java
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;
}
}
}