diff --git a/bssopenapi-20171214/ChangeLog.txt b/bssopenapi-20171214/ChangeLog.txt index c260622763..a4c03fc06e 100644 --- a/bssopenapi-20171214/ChangeLog.txt +++ b/bssopenapi-20171214/ChangeLog.txt @@ -1,3 +1,6 @@ +2021-06-15 Version: 1.0.6 +- AMP Version Change. + 2021-04-28 Version: 1.0.5 - AMP Version Change. diff --git a/bssopenapi-20171214/pom.xml b/bssopenapi-20171214/pom.xml index 4fe1ab629f..b27b5b2437 100644 --- a/bssopenapi-20171214/pom.xml +++ b/bssopenapi-20171214/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.aliyun bssopenapi20171214 - 1.0.5 + 1.0.6 jar bssopenapi20171214 Alibaba Cloud BssOpenApi (20171214) SDK for Java @@ -25,11 +25,11 @@ sonatype-nexus-snapshots - https://oss.sonatype.org/content/repositories/snapshots + https://s01.oss.sonatype.org/content/repositories/snapshots sonatype-nexus-staging - https://oss.sonatype.org/service/local/staging/deploy/maven2/ + https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/ @@ -41,7 +41,7 @@ com.aliyun tea-util - 0.2.11 + 0.2.12 com.aliyun @@ -67,12 +67,12 @@ com.aliyun tea-openapi - 0.0.16 + 0.0.18 com.aliyun openapiutil - 0.1.6 + 0.1.8 @@ -107,7 +107,7 @@ true sonatype-nexus-staging - https://oss.sonatype.org/ + https://s01.oss.sonatype.org/ true diff --git a/bssopenapi-20171214/src/main/java/com/aliyun/bssopenapi20171214/Client.java b/bssopenapi-20171214/src/main/java/com/aliyun/bssopenapi20171214/Client.java index 95109ee03a..3772a17ae4 100644 --- a/bssopenapi-20171214/src/main/java/com/aliyun/bssopenapi20171214/Client.java +++ b/bssopenapi-20171214/src/main/java/com/aliyun/bssopenapi20171214/Client.java @@ -88,6 +88,19 @@ public String getEndpoint(String productId, String regionId, String endpointRule return com.aliyun.endpointutil.Client.getEndpointRules(productId, regionId, endpointRule, network, suffix); } + public AddAccountRelationResponse addAccountRelationWithOptions(AddAccountRelationRequest request, RuntimeOptions runtime) throws Exception { + com.aliyun.teautil.Common.validateModel(request); + OpenApiRequest req = OpenApiRequest.build(TeaConverter.buildMap( + new TeaPair("body", com.aliyun.teautil.Common.toMap(request)) + )); + return TeaModel.toModel(this.doRPCRequest("AddAccountRelation", "2017-12-14", "HTTPS", "POST", "AK", "json", req, runtime), new AddAccountRelationResponse()); + } + + public AddAccountRelationResponse addAccountRelation(AddAccountRelationRequest request) throws Exception { + RuntimeOptions runtime = new RuntimeOptions(); + return this.addAccountRelationWithOptions(request, runtime); + } + public AllocateCostUnitResourceResponse allocateCostUnitResourceWithOptions(AllocateCostUnitResourceRequest request, RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); OpenApiRequest req = OpenApiRequest.build(TeaConverter.buildMap( @@ -140,6 +153,19 @@ public ChangeResellerConsumeAmountResponse changeResellerConsumeAmount(ChangeRes return this.changeResellerConsumeAmountWithOptions(request, runtime); } + public ConfirmRelationResponse confirmRelationWithOptions(ConfirmRelationRequest request, RuntimeOptions runtime) throws Exception { + com.aliyun.teautil.Common.validateModel(request); + OpenApiRequest req = OpenApiRequest.build(TeaConverter.buildMap( + new TeaPair("body", com.aliyun.teautil.Common.toMap(request)) + )); + return TeaModel.toModel(this.doRPCRequest("ConfirmRelation", "2017-12-14", "HTTPS", "POST", "AK", "json", req, runtime), new ConfirmRelationResponse()); + } + + public ConfirmRelationResponse confirmRelation(ConfirmRelationRequest request) throws Exception { + RuntimeOptions runtime = new RuntimeOptions(); + return this.confirmRelationWithOptions(request, runtime); + } + public ConvertChargeTypeResponse convertChargeTypeWithOptions(ConvertChargeTypeRequest request, RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); OpenApiRequest req = OpenApiRequest.build(TeaConverter.buildMap( @@ -244,6 +270,32 @@ public DescribeInstanceBillResponse describeInstanceBill(DescribeInstanceBillReq return this.describeInstanceBillWithOptions(request, runtime); } + public DescribeResourceCoverageDetailResponse describeResourceCoverageDetailWithOptions(DescribeResourceCoverageDetailRequest request, RuntimeOptions runtime) throws Exception { + com.aliyun.teautil.Common.validateModel(request); + OpenApiRequest req = OpenApiRequest.build(TeaConverter.buildMap( + new TeaPair("body", com.aliyun.teautil.Common.toMap(request)) + )); + return TeaModel.toModel(this.doRPCRequest("DescribeResourceCoverageDetail", "2017-12-14", "HTTPS", "POST", "AK", "json", req, runtime), new DescribeResourceCoverageDetailResponse()); + } + + public DescribeResourceCoverageDetailResponse describeResourceCoverageDetail(DescribeResourceCoverageDetailRequest request) throws Exception { + RuntimeOptions runtime = new RuntimeOptions(); + return this.describeResourceCoverageDetailWithOptions(request, runtime); + } + + public DescribeResourceCoverageTotalResponse describeResourceCoverageTotalWithOptions(DescribeResourceCoverageTotalRequest request, RuntimeOptions runtime) throws Exception { + com.aliyun.teautil.Common.validateModel(request); + OpenApiRequest req = OpenApiRequest.build(TeaConverter.buildMap( + new TeaPair("body", com.aliyun.teautil.Common.toMap(request)) + )); + return TeaModel.toModel(this.doRPCRequest("DescribeResourceCoverageTotal", "2017-12-14", "HTTPS", "POST", "AK", "json", req, runtime), new DescribeResourceCoverageTotalResponse()); + } + + public DescribeResourceCoverageTotalResponse describeResourceCoverageTotal(DescribeResourceCoverageTotalRequest request) throws Exception { + RuntimeOptions runtime = new RuntimeOptions(); + return this.describeResourceCoverageTotalWithOptions(request, runtime); + } + public DescribeResourcePackageProductResponse describeResourcePackageProductWithOptions(DescribeResourcePackageProductRequest request, RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); OpenApiRequest req = OpenApiRequest.build(TeaConverter.buildMap( @@ -257,6 +309,32 @@ public DescribeResourcePackageProductResponse describeResourcePackageProduct(Des return this.describeResourcePackageProductWithOptions(request, runtime); } + public DescribeResourceUsageDetailResponse describeResourceUsageDetailWithOptions(DescribeResourceUsageDetailRequest request, RuntimeOptions runtime) throws Exception { + com.aliyun.teautil.Common.validateModel(request); + OpenApiRequest req = OpenApiRequest.build(TeaConverter.buildMap( + new TeaPair("body", com.aliyun.teautil.Common.toMap(request)) + )); + return TeaModel.toModel(this.doRPCRequest("DescribeResourceUsageDetail", "2017-12-14", "HTTPS", "POST", "AK", "json", req, runtime), new DescribeResourceUsageDetailResponse()); + } + + public DescribeResourceUsageDetailResponse describeResourceUsageDetail(DescribeResourceUsageDetailRequest request) throws Exception { + RuntimeOptions runtime = new RuntimeOptions(); + return this.describeResourceUsageDetailWithOptions(request, runtime); + } + + public DescribeResourceUsageTotalResponse describeResourceUsageTotalWithOptions(DescribeResourceUsageTotalRequest request, RuntimeOptions runtime) throws Exception { + com.aliyun.teautil.Common.validateModel(request); + OpenApiRequest req = OpenApiRequest.build(TeaConverter.buildMap( + new TeaPair("body", com.aliyun.teautil.Common.toMap(request)) + )); + return TeaModel.toModel(this.doRPCRequest("DescribeResourceUsageTotal", "2017-12-14", "HTTPS", "POST", "AK", "json", req, runtime), new DescribeResourceUsageTotalResponse()); + } + + public DescribeResourceUsageTotalResponse describeResourceUsageTotal(DescribeResourceUsageTotalRequest request) throws Exception { + RuntimeOptions runtime = new RuntimeOptions(); + return this.describeResourceUsageTotalWithOptions(request, runtime); + } + public DescribeSplitItemBillResponse describeSplitItemBillWithOptions(DescribeSplitItemBillRequest request, RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); OpenApiRequest req = OpenApiRequest.build(TeaConverter.buildMap( @@ -358,6 +436,19 @@ public GetSubscriptionPriceResponse getSubscriptionPrice(GetSubscriptionPriceReq return this.getSubscriptionPriceWithOptions(request, runtime); } + public ModifyAccountRelationResponse modifyAccountRelationWithOptions(ModifyAccountRelationRequest request, RuntimeOptions runtime) throws Exception { + com.aliyun.teautil.Common.validateModel(request); + OpenApiRequest req = OpenApiRequest.build(TeaConverter.buildMap( + new TeaPair("body", com.aliyun.teautil.Common.toMap(request)) + )); + return TeaModel.toModel(this.doRPCRequest("ModifyAccountRelation", "2017-12-14", "HTTPS", "POST", "AK", "json", req, runtime), new ModifyAccountRelationResponse()); + } + + public ModifyAccountRelationResponse modifyAccountRelation(ModifyAccountRelationRequest request) throws Exception { + RuntimeOptions runtime = new RuntimeOptions(); + return this.modifyAccountRelationWithOptions(request, runtime); + } + public ModifyCostUnitResponse modifyCostUnitWithOptions(ModifyCostUnitRequest request, RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); OpenApiRequest req = OpenApiRequest.build(TeaConverter.buildMap( @@ -534,6 +625,19 @@ public QueryCustomerAddressListResponse queryCustomerAddressList(QueryCustomerAd return this.queryCustomerAddressListWithOptions(request, runtime); } + public QueryDPUtilizationDetailResponse queryDPUtilizationDetailWithOptions(QueryDPUtilizationDetailRequest request, RuntimeOptions runtime) throws Exception { + com.aliyun.teautil.Common.validateModel(request); + OpenApiRequest req = OpenApiRequest.build(TeaConverter.buildMap( + new TeaPair("body", com.aliyun.teautil.Common.toMap(request)) + )); + return TeaModel.toModel(this.doRPCRequest("QueryDPUtilizationDetail", "2017-12-14", "HTTPS", "POST", "AK", "json", req, runtime), new QueryDPUtilizationDetailResponse()); + } + + public QueryDPUtilizationDetailResponse queryDPUtilizationDetail(QueryDPUtilizationDetailRequest request) throws Exception { + RuntimeOptions runtime = new RuntimeOptions(); + return this.queryDPUtilizationDetailWithOptions(request, runtime); + } + public QueryEvaluateListResponse queryEvaluateListWithOptions(QueryEvaluateListRequest request, RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); OpenApiRequest req = OpenApiRequest.build(TeaConverter.buildMap( @@ -821,6 +925,19 @@ public QueryUserOmsDataResponse queryUserOmsData(QueryUserOmsDataRequest request return this.queryUserOmsDataWithOptions(request, runtime); } + public RelieveAccountRelationResponse relieveAccountRelationWithOptions(RelieveAccountRelationRequest request, RuntimeOptions runtime) throws Exception { + com.aliyun.teautil.Common.validateModel(request); + OpenApiRequest req = OpenApiRequest.build(TeaConverter.buildMap( + new TeaPair("body", com.aliyun.teautil.Common.toMap(request)) + )); + return TeaModel.toModel(this.doRPCRequest("RelieveAccountRelation", "2017-12-14", "HTTPS", "POST", "AK", "json", req, runtime), new RelieveAccountRelationResponse()); + } + + public RelieveAccountRelationResponse relieveAccountRelation(RelieveAccountRelationRequest request) throws Exception { + RuntimeOptions runtime = new RuntimeOptions(); + return this.relieveAccountRelationWithOptions(request, runtime); + } + public RenewInstanceResponse renewInstanceWithOptions(RenewInstanceRequest request, RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); OpenApiRequest req = OpenApiRequest.build(TeaConverter.buildMap( diff --git a/bssopenapi-20171214/src/main/java/com/aliyun/bssopenapi20171214/models/AddAccountRelationRequest.java b/bssopenapi-20171214/src/main/java/com/aliyun/bssopenapi20171214/models/AddAccountRelationRequest.java new file mode 100644 index 0000000000..05c343d6e8 --- /dev/null +++ b/bssopenapi-20171214/src/main/java/com/aliyun/bssopenapi20171214/models/AddAccountRelationRequest.java @@ -0,0 +1,89 @@ +// This file is auto-generated, don't edit it. Thanks. +package com.aliyun.bssopenapi20171214.models; + +import com.aliyun.tea.*; + +public class AddAccountRelationRequest extends TeaModel { + @NameInMap("RelationType") + public String relationType; + + @NameInMap("ParentUserId") + public Long parentUserId; + + @NameInMap("ChildNick") + public String childNick; + + @NameInMap("ChildUserId") + public Long childUserId; + + @NameInMap("RequestId") + public String requestId; + + @NameInMap("PermissionCodes") + public java.util.List permissionCodes; + + @NameInMap("RoleCodes") + public java.util.List roleCodes; + + public static AddAccountRelationRequest build(java.util.Map map) throws Exception { + AddAccountRelationRequest self = new AddAccountRelationRequest(); + return TeaModel.build(map, self); + } + + public AddAccountRelationRequest setRelationType(String relationType) { + this.relationType = relationType; + return this; + } + public String getRelationType() { + return this.relationType; + } + + public AddAccountRelationRequest setParentUserId(Long parentUserId) { + this.parentUserId = parentUserId; + return this; + } + public Long getParentUserId() { + return this.parentUserId; + } + + public AddAccountRelationRequest setChildNick(String childNick) { + this.childNick = childNick; + return this; + } + public String getChildNick() { + return this.childNick; + } + + public AddAccountRelationRequest setChildUserId(Long childUserId) { + this.childUserId = childUserId; + return this; + } + public Long getChildUserId() { + return this.childUserId; + } + + public AddAccountRelationRequest setRequestId(String requestId) { + this.requestId = requestId; + return this; + } + public String getRequestId() { + return this.requestId; + } + + public AddAccountRelationRequest setPermissionCodes(java.util.List permissionCodes) { + this.permissionCodes = permissionCodes; + return this; + } + public java.util.List getPermissionCodes() { + return this.permissionCodes; + } + + public AddAccountRelationRequest setRoleCodes(java.util.List roleCodes) { + this.roleCodes = roleCodes; + return this; + } + public java.util.List getRoleCodes() { + return this.roleCodes; + } + +} diff --git a/bssopenapi-20171214/src/main/java/com/aliyun/bssopenapi20171214/models/AddAccountRelationResponse.java b/bssopenapi-20171214/src/main/java/com/aliyun/bssopenapi20171214/models/AddAccountRelationResponse.java new file mode 100644 index 0000000000..294109ce5d --- /dev/null +++ b/bssopenapi-20171214/src/main/java/com/aliyun/bssopenapi20171214/models/AddAccountRelationResponse.java @@ -0,0 +1,36 @@ +// This file is auto-generated, don't edit it. Thanks. +package com.aliyun.bssopenapi20171214.models; + +import com.aliyun.tea.*; + +public class AddAccountRelationResponse extends TeaModel { + @NameInMap("headers") + @Validation(required = true) + public java.util.Map headers; + + @NameInMap("body") + @Validation(required = true) + public AddAccountRelationResponseBody body; + + public static AddAccountRelationResponse build(java.util.Map map) throws Exception { + AddAccountRelationResponse self = new AddAccountRelationResponse(); + return TeaModel.build(map, self); + } + + public AddAccountRelationResponse setHeaders(java.util.Map headers) { + this.headers = headers; + return this; + } + public java.util.Map getHeaders() { + return this.headers; + } + + public AddAccountRelationResponse setBody(AddAccountRelationResponseBody body) { + this.body = body; + return this; + } + public AddAccountRelationResponseBody getBody() { + return this.body; + } + +} diff --git a/bssopenapi-20171214/src/main/java/com/aliyun/bssopenapi20171214/models/AddAccountRelationResponseBody.java b/bssopenapi-20171214/src/main/java/com/aliyun/bssopenapi20171214/models/AddAccountRelationResponseBody.java new file mode 100644 index 0000000000..82f9cd9323 --- /dev/null +++ b/bssopenapi-20171214/src/main/java/com/aliyun/bssopenapi20171214/models/AddAccountRelationResponseBody.java @@ -0,0 +1,86 @@ +// This file is auto-generated, don't edit it. Thanks. +package com.aliyun.bssopenapi20171214.models; + +import com.aliyun.tea.*; + +public class AddAccountRelationResponseBody extends TeaModel { + @NameInMap("Code") + public String code; + + @NameInMap("Message") + public String message; + + @NameInMap("RequestId") + public String requestId; + + @NameInMap("Success") + public Boolean success; + + @NameInMap("Data") + public AddAccountRelationResponseBodyData data; + + public static AddAccountRelationResponseBody build(java.util.Map map) throws Exception { + AddAccountRelationResponseBody self = new AddAccountRelationResponseBody(); + return TeaModel.build(map, self); + } + + public AddAccountRelationResponseBody setCode(String code) { + this.code = code; + return this; + } + public String getCode() { + return this.code; + } + + public AddAccountRelationResponseBody setMessage(String message) { + this.message = message; + return this; + } + public String getMessage() { + return this.message; + } + + public AddAccountRelationResponseBody setRequestId(String requestId) { + this.requestId = requestId; + return this; + } + public String getRequestId() { + return this.requestId; + } + + public AddAccountRelationResponseBody setSuccess(Boolean success) { + this.success = success; + return this; + } + public Boolean getSuccess() { + return this.success; + } + + public AddAccountRelationResponseBody setData(AddAccountRelationResponseBodyData data) { + this.data = data; + return this; + } + public AddAccountRelationResponseBodyData getData() { + return this.data; + } + + public static class AddAccountRelationResponseBodyData extends TeaModel { + @NameInMap("HostId") + public String hostId; + + public static AddAccountRelationResponseBodyData build(java.util.Map map) throws Exception { + AddAccountRelationResponseBodyData self = new AddAccountRelationResponseBodyData(); + return TeaModel.build(map, self); + } + + public AddAccountRelationResponseBodyData setHostId(String hostId) { + this.hostId = hostId; + return this; + } + public String getHostId() { + return this.hostId; + } + + } + +} diff --git a/bssopenapi-20171214/src/main/java/com/aliyun/bssopenapi20171214/models/ConfirmRelationRequest.java b/bssopenapi-20171214/src/main/java/com/aliyun/bssopenapi20171214/models/ConfirmRelationRequest.java new file mode 100644 index 0000000000..c304e086dc --- /dev/null +++ b/bssopenapi-20171214/src/main/java/com/aliyun/bssopenapi20171214/models/ConfirmRelationRequest.java @@ -0,0 +1,78 @@ +// This file is auto-generated, don't edit it. Thanks. +package com.aliyun.bssopenapi20171214.models; + +import com.aliyun.tea.*; + +public class ConfirmRelationRequest extends TeaModel { + @NameInMap("RelationType") + public String relationType; + + @NameInMap("ParentUserId") + public Long parentUserId; + + @NameInMap("ConfirmCode") + public String confirmCode; + + @NameInMap("ChildUserId") + public Long childUserId; + + @NameInMap("RequestId") + public String requestId; + + @NameInMap("PermissionCodes") + public java.util.List permissionCodes; + + public static ConfirmRelationRequest build(java.util.Map map) throws Exception { + ConfirmRelationRequest self = new ConfirmRelationRequest(); + return TeaModel.build(map, self); + } + + public ConfirmRelationRequest setRelationType(String relationType) { + this.relationType = relationType; + return this; + } + public String getRelationType() { + return this.relationType; + } + + public ConfirmRelationRequest setParentUserId(Long parentUserId) { + this.parentUserId = parentUserId; + return this; + } + public Long getParentUserId() { + return this.parentUserId; + } + + public ConfirmRelationRequest setConfirmCode(String confirmCode) { + this.confirmCode = confirmCode; + return this; + } + public String getConfirmCode() { + return this.confirmCode; + } + + public ConfirmRelationRequest setChildUserId(Long childUserId) { + this.childUserId = childUserId; + return this; + } + public Long getChildUserId() { + return this.childUserId; + } + + public ConfirmRelationRequest setRequestId(String requestId) { + this.requestId = requestId; + return this; + } + public String getRequestId() { + return this.requestId; + } + + public ConfirmRelationRequest setPermissionCodes(java.util.List permissionCodes) { + this.permissionCodes = permissionCodes; + return this; + } + public java.util.List getPermissionCodes() { + return this.permissionCodes; + } + +} diff --git a/bssopenapi-20171214/src/main/java/com/aliyun/bssopenapi20171214/models/ConfirmRelationResponse.java b/bssopenapi-20171214/src/main/java/com/aliyun/bssopenapi20171214/models/ConfirmRelationResponse.java new file mode 100644 index 0000000000..53ff028dee --- /dev/null +++ b/bssopenapi-20171214/src/main/java/com/aliyun/bssopenapi20171214/models/ConfirmRelationResponse.java @@ -0,0 +1,36 @@ +// This file is auto-generated, don't edit it. Thanks. +package com.aliyun.bssopenapi20171214.models; + +import com.aliyun.tea.*; + +public class ConfirmRelationResponse extends TeaModel { + @NameInMap("headers") + @Validation(required = true) + public java.util.Map headers; + + @NameInMap("body") + @Validation(required = true) + public ConfirmRelationResponseBody body; + + public static ConfirmRelationResponse build(java.util.Map map) throws Exception { + ConfirmRelationResponse self = new ConfirmRelationResponse(); + return TeaModel.build(map, self); + } + + public ConfirmRelationResponse setHeaders(java.util.Map headers) { + this.headers = headers; + return this; + } + public java.util.Map getHeaders() { + return this.headers; + } + + public ConfirmRelationResponse setBody(ConfirmRelationResponseBody body) { + this.body = body; + return this; + } + public ConfirmRelationResponseBody getBody() { + return this.body; + } + +} diff --git a/bssopenapi-20171214/src/main/java/com/aliyun/bssopenapi20171214/models/ConfirmRelationResponseBody.java b/bssopenapi-20171214/src/main/java/com/aliyun/bssopenapi20171214/models/ConfirmRelationResponseBody.java new file mode 100644 index 0000000000..94b9723388 --- /dev/null +++ b/bssopenapi-20171214/src/main/java/com/aliyun/bssopenapi20171214/models/ConfirmRelationResponseBody.java @@ -0,0 +1,86 @@ +// This file is auto-generated, don't edit it. Thanks. +package com.aliyun.bssopenapi20171214.models; + +import com.aliyun.tea.*; + +public class ConfirmRelationResponseBody extends TeaModel { + @NameInMap("Code") + public String code; + + @NameInMap("Message") + public String message; + + @NameInMap("RequestId") + public String requestId; + + @NameInMap("Success") + public Boolean success; + + @NameInMap("Data") + public ConfirmRelationResponseBodyData data; + + public static ConfirmRelationResponseBody build(java.util.Map map) throws Exception { + ConfirmRelationResponseBody self = new ConfirmRelationResponseBody(); + return TeaModel.build(map, self); + } + + public ConfirmRelationResponseBody setCode(String code) { + this.code = code; + return this; + } + public String getCode() { + return this.code; + } + + public ConfirmRelationResponseBody setMessage(String message) { + this.message = message; + return this; + } + public String getMessage() { + return this.message; + } + + public ConfirmRelationResponseBody setRequestId(String requestId) { + this.requestId = requestId; + return this; + } + public String getRequestId() { + return this.requestId; + } + + public ConfirmRelationResponseBody setSuccess(Boolean success) { + this.success = success; + return this; + } + public Boolean getSuccess() { + return this.success; + } + + public ConfirmRelationResponseBody setData(ConfirmRelationResponseBodyData data) { + this.data = data; + return this; + } + public ConfirmRelationResponseBodyData getData() { + return this.data; + } + + public static class ConfirmRelationResponseBodyData extends TeaModel { + @NameInMap("HostId") + public String hostId; + + public static ConfirmRelationResponseBodyData build(java.util.Map map) throws Exception { + ConfirmRelationResponseBodyData self = new ConfirmRelationResponseBodyData(); + return TeaModel.build(map, self); + } + + public ConfirmRelationResponseBodyData setHostId(String hostId) { + this.hostId = hostId; + return this; + } + public String getHostId() { + return this.hostId; + } + + } + +} diff --git a/bssopenapi-20171214/src/main/java/com/aliyun/bssopenapi20171214/models/DescribeInstanceBillResponseBody.java b/bssopenapi-20171214/src/main/java/com/aliyun/bssopenapi20171214/models/DescribeInstanceBillResponseBody.java index d01ce0bb35..4c98abb247 100644 --- a/bssopenapi-20171214/src/main/java/com/aliyun/bssopenapi20171214/models/DescribeInstanceBillResponseBody.java +++ b/bssopenapi-20171214/src/main/java/com/aliyun/bssopenapi20171214/models/DescribeInstanceBillResponseBody.java @@ -4,26 +4,34 @@ import com.aliyun.tea.*; public class DescribeInstanceBillResponseBody extends TeaModel { + @NameInMap("Code") + public String code; + @NameInMap("Message") public String message; @NameInMap("RequestId") public String requestId; - @NameInMap("Data") - public DescribeInstanceBillResponseBodyData data; - - @NameInMap("Code") - public String code; - @NameInMap("Success") public Boolean success; + @NameInMap("Data") + public DescribeInstanceBillResponseBodyData data; + public static DescribeInstanceBillResponseBody build(java.util.Map map) throws Exception { DescribeInstanceBillResponseBody self = new DescribeInstanceBillResponseBody(); return TeaModel.build(map, self); } + public DescribeInstanceBillResponseBody setCode(String code) { + this.code = code; + return this; + } + public String getCode() { + return this.code; + } + public DescribeInstanceBillResponseBody setMessage(String message) { this.message = message; return this; @@ -40,22 +48,6 @@ public String getRequestId() { return this.requestId; } - public DescribeInstanceBillResponseBody setData(DescribeInstanceBillResponseBodyData data) { - this.data = data; - return this; - } - public DescribeInstanceBillResponseBodyData getData() { - return this.data; - } - - public DescribeInstanceBillResponseBody setCode(String code) { - this.code = code; - return this; - } - public String getCode() { - return this.code; - } - public DescribeInstanceBillResponseBody setSuccess(Boolean success) { this.success = success; return this; @@ -64,6 +56,14 @@ public Boolean getSuccess() { return this.success; } + public DescribeInstanceBillResponseBody setData(DescribeInstanceBillResponseBodyData data) { + this.data = data; + return this; + } + public DescribeInstanceBillResponseBodyData getData() { + return this.data; + } + public static class DescribeInstanceBillResponseBodyDataItems extends TeaModel { @NameInMap("BillingDate") public String billingDate; @@ -119,18 +119,18 @@ public static class DescribeInstanceBillResponseBodyDataItems extends TeaModel { @NameInMap("PipCode") public String pipCode; - @NameInMap("PretaxAmount") - public Float pretaxAmount; - @NameInMap("ServicePeriodUnit") public String servicePeriodUnit; - @NameInMap("ProductName") - public String productName; + @NameInMap("PretaxAmount") + public Float pretaxAmount; @NameInMap("CommodityCode") public String commodityCode; + @NameInMap("ProductName") + public String productName; + @NameInMap("NickName") public String nickName; @@ -331,14 +331,6 @@ public String getPipCode() { return this.pipCode; } - public DescribeInstanceBillResponseBodyDataItems setPretaxAmount(Float pretaxAmount) { - this.pretaxAmount = pretaxAmount; - return this; - } - public Float getPretaxAmount() { - return this.pretaxAmount; - } - public DescribeInstanceBillResponseBodyDataItems setServicePeriodUnit(String servicePeriodUnit) { this.servicePeriodUnit = servicePeriodUnit; return this; @@ -347,12 +339,12 @@ public String getServicePeriodUnit() { return this.servicePeriodUnit; } - public DescribeInstanceBillResponseBodyDataItems setProductName(String productName) { - this.productName = productName; + public DescribeInstanceBillResponseBodyDataItems setPretaxAmount(Float pretaxAmount) { + this.pretaxAmount = pretaxAmount; return this; } - public String getProductName() { - return this.productName; + public Float getPretaxAmount() { + return this.pretaxAmount; } public DescribeInstanceBillResponseBodyDataItems setCommodityCode(String commodityCode) { @@ -363,6 +355,14 @@ public String getCommodityCode() { return this.commodityCode; } + public DescribeInstanceBillResponseBodyDataItems setProductName(String productName) { + this.productName = productName; + return this; + } + public String getProductName() { + return this.productName; + } + public DescribeInstanceBillResponseBodyDataItems setNickName(String nickName) { this.nickName = nickName; return this; @@ -502,9 +502,6 @@ public String getBillingType() { } public static class DescribeInstanceBillResponseBodyData extends TeaModel { - @NameInMap("Items") - public java.util.List items; - @NameInMap("NextToken") public String nextToken; @@ -523,19 +520,14 @@ public static class DescribeInstanceBillResponseBodyData extends TeaModel { @NameInMap("AccountName") public String accountName; + @NameInMap("Items") + public java.util.List items; + public static DescribeInstanceBillResponseBodyData build(java.util.Map map) throws Exception { DescribeInstanceBillResponseBodyData self = new DescribeInstanceBillResponseBodyData(); return TeaModel.build(map, self); } - public DescribeInstanceBillResponseBodyData setItems(java.util.List items) { - this.items = items; - return this; - } - public java.util.List getItems() { - return this.items; - } - public DescribeInstanceBillResponseBodyData setNextToken(String nextToken) { this.nextToken = nextToken; return this; @@ -584,6 +576,14 @@ public String getAccountName() { return this.accountName; } + public DescribeInstanceBillResponseBodyData setItems(java.util.List items) { + this.items = items; + return this; + } + public java.util.List getItems() { + return this.items; + } + } } diff --git a/bssopenapi-20171214/src/main/java/com/aliyun/bssopenapi20171214/models/DescribeResourceCoverageDetailRequest.java b/bssopenapi-20171214/src/main/java/com/aliyun/bssopenapi20171214/models/DescribeResourceCoverageDetailRequest.java new file mode 100644 index 0000000000..b1186c0050 --- /dev/null +++ b/bssopenapi-20171214/src/main/java/com/aliyun/bssopenapi20171214/models/DescribeResourceCoverageDetailRequest.java @@ -0,0 +1,89 @@ +// This file is auto-generated, don't edit it. Thanks. +package com.aliyun.bssopenapi20171214.models; + +import com.aliyun.tea.*; + +public class DescribeResourceCoverageDetailRequest extends TeaModel { + @NameInMap("StartPeriod") + public String startPeriod; + + @NameInMap("EndPeriod") + public String endPeriod; + + @NameInMap("PeriodType") + public String periodType; + + @NameInMap("NextToken") + public String nextToken; + + @NameInMap("MaxResults") + public Integer maxResults; + + @NameInMap("BillOwnerId") + public Long billOwnerId; + + @NameInMap("ResourceType") + public String resourceType; + + public static DescribeResourceCoverageDetailRequest build(java.util.Map map) throws Exception { + DescribeResourceCoverageDetailRequest self = new DescribeResourceCoverageDetailRequest(); + return TeaModel.build(map, self); + } + + public DescribeResourceCoverageDetailRequest setStartPeriod(String startPeriod) { + this.startPeriod = startPeriod; + return this; + } + public String getStartPeriod() { + return this.startPeriod; + } + + public DescribeResourceCoverageDetailRequest setEndPeriod(String endPeriod) { + this.endPeriod = endPeriod; + return this; + } + public String getEndPeriod() { + return this.endPeriod; + } + + public DescribeResourceCoverageDetailRequest setPeriodType(String periodType) { + this.periodType = periodType; + return this; + } + public String getPeriodType() { + return this.periodType; + } + + public DescribeResourceCoverageDetailRequest setNextToken(String nextToken) { + this.nextToken = nextToken; + return this; + } + public String getNextToken() { + return this.nextToken; + } + + public DescribeResourceCoverageDetailRequest setMaxResults(Integer maxResults) { + this.maxResults = maxResults; + return this; + } + public Integer getMaxResults() { + return this.maxResults; + } + + public DescribeResourceCoverageDetailRequest setBillOwnerId(Long billOwnerId) { + this.billOwnerId = billOwnerId; + return this; + } + public Long getBillOwnerId() { + return this.billOwnerId; + } + + public DescribeResourceCoverageDetailRequest setResourceType(String resourceType) { + this.resourceType = resourceType; + return this; + } + public String getResourceType() { + return this.resourceType; + } + +} diff --git a/bssopenapi-20171214/src/main/java/com/aliyun/bssopenapi20171214/models/DescribeResourceCoverageDetailResponse.java b/bssopenapi-20171214/src/main/java/com/aliyun/bssopenapi20171214/models/DescribeResourceCoverageDetailResponse.java new file mode 100644 index 0000000000..29ad30e7ad --- /dev/null +++ b/bssopenapi-20171214/src/main/java/com/aliyun/bssopenapi20171214/models/DescribeResourceCoverageDetailResponse.java @@ -0,0 +1,36 @@ +// This file is auto-generated, don't edit it. Thanks. +package com.aliyun.bssopenapi20171214.models; + +import com.aliyun.tea.*; + +public class DescribeResourceCoverageDetailResponse extends TeaModel { + @NameInMap("headers") + @Validation(required = true) + public java.util.Map headers; + + @NameInMap("body") + @Validation(required = true) + public DescribeResourceCoverageDetailResponseBody body; + + public static DescribeResourceCoverageDetailResponse build(java.util.Map map) throws Exception { + DescribeResourceCoverageDetailResponse self = new DescribeResourceCoverageDetailResponse(); + return TeaModel.build(map, self); + } + + public DescribeResourceCoverageDetailResponse setHeaders(java.util.Map headers) { + this.headers = headers; + return this; + } + public java.util.Map getHeaders() { + return this.headers; + } + + public DescribeResourceCoverageDetailResponse setBody(DescribeResourceCoverageDetailResponseBody body) { + this.body = body; + return this; + } + public DescribeResourceCoverageDetailResponseBody getBody() { + return this.body; + } + +} diff --git a/bssopenapi-20171214/src/main/java/com/aliyun/bssopenapi20171214/models/DescribeResourceCoverageDetailResponseBody.java b/bssopenapi-20171214/src/main/java/com/aliyun/bssopenapi20171214/models/DescribeResourceCoverageDetailResponseBody.java new file mode 100644 index 0000000000..ced942203d --- /dev/null +++ b/bssopenapi-20171214/src/main/java/com/aliyun/bssopenapi20171214/models/DescribeResourceCoverageDetailResponseBody.java @@ -0,0 +1,347 @@ +// This file is auto-generated, don't edit it. Thanks. +package com.aliyun.bssopenapi20171214.models; + +import com.aliyun.tea.*; + +public class DescribeResourceCoverageDetailResponseBody extends TeaModel { + @NameInMap("Code") + public String code; + + @NameInMap("Message") + public String message; + + @NameInMap("RequestId") + public String requestId; + + @NameInMap("Success") + public Boolean success; + + @NameInMap("Data") + public DescribeResourceCoverageDetailResponseBodyData data; + + public static DescribeResourceCoverageDetailResponseBody build(java.util.Map map) throws Exception { + DescribeResourceCoverageDetailResponseBody self = new DescribeResourceCoverageDetailResponseBody(); + return TeaModel.build(map, self); + } + + public DescribeResourceCoverageDetailResponseBody setCode(String code) { + this.code = code; + return this; + } + public String getCode() { + return this.code; + } + + public DescribeResourceCoverageDetailResponseBody setMessage(String message) { + this.message = message; + return this; + } + public String getMessage() { + return this.message; + } + + public DescribeResourceCoverageDetailResponseBody setRequestId(String requestId) { + this.requestId = requestId; + return this; + } + public String getRequestId() { + return this.requestId; + } + + public DescribeResourceCoverageDetailResponseBody setSuccess(Boolean success) { + this.success = success; + return this; + } + public Boolean getSuccess() { + return this.success; + } + + public DescribeResourceCoverageDetailResponseBody setData(DescribeResourceCoverageDetailResponseBodyData data) { + this.data = data; + return this; + } + public DescribeResourceCoverageDetailResponseBodyData getData() { + return this.data; + } + + public static class DescribeResourceCoverageDetailResponseBodyDataItems extends TeaModel { + @NameInMap("CommodityCode") + public String commodityCode; + + @NameInMap("ProductName") + public String productName; + + @NameInMap("TotalQuantity") + public Float totalQuantity; + + @NameInMap("RegionNo") + public String regionNo; + + @NameInMap("UserId") + public String userId; + + @NameInMap("CommodityName") + public String commodityName; + + @NameInMap("CapacityUnit") + public String capacityUnit; + + @NameInMap("InstanceId") + public String instanceId; + + @NameInMap("Currency") + public String currency; + + @NameInMap("ZoneName") + public String zoneName; + + @NameInMap("InstanceSpec") + public String instanceSpec; + + @NameInMap("EndTime") + public String endTime; + + @NameInMap("StartTime") + public String startTime; + + @NameInMap("PaymentAmount") + public Float paymentAmount; + + @NameInMap("CoveragePercentage") + public Float coveragePercentage; + + @NameInMap("Region") + public String region; + + @NameInMap("DeductQuantity") + public Float deductQuantity; + + @NameInMap("Zone") + public String zone; + + @NameInMap("UserName") + public String userName; + + @NameInMap("ProductCode") + public String productCode; + + public static DescribeResourceCoverageDetailResponseBodyDataItems build(java.util.Map map) throws Exception { + DescribeResourceCoverageDetailResponseBodyDataItems self = new DescribeResourceCoverageDetailResponseBodyDataItems(); + return TeaModel.build(map, self); + } + + public DescribeResourceCoverageDetailResponseBodyDataItems setCommodityCode(String commodityCode) { + this.commodityCode = commodityCode; + return this; + } + public String getCommodityCode() { + return this.commodityCode; + } + + public DescribeResourceCoverageDetailResponseBodyDataItems setProductName(String productName) { + this.productName = productName; + return this; + } + public String getProductName() { + return this.productName; + } + + public DescribeResourceCoverageDetailResponseBodyDataItems setTotalQuantity(Float totalQuantity) { + this.totalQuantity = totalQuantity; + return this; + } + public Float getTotalQuantity() { + return this.totalQuantity; + } + + public DescribeResourceCoverageDetailResponseBodyDataItems setRegionNo(String regionNo) { + this.regionNo = regionNo; + return this; + } + public String getRegionNo() { + return this.regionNo; + } + + public DescribeResourceCoverageDetailResponseBodyDataItems setUserId(String userId) { + this.userId = userId; + return this; + } + public String getUserId() { + return this.userId; + } + + public DescribeResourceCoverageDetailResponseBodyDataItems setCommodityName(String commodityName) { + this.commodityName = commodityName; + return this; + } + public String getCommodityName() { + return this.commodityName; + } + + public DescribeResourceCoverageDetailResponseBodyDataItems setCapacityUnit(String capacityUnit) { + this.capacityUnit = capacityUnit; + return this; + } + public String getCapacityUnit() { + return this.capacityUnit; + } + + public DescribeResourceCoverageDetailResponseBodyDataItems setInstanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + public String getInstanceId() { + return this.instanceId; + } + + public DescribeResourceCoverageDetailResponseBodyDataItems setCurrency(String currency) { + this.currency = currency; + return this; + } + public String getCurrency() { + return this.currency; + } + + public DescribeResourceCoverageDetailResponseBodyDataItems setZoneName(String zoneName) { + this.zoneName = zoneName; + return this; + } + public String getZoneName() { + return this.zoneName; + } + + public DescribeResourceCoverageDetailResponseBodyDataItems setInstanceSpec(String instanceSpec) { + this.instanceSpec = instanceSpec; + return this; + } + public String getInstanceSpec() { + return this.instanceSpec; + } + + public DescribeResourceCoverageDetailResponseBodyDataItems setEndTime(String endTime) { + this.endTime = endTime; + return this; + } + public String getEndTime() { + return this.endTime; + } + + public DescribeResourceCoverageDetailResponseBodyDataItems setStartTime(String startTime) { + this.startTime = startTime; + return this; + } + public String getStartTime() { + return this.startTime; + } + + public DescribeResourceCoverageDetailResponseBodyDataItems setPaymentAmount(Float paymentAmount) { + this.paymentAmount = paymentAmount; + return this; + } + public Float getPaymentAmount() { + return this.paymentAmount; + } + + public DescribeResourceCoverageDetailResponseBodyDataItems setCoveragePercentage(Float coveragePercentage) { + this.coveragePercentage = coveragePercentage; + return this; + } + public Float getCoveragePercentage() { + return this.coveragePercentage; + } + + public DescribeResourceCoverageDetailResponseBodyDataItems setRegion(String region) { + this.region = region; + return this; + } + public String getRegion() { + return this.region; + } + + public DescribeResourceCoverageDetailResponseBodyDataItems setDeductQuantity(Float deductQuantity) { + this.deductQuantity = deductQuantity; + return this; + } + public Float getDeductQuantity() { + return this.deductQuantity; + } + + public DescribeResourceCoverageDetailResponseBodyDataItems setZone(String zone) { + this.zone = zone; + return this; + } + public String getZone() { + return this.zone; + } + + public DescribeResourceCoverageDetailResponseBodyDataItems setUserName(String userName) { + this.userName = userName; + return this; + } + public String getUserName() { + return this.userName; + } + + public DescribeResourceCoverageDetailResponseBodyDataItems setProductCode(String productCode) { + this.productCode = productCode; + return this; + } + public String getProductCode() { + return this.productCode; + } + + } + + public static class DescribeResourceCoverageDetailResponseBodyData extends TeaModel { + @NameInMap("NextToken") + public String nextToken; + + @NameInMap("TotalCount") + public Integer totalCount; + + @NameInMap("MaxResults") + public Integer maxResults; + + @NameInMap("Items") + public java.util.List items; + + public static DescribeResourceCoverageDetailResponseBodyData build(java.util.Map map) throws Exception { + DescribeResourceCoverageDetailResponseBodyData self = new DescribeResourceCoverageDetailResponseBodyData(); + return TeaModel.build(map, self); + } + + public DescribeResourceCoverageDetailResponseBodyData setNextToken(String nextToken) { + this.nextToken = nextToken; + return this; + } + public String getNextToken() { + return this.nextToken; + } + + public DescribeResourceCoverageDetailResponseBodyData setTotalCount(Integer totalCount) { + this.totalCount = totalCount; + return this; + } + public Integer getTotalCount() { + return this.totalCount; + } + + public DescribeResourceCoverageDetailResponseBodyData setMaxResults(Integer maxResults) { + this.maxResults = maxResults; + return this; + } + public Integer getMaxResults() { + return this.maxResults; + } + + public DescribeResourceCoverageDetailResponseBodyData setItems(java.util.List items) { + this.items = items; + return this; + } + public java.util.List getItems() { + return this.items; + } + + } + +} diff --git a/bssopenapi-20171214/src/main/java/com/aliyun/bssopenapi20171214/models/DescribeResourceCoverageTotalRequest.java b/bssopenapi-20171214/src/main/java/com/aliyun/bssopenapi20171214/models/DescribeResourceCoverageTotalRequest.java new file mode 100644 index 0000000000..b15fbcd467 --- /dev/null +++ b/bssopenapi-20171214/src/main/java/com/aliyun/bssopenapi20171214/models/DescribeResourceCoverageTotalRequest.java @@ -0,0 +1,67 @@ +// This file is auto-generated, don't edit it. Thanks. +package com.aliyun.bssopenapi20171214.models; + +import com.aliyun.tea.*; + +public class DescribeResourceCoverageTotalRequest extends TeaModel { + @NameInMap("StartPeriod") + public String startPeriod; + + @NameInMap("EndPeriod") + public String endPeriod; + + @NameInMap("PeriodType") + public String periodType; + + @NameInMap("BillOwnerId") + public Long billOwnerId; + + @NameInMap("ResourceType") + public String resourceType; + + public static DescribeResourceCoverageTotalRequest build(java.util.Map map) throws Exception { + DescribeResourceCoverageTotalRequest self = new DescribeResourceCoverageTotalRequest(); + return TeaModel.build(map, self); + } + + public DescribeResourceCoverageTotalRequest setStartPeriod(String startPeriod) { + this.startPeriod = startPeriod; + return this; + } + public String getStartPeriod() { + return this.startPeriod; + } + + public DescribeResourceCoverageTotalRequest setEndPeriod(String endPeriod) { + this.endPeriod = endPeriod; + return this; + } + public String getEndPeriod() { + return this.endPeriod; + } + + public DescribeResourceCoverageTotalRequest setPeriodType(String periodType) { + this.periodType = periodType; + return this; + } + public String getPeriodType() { + return this.periodType; + } + + public DescribeResourceCoverageTotalRequest setBillOwnerId(Long billOwnerId) { + this.billOwnerId = billOwnerId; + return this; + } + public Long getBillOwnerId() { + return this.billOwnerId; + } + + public DescribeResourceCoverageTotalRequest setResourceType(String resourceType) { + this.resourceType = resourceType; + return this; + } + public String getResourceType() { + return this.resourceType; + } + +} diff --git a/bssopenapi-20171214/src/main/java/com/aliyun/bssopenapi20171214/models/DescribeResourceCoverageTotalResponse.java b/bssopenapi-20171214/src/main/java/com/aliyun/bssopenapi20171214/models/DescribeResourceCoverageTotalResponse.java new file mode 100644 index 0000000000..2a5beabe4d --- /dev/null +++ b/bssopenapi-20171214/src/main/java/com/aliyun/bssopenapi20171214/models/DescribeResourceCoverageTotalResponse.java @@ -0,0 +1,36 @@ +// This file is auto-generated, don't edit it. Thanks. +package com.aliyun.bssopenapi20171214.models; + +import com.aliyun.tea.*; + +public class DescribeResourceCoverageTotalResponse extends TeaModel { + @NameInMap("headers") + @Validation(required = true) + public java.util.Map headers; + + @NameInMap("body") + @Validation(required = true) + public DescribeResourceCoverageTotalResponseBody body; + + public static DescribeResourceCoverageTotalResponse build(java.util.Map map) throws Exception { + DescribeResourceCoverageTotalResponse self = new DescribeResourceCoverageTotalResponse(); + return TeaModel.build(map, self); + } + + public DescribeResourceCoverageTotalResponse setHeaders(java.util.Map headers) { + this.headers = headers; + return this; + } + public java.util.Map getHeaders() { + return this.headers; + } + + public DescribeResourceCoverageTotalResponse setBody(DescribeResourceCoverageTotalResponseBody body) { + this.body = body; + return this; + } + public DescribeResourceCoverageTotalResponseBody getBody() { + return this.body; + } + +} diff --git a/bssopenapi-20171214/src/main/java/com/aliyun/bssopenapi20171214/models/DescribeResourceCoverageTotalResponseBody.java b/bssopenapi-20171214/src/main/java/com/aliyun/bssopenapi20171214/models/DescribeResourceCoverageTotalResponseBody.java new file mode 100644 index 0000000000..79d186b7f7 --- /dev/null +++ b/bssopenapi-20171214/src/main/java/com/aliyun/bssopenapi20171214/models/DescribeResourceCoverageTotalResponseBody.java @@ -0,0 +1,179 @@ +// This file is auto-generated, don't edit it. Thanks. +package com.aliyun.bssopenapi20171214.models; + +import com.aliyun.tea.*; + +public class DescribeResourceCoverageTotalResponseBody extends TeaModel { + @NameInMap("Code") + public String code; + + @NameInMap("Message") + public String message; + + @NameInMap("RequestId") + public String requestId; + + @NameInMap("Success") + public Boolean success; + + @NameInMap("Data") + public DescribeResourceCoverageTotalResponseBodyData data; + + public static DescribeResourceCoverageTotalResponseBody build(java.util.Map map) throws Exception { + DescribeResourceCoverageTotalResponseBody self = new DescribeResourceCoverageTotalResponseBody(); + return TeaModel.build(map, self); + } + + public DescribeResourceCoverageTotalResponseBody setCode(String code) { + this.code = code; + return this; + } + public String getCode() { + return this.code; + } + + public DescribeResourceCoverageTotalResponseBody setMessage(String message) { + this.message = message; + return this; + } + public String getMessage() { + return this.message; + } + + public DescribeResourceCoverageTotalResponseBody setRequestId(String requestId) { + this.requestId = requestId; + return this; + } + public String getRequestId() { + return this.requestId; + } + + public DescribeResourceCoverageTotalResponseBody setSuccess(Boolean success) { + this.success = success; + return this; + } + public Boolean getSuccess() { + return this.success; + } + + public DescribeResourceCoverageTotalResponseBody setData(DescribeResourceCoverageTotalResponseBodyData data) { + this.data = data; + return this; + } + public DescribeResourceCoverageTotalResponseBodyData getData() { + return this.data; + } + + public static class DescribeResourceCoverageTotalResponseBodyDataPeriodCoverage extends TeaModel { + @NameInMap("CoveragePercentage") + public Float coveragePercentage; + + @NameInMap("Period") + public String period; + + public static DescribeResourceCoverageTotalResponseBodyDataPeriodCoverage build(java.util.Map map) throws Exception { + DescribeResourceCoverageTotalResponseBodyDataPeriodCoverage self = new DescribeResourceCoverageTotalResponseBodyDataPeriodCoverage(); + return TeaModel.build(map, self); + } + + public DescribeResourceCoverageTotalResponseBodyDataPeriodCoverage setCoveragePercentage(Float coveragePercentage) { + this.coveragePercentage = coveragePercentage; + return this; + } + public Float getCoveragePercentage() { + return this.coveragePercentage; + } + + public DescribeResourceCoverageTotalResponseBodyDataPeriodCoverage setPeriod(String period) { + this.period = period; + return this; + } + public String getPeriod() { + return this.period; + } + + } + + public static class DescribeResourceCoverageTotalResponseBodyDataTotalCoverage extends TeaModel { + @NameInMap("CapacityUnit") + public String capacityUnit; + + @NameInMap("DeductQuantity") + public Float deductQuantity; + + @NameInMap("CoveragePercentage") + public Float coveragePercentage; + + @NameInMap("TotalQuantity") + public Float totalQuantity; + + public static DescribeResourceCoverageTotalResponseBodyDataTotalCoverage build(java.util.Map map) throws Exception { + DescribeResourceCoverageTotalResponseBodyDataTotalCoverage self = new DescribeResourceCoverageTotalResponseBodyDataTotalCoverage(); + return TeaModel.build(map, self); + } + + public DescribeResourceCoverageTotalResponseBodyDataTotalCoverage setCapacityUnit(String capacityUnit) { + this.capacityUnit = capacityUnit; + return this; + } + public String getCapacityUnit() { + return this.capacityUnit; + } + + public DescribeResourceCoverageTotalResponseBodyDataTotalCoverage setDeductQuantity(Float deductQuantity) { + this.deductQuantity = deductQuantity; + return this; + } + public Float getDeductQuantity() { + return this.deductQuantity; + } + + public DescribeResourceCoverageTotalResponseBodyDataTotalCoverage setCoveragePercentage(Float coveragePercentage) { + this.coveragePercentage = coveragePercentage; + return this; + } + public Float getCoveragePercentage() { + return this.coveragePercentage; + } + + public DescribeResourceCoverageTotalResponseBodyDataTotalCoverage setTotalQuantity(Float totalQuantity) { + this.totalQuantity = totalQuantity; + return this; + } + public Float getTotalQuantity() { + return this.totalQuantity; + } + + } + + public static class DescribeResourceCoverageTotalResponseBodyData extends TeaModel { + @NameInMap("PeriodCoverage") + public java.util.List periodCoverage; + + @NameInMap("TotalCoverage") + public DescribeResourceCoverageTotalResponseBodyDataTotalCoverage totalCoverage; + + public static DescribeResourceCoverageTotalResponseBodyData build(java.util.Map map) throws Exception { + DescribeResourceCoverageTotalResponseBodyData self = new DescribeResourceCoverageTotalResponseBodyData(); + return TeaModel.build(map, self); + } + + public DescribeResourceCoverageTotalResponseBodyData setPeriodCoverage(java.util.List periodCoverage) { + this.periodCoverage = periodCoverage; + return this; + } + public java.util.List getPeriodCoverage() { + return this.periodCoverage; + } + + public DescribeResourceCoverageTotalResponseBodyData setTotalCoverage(DescribeResourceCoverageTotalResponseBodyDataTotalCoverage totalCoverage) { + this.totalCoverage = totalCoverage; + return this; + } + public DescribeResourceCoverageTotalResponseBodyDataTotalCoverage getTotalCoverage() { + return this.totalCoverage; + } + + } + +} diff --git a/bssopenapi-20171214/src/main/java/com/aliyun/bssopenapi20171214/models/DescribeResourceUsageDetailRequest.java b/bssopenapi-20171214/src/main/java/com/aliyun/bssopenapi20171214/models/DescribeResourceUsageDetailRequest.java new file mode 100644 index 0000000000..960829ee16 --- /dev/null +++ b/bssopenapi-20171214/src/main/java/com/aliyun/bssopenapi20171214/models/DescribeResourceUsageDetailRequest.java @@ -0,0 +1,89 @@ +// This file is auto-generated, don't edit it. Thanks. +package com.aliyun.bssopenapi20171214.models; + +import com.aliyun.tea.*; + +public class DescribeResourceUsageDetailRequest extends TeaModel { + @NameInMap("StartPeriod") + public String startPeriod; + + @NameInMap("EndPeriod") + public String endPeriod; + + @NameInMap("PeriodType") + public String periodType; + + @NameInMap("NextToken") + public String nextToken; + + @NameInMap("MaxResults") + public Integer maxResults; + + @NameInMap("BillOwnerId") + public Long billOwnerId; + + @NameInMap("ResourceType") + public String resourceType; + + public static DescribeResourceUsageDetailRequest build(java.util.Map map) throws Exception { + DescribeResourceUsageDetailRequest self = new DescribeResourceUsageDetailRequest(); + return TeaModel.build(map, self); + } + + public DescribeResourceUsageDetailRequest setStartPeriod(String startPeriod) { + this.startPeriod = startPeriod; + return this; + } + public String getStartPeriod() { + return this.startPeriod; + } + + public DescribeResourceUsageDetailRequest setEndPeriod(String endPeriod) { + this.endPeriod = endPeriod; + return this; + } + public String getEndPeriod() { + return this.endPeriod; + } + + public DescribeResourceUsageDetailRequest setPeriodType(String periodType) { + this.periodType = periodType; + return this; + } + public String getPeriodType() { + return this.periodType; + } + + public DescribeResourceUsageDetailRequest setNextToken(String nextToken) { + this.nextToken = nextToken; + return this; + } + public String getNextToken() { + return this.nextToken; + } + + public DescribeResourceUsageDetailRequest setMaxResults(Integer maxResults) { + this.maxResults = maxResults; + return this; + } + public Integer getMaxResults() { + return this.maxResults; + } + + public DescribeResourceUsageDetailRequest setBillOwnerId(Long billOwnerId) { + this.billOwnerId = billOwnerId; + return this; + } + public Long getBillOwnerId() { + return this.billOwnerId; + } + + public DescribeResourceUsageDetailRequest setResourceType(String resourceType) { + this.resourceType = resourceType; + return this; + } + public String getResourceType() { + return this.resourceType; + } + +} diff --git a/bssopenapi-20171214/src/main/java/com/aliyun/bssopenapi20171214/models/DescribeResourceUsageDetailResponse.java b/bssopenapi-20171214/src/main/java/com/aliyun/bssopenapi20171214/models/DescribeResourceUsageDetailResponse.java new file mode 100644 index 0000000000..c980614839 --- /dev/null +++ b/bssopenapi-20171214/src/main/java/com/aliyun/bssopenapi20171214/models/DescribeResourceUsageDetailResponse.java @@ -0,0 +1,36 @@ +// This file is auto-generated, don't edit it. Thanks. +package com.aliyun.bssopenapi20171214.models; + +import com.aliyun.tea.*; + +public class DescribeResourceUsageDetailResponse extends TeaModel { + @NameInMap("headers") + @Validation(required = true) + public java.util.Map headers; + + @NameInMap("body") + @Validation(required = true) + public DescribeResourceUsageDetailResponseBody body; + + public static DescribeResourceUsageDetailResponse build(java.util.Map map) throws Exception { + DescribeResourceUsageDetailResponse self = new DescribeResourceUsageDetailResponse(); + return TeaModel.build(map, self); + } + + public DescribeResourceUsageDetailResponse setHeaders(java.util.Map headers) { + this.headers = headers; + return this; + } + public java.util.Map getHeaders() { + return this.headers; + } + + public DescribeResourceUsageDetailResponse setBody(DescribeResourceUsageDetailResponseBody body) { + this.body = body; + return this; + } + public DescribeResourceUsageDetailResponseBody getBody() { + return this.body; + } + +} diff --git a/bssopenapi-20171214/src/main/java/com/aliyun/bssopenapi20171214/models/DescribeResourceUsageDetailResponseBody.java b/bssopenapi-20171214/src/main/java/com/aliyun/bssopenapi20171214/models/DescribeResourceUsageDetailResponseBody.java new file mode 100644 index 0000000000..7344516206 --- /dev/null +++ b/bssopenapi-20171214/src/main/java/com/aliyun/bssopenapi20171214/models/DescribeResourceUsageDetailResponseBody.java @@ -0,0 +1,380 @@ +// This file is auto-generated, don't edit it. Thanks. +package com.aliyun.bssopenapi20171214.models; + +import com.aliyun.tea.*; + +public class DescribeResourceUsageDetailResponseBody extends TeaModel { + @NameInMap("Code") + public String code; + + @NameInMap("Message") + public String message; + + @NameInMap("RequestId") + public String requestId; + + @NameInMap("Success") + public Boolean success; + + @NameInMap("Data") + public DescribeResourceUsageDetailResponseBodyData data; + + public static DescribeResourceUsageDetailResponseBody build(java.util.Map map) throws Exception { + DescribeResourceUsageDetailResponseBody self = new DescribeResourceUsageDetailResponseBody(); + return TeaModel.build(map, self); + } + + public DescribeResourceUsageDetailResponseBody setCode(String code) { + this.code = code; + return this; + } + public String getCode() { + return this.code; + } + + public DescribeResourceUsageDetailResponseBody setMessage(String message) { + this.message = message; + return this; + } + public String getMessage() { + return this.message; + } + + public DescribeResourceUsageDetailResponseBody setRequestId(String requestId) { + this.requestId = requestId; + return this; + } + public String getRequestId() { + return this.requestId; + } + + public DescribeResourceUsageDetailResponseBody setSuccess(Boolean success) { + this.success = success; + return this; + } + public Boolean getSuccess() { + return this.success; + } + + public DescribeResourceUsageDetailResponseBody setData(DescribeResourceUsageDetailResponseBodyData data) { + this.data = data; + return this; + } + public DescribeResourceUsageDetailResponseBodyData getData() { + return this.data; + } + + public static class DescribeResourceUsageDetailResponseBodyDataItems extends TeaModel { + @NameInMap("Status") + public String status; + + @NameInMap("UsagePercentage") + public Float usagePercentage; + + @NameInMap("ResourceInstanceId") + public String resourceInstanceId; + + @NameInMap("TotalQuantity") + public Float totalQuantity; + + @NameInMap("ReservationCost") + public String reservationCost; + + @NameInMap("RegionNo") + public String regionNo; + + @NameInMap("UserId") + public String userId; + + @NameInMap("StatusName") + public String statusName; + + @NameInMap("CapacityUnit") + public String capacityUnit; + + @NameInMap("PotentialSavedCost") + public String potentialSavedCost; + + @NameInMap("Currency") + public String currency; + + @NameInMap("ZoneName") + public String zoneName; + + @NameInMap("InstanceSpec") + public String instanceSpec; + + @NameInMap("EndTime") + public String endTime; + + @NameInMap("PostpaidCost") + public String postpaidCost; + + @NameInMap("ImageType") + public String imageType; + + @NameInMap("StartTime") + public String startTime; + + @NameInMap("Region") + public String region; + + @NameInMap("DeductQuantity") + public Float deductQuantity; + + @NameInMap("SavedCost") + public String savedCost; + + @NameInMap("Zone") + public String zone; + + @NameInMap("UserName") + public String userName; + + @NameInMap("Quantity") + public Long quantity; + + public static DescribeResourceUsageDetailResponseBodyDataItems build(java.util.Map map) throws Exception { + DescribeResourceUsageDetailResponseBodyDataItems self = new DescribeResourceUsageDetailResponseBodyDataItems(); + return TeaModel.build(map, self); + } + + public DescribeResourceUsageDetailResponseBodyDataItems setStatus(String status) { + this.status = status; + return this; + } + public String getStatus() { + return this.status; + } + + public DescribeResourceUsageDetailResponseBodyDataItems setUsagePercentage(Float usagePercentage) { + this.usagePercentage = usagePercentage; + return this; + } + public Float getUsagePercentage() { + return this.usagePercentage; + } + + public DescribeResourceUsageDetailResponseBodyDataItems setResourceInstanceId(String resourceInstanceId) { + this.resourceInstanceId = resourceInstanceId; + return this; + } + public String getResourceInstanceId() { + return this.resourceInstanceId; + } + + public DescribeResourceUsageDetailResponseBodyDataItems setTotalQuantity(Float totalQuantity) { + this.totalQuantity = totalQuantity; + return this; + } + public Float getTotalQuantity() { + return this.totalQuantity; + } + + public DescribeResourceUsageDetailResponseBodyDataItems setReservationCost(String reservationCost) { + this.reservationCost = reservationCost; + return this; + } + public String getReservationCost() { + return this.reservationCost; + } + + public DescribeResourceUsageDetailResponseBodyDataItems setRegionNo(String regionNo) { + this.regionNo = regionNo; + return this; + } + public String getRegionNo() { + return this.regionNo; + } + + public DescribeResourceUsageDetailResponseBodyDataItems setUserId(String userId) { + this.userId = userId; + return this; + } + public String getUserId() { + return this.userId; + } + + public DescribeResourceUsageDetailResponseBodyDataItems setStatusName(String statusName) { + this.statusName = statusName; + return this; + } + public String getStatusName() { + return this.statusName; + } + + public DescribeResourceUsageDetailResponseBodyDataItems setCapacityUnit(String capacityUnit) { + this.capacityUnit = capacityUnit; + return this; + } + public String getCapacityUnit() { + return this.capacityUnit; + } + + public DescribeResourceUsageDetailResponseBodyDataItems setPotentialSavedCost(String potentialSavedCost) { + this.potentialSavedCost = potentialSavedCost; + return this; + } + public String getPotentialSavedCost() { + return this.potentialSavedCost; + } + + public DescribeResourceUsageDetailResponseBodyDataItems setCurrency(String currency) { + this.currency = currency; + return this; + } + public String getCurrency() { + return this.currency; + } + + public DescribeResourceUsageDetailResponseBodyDataItems setZoneName(String zoneName) { + this.zoneName = zoneName; + return this; + } + public String getZoneName() { + return this.zoneName; + } + + public DescribeResourceUsageDetailResponseBodyDataItems setInstanceSpec(String instanceSpec) { + this.instanceSpec = instanceSpec; + return this; + } + public String getInstanceSpec() { + return this.instanceSpec; + } + + public DescribeResourceUsageDetailResponseBodyDataItems setEndTime(String endTime) { + this.endTime = endTime; + return this; + } + public String getEndTime() { + return this.endTime; + } + + public DescribeResourceUsageDetailResponseBodyDataItems setPostpaidCost(String postpaidCost) { + this.postpaidCost = postpaidCost; + return this; + } + public String getPostpaidCost() { + return this.postpaidCost; + } + + public DescribeResourceUsageDetailResponseBodyDataItems setImageType(String imageType) { + this.imageType = imageType; + return this; + } + public String getImageType() { + return this.imageType; + } + + public DescribeResourceUsageDetailResponseBodyDataItems setStartTime(String startTime) { + this.startTime = startTime; + return this; + } + public String getStartTime() { + return this.startTime; + } + + public DescribeResourceUsageDetailResponseBodyDataItems setRegion(String region) { + this.region = region; + return this; + } + public String getRegion() { + return this.region; + } + + public DescribeResourceUsageDetailResponseBodyDataItems setDeductQuantity(Float deductQuantity) { + this.deductQuantity = deductQuantity; + return this; + } + public Float getDeductQuantity() { + return this.deductQuantity; + } + + public DescribeResourceUsageDetailResponseBodyDataItems setSavedCost(String savedCost) { + this.savedCost = savedCost; + return this; + } + public String getSavedCost() { + return this.savedCost; + } + + public DescribeResourceUsageDetailResponseBodyDataItems setZone(String zone) { + this.zone = zone; + return this; + } + public String getZone() { + return this.zone; + } + + public DescribeResourceUsageDetailResponseBodyDataItems setUserName(String userName) { + this.userName = userName; + return this; + } + public String getUserName() { + return this.userName; + } + + public DescribeResourceUsageDetailResponseBodyDataItems setQuantity(Long quantity) { + this.quantity = quantity; + return this; + } + public Long getQuantity() { + return this.quantity; + } + + } + + public static class DescribeResourceUsageDetailResponseBodyData extends TeaModel { + @NameInMap("NextToken") + public String nextToken; + + @NameInMap("TotalCount") + public Integer totalCount; + + @NameInMap("MaxResults") + public Integer maxResults; + + @NameInMap("Items") + public java.util.List items; + + public static DescribeResourceUsageDetailResponseBodyData build(java.util.Map map) throws Exception { + DescribeResourceUsageDetailResponseBodyData self = new DescribeResourceUsageDetailResponseBodyData(); + return TeaModel.build(map, self); + } + + public DescribeResourceUsageDetailResponseBodyData setNextToken(String nextToken) { + this.nextToken = nextToken; + return this; + } + public String getNextToken() { + return this.nextToken; + } + + public DescribeResourceUsageDetailResponseBodyData setTotalCount(Integer totalCount) { + this.totalCount = totalCount; + return this; + } + public Integer getTotalCount() { + return this.totalCount; + } + + public DescribeResourceUsageDetailResponseBodyData setMaxResults(Integer maxResults) { + this.maxResults = maxResults; + return this; + } + public Integer getMaxResults() { + return this.maxResults; + } + + public DescribeResourceUsageDetailResponseBodyData setItems(java.util.List items) { + this.items = items; + return this; + } + public java.util.List getItems() { + return this.items; + } + + } + +} diff --git a/bssopenapi-20171214/src/main/java/com/aliyun/bssopenapi20171214/models/DescribeResourceUsageTotalRequest.java b/bssopenapi-20171214/src/main/java/com/aliyun/bssopenapi20171214/models/DescribeResourceUsageTotalRequest.java new file mode 100644 index 0000000000..9b36d8762f --- /dev/null +++ b/bssopenapi-20171214/src/main/java/com/aliyun/bssopenapi20171214/models/DescribeResourceUsageTotalRequest.java @@ -0,0 +1,67 @@ +// This file is auto-generated, don't edit it. Thanks. +package com.aliyun.bssopenapi20171214.models; + +import com.aliyun.tea.*; + +public class DescribeResourceUsageTotalRequest extends TeaModel { + @NameInMap("StartPeriod") + public String startPeriod; + + @NameInMap("EndPeriod") + public String endPeriod; + + @NameInMap("PeriodType") + public String periodType; + + @NameInMap("BillOwnerId") + public Long billOwnerId; + + @NameInMap("ResourceType") + public String resourceType; + + public static DescribeResourceUsageTotalRequest build(java.util.Map map) throws Exception { + DescribeResourceUsageTotalRequest self = new DescribeResourceUsageTotalRequest(); + return TeaModel.build(map, self); + } + + public DescribeResourceUsageTotalRequest setStartPeriod(String startPeriod) { + this.startPeriod = startPeriod; + return this; + } + public String getStartPeriod() { + return this.startPeriod; + } + + public DescribeResourceUsageTotalRequest setEndPeriod(String endPeriod) { + this.endPeriod = endPeriod; + return this; + } + public String getEndPeriod() { + return this.endPeriod; + } + + public DescribeResourceUsageTotalRequest setPeriodType(String periodType) { + this.periodType = periodType; + return this; + } + public String getPeriodType() { + return this.periodType; + } + + public DescribeResourceUsageTotalRequest setBillOwnerId(Long billOwnerId) { + this.billOwnerId = billOwnerId; + return this; + } + public Long getBillOwnerId() { + return this.billOwnerId; + } + + public DescribeResourceUsageTotalRequest setResourceType(String resourceType) { + this.resourceType = resourceType; + return this; + } + public String getResourceType() { + return this.resourceType; + } + +} diff --git a/bssopenapi-20171214/src/main/java/com/aliyun/bssopenapi20171214/models/DescribeResourceUsageTotalResponse.java b/bssopenapi-20171214/src/main/java/com/aliyun/bssopenapi20171214/models/DescribeResourceUsageTotalResponse.java new file mode 100644 index 0000000000..e9c8c5b322 --- /dev/null +++ b/bssopenapi-20171214/src/main/java/com/aliyun/bssopenapi20171214/models/DescribeResourceUsageTotalResponse.java @@ -0,0 +1,36 @@ +// This file is auto-generated, don't edit it. Thanks. +package com.aliyun.bssopenapi20171214.models; + +import com.aliyun.tea.*; + +public class DescribeResourceUsageTotalResponse extends TeaModel { + @NameInMap("headers") + @Validation(required = true) + public java.util.Map headers; + + @NameInMap("body") + @Validation(required = true) + public DescribeResourceUsageTotalResponseBody body; + + public static DescribeResourceUsageTotalResponse build(java.util.Map map) throws Exception { + DescribeResourceUsageTotalResponse self = new DescribeResourceUsageTotalResponse(); + return TeaModel.build(map, self); + } + + public DescribeResourceUsageTotalResponse setHeaders(java.util.Map headers) { + this.headers = headers; + return this; + } + public java.util.Map getHeaders() { + return this.headers; + } + + public DescribeResourceUsageTotalResponse setBody(DescribeResourceUsageTotalResponseBody body) { + this.body = body; + return this; + } + public DescribeResourceUsageTotalResponseBody getBody() { + return this.body; + } + +} diff --git a/bssopenapi-20171214/src/main/java/com/aliyun/bssopenapi20171214/models/DescribeResourceUsageTotalResponseBody.java b/bssopenapi-20171214/src/main/java/com/aliyun/bssopenapi20171214/models/DescribeResourceUsageTotalResponseBody.java new file mode 100644 index 0000000000..12dccd27cf --- /dev/null +++ b/bssopenapi-20171214/src/main/java/com/aliyun/bssopenapi20171214/models/DescribeResourceUsageTotalResponseBody.java @@ -0,0 +1,190 @@ +// This file is auto-generated, don't edit it. Thanks. +package com.aliyun.bssopenapi20171214.models; + +import com.aliyun.tea.*; + +public class DescribeResourceUsageTotalResponseBody extends TeaModel { + @NameInMap("Code") + public String code; + + @NameInMap("Message") + public String message; + + @NameInMap("RequestId") + public String requestId; + + @NameInMap("Success") + public Boolean success; + + @NameInMap("Data") + public DescribeResourceUsageTotalResponseBodyData data; + + public static DescribeResourceUsageTotalResponseBody build(java.util.Map map) throws Exception { + DescribeResourceUsageTotalResponseBody self = new DescribeResourceUsageTotalResponseBody(); + return TeaModel.build(map, self); + } + + public DescribeResourceUsageTotalResponseBody setCode(String code) { + this.code = code; + return this; + } + public String getCode() { + return this.code; + } + + public DescribeResourceUsageTotalResponseBody setMessage(String message) { + this.message = message; + return this; + } + public String getMessage() { + return this.message; + } + + public DescribeResourceUsageTotalResponseBody setRequestId(String requestId) { + this.requestId = requestId; + return this; + } + public String getRequestId() { + return this.requestId; + } + + public DescribeResourceUsageTotalResponseBody setSuccess(Boolean success) { + this.success = success; + return this; + } + public Boolean getSuccess() { + return this.success; + } + + public DescribeResourceUsageTotalResponseBody setData(DescribeResourceUsageTotalResponseBodyData data) { + this.data = data; + return this; + } + public DescribeResourceUsageTotalResponseBodyData getData() { + return this.data; + } + + public static class DescribeResourceUsageTotalResponseBodyDataPeriodCoverage extends TeaModel { + @NameInMap("UsagePercentage") + public Float usagePercentage; + + @NameInMap("Period") + public String period; + + public static DescribeResourceUsageTotalResponseBodyDataPeriodCoverage build(java.util.Map map) throws Exception { + DescribeResourceUsageTotalResponseBodyDataPeriodCoverage self = new DescribeResourceUsageTotalResponseBodyDataPeriodCoverage(); + return TeaModel.build(map, self); + } + + public DescribeResourceUsageTotalResponseBodyDataPeriodCoverage setUsagePercentage(Float usagePercentage) { + this.usagePercentage = usagePercentage; + return this; + } + public Float getUsagePercentage() { + return this.usagePercentage; + } + + public DescribeResourceUsageTotalResponseBodyDataPeriodCoverage setPeriod(String period) { + this.period = period; + return this; + } + public String getPeriod() { + return this.period; + } + + } + + public static class DescribeResourceUsageTotalResponseBodyDataTotalUsage extends TeaModel { + @NameInMap("PostpaidCost") + public Float postpaidCost; + + @NameInMap("SavedCost") + public Float savedCost; + + @NameInMap("UsagePercentage") + public Float usagePercentage; + + @NameInMap("PotentialSavedCost") + public Float potentialSavedCost; + + @NameInMap("ReservationCost") + public Float reservationCost; + + public static DescribeResourceUsageTotalResponseBodyDataTotalUsage build(java.util.Map map) throws Exception { + DescribeResourceUsageTotalResponseBodyDataTotalUsage self = new DescribeResourceUsageTotalResponseBodyDataTotalUsage(); + return TeaModel.build(map, self); + } + + public DescribeResourceUsageTotalResponseBodyDataTotalUsage setPostpaidCost(Float postpaidCost) { + this.postpaidCost = postpaidCost; + return this; + } + public Float getPostpaidCost() { + return this.postpaidCost; + } + + public DescribeResourceUsageTotalResponseBodyDataTotalUsage setSavedCost(Float savedCost) { + this.savedCost = savedCost; + return this; + } + public Float getSavedCost() { + return this.savedCost; + } + + public DescribeResourceUsageTotalResponseBodyDataTotalUsage setUsagePercentage(Float usagePercentage) { + this.usagePercentage = usagePercentage; + return this; + } + public Float getUsagePercentage() { + return this.usagePercentage; + } + + public DescribeResourceUsageTotalResponseBodyDataTotalUsage setPotentialSavedCost(Float potentialSavedCost) { + this.potentialSavedCost = potentialSavedCost; + return this; + } + public Float getPotentialSavedCost() { + return this.potentialSavedCost; + } + + public DescribeResourceUsageTotalResponseBodyDataTotalUsage setReservationCost(Float reservationCost) { + this.reservationCost = reservationCost; + return this; + } + public Float getReservationCost() { + return this.reservationCost; + } + + } + + public static class DescribeResourceUsageTotalResponseBodyData extends TeaModel { + @NameInMap("PeriodCoverage") + public java.util.List periodCoverage; + + @NameInMap("TotalUsage") + public DescribeResourceUsageTotalResponseBodyDataTotalUsage totalUsage; + + public static DescribeResourceUsageTotalResponseBodyData build(java.util.Map map) throws Exception { + DescribeResourceUsageTotalResponseBodyData self = new DescribeResourceUsageTotalResponseBodyData(); + return TeaModel.build(map, self); + } + + public DescribeResourceUsageTotalResponseBodyData setPeriodCoverage(java.util.List periodCoverage) { + this.periodCoverage = periodCoverage; + return this; + } + public java.util.List getPeriodCoverage() { + return this.periodCoverage; + } + + public DescribeResourceUsageTotalResponseBodyData setTotalUsage(DescribeResourceUsageTotalResponseBodyDataTotalUsage totalUsage) { + this.totalUsage = totalUsage; + return this; + } + public DescribeResourceUsageTotalResponseBodyDataTotalUsage getTotalUsage() { + return this.totalUsage; + } + + } + +} diff --git a/bssopenapi-20171214/src/main/java/com/aliyun/bssopenapi20171214/models/DescribeSplitItemBillResponseBody.java b/bssopenapi-20171214/src/main/java/com/aliyun/bssopenapi20171214/models/DescribeSplitItemBillResponseBody.java index 0feb41162c..90946e5371 100644 --- a/bssopenapi-20171214/src/main/java/com/aliyun/bssopenapi20171214/models/DescribeSplitItemBillResponseBody.java +++ b/bssopenapi-20171214/src/main/java/com/aliyun/bssopenapi20171214/models/DescribeSplitItemBillResponseBody.java @@ -4,26 +4,34 @@ import com.aliyun.tea.*; public class DescribeSplitItemBillResponseBody extends TeaModel { + @NameInMap("Code") + public String code; + @NameInMap("Message") public String message; @NameInMap("RequestId") public String requestId; - @NameInMap("Data") - public DescribeSplitItemBillResponseBodyData data; - - @NameInMap("Code") - public String code; - @NameInMap("Success") public Boolean success; + @NameInMap("Data") + public DescribeSplitItemBillResponseBodyData data; + public static DescribeSplitItemBillResponseBody build(java.util.Map map) throws Exception { DescribeSplitItemBillResponseBody self = new DescribeSplitItemBillResponseBody(); return TeaModel.build(map, self); } + public DescribeSplitItemBillResponseBody setCode(String code) { + this.code = code; + return this; + } + public String getCode() { + return this.code; + } + public DescribeSplitItemBillResponseBody setMessage(String message) { this.message = message; return this; @@ -40,22 +48,6 @@ public String getRequestId() { return this.requestId; } - public DescribeSplitItemBillResponseBody setData(DescribeSplitItemBillResponseBodyData data) { - this.data = data; - return this; - } - public DescribeSplitItemBillResponseBodyData getData() { - return this.data; - } - - public DescribeSplitItemBillResponseBody setCode(String code) { - this.code = code; - return this; - } - public String getCode() { - return this.code; - } - public DescribeSplitItemBillResponseBody setSuccess(Boolean success) { this.success = success; return this; @@ -64,6 +56,14 @@ public Boolean getSuccess() { return this.success; } + public DescribeSplitItemBillResponseBody setData(DescribeSplitItemBillResponseBodyData data) { + this.data = data; + return this; + } + public DescribeSplitItemBillResponseBodyData getData() { + return this.data; + } + public static class DescribeSplitItemBillResponseBodyDataItems extends TeaModel { @NameInMap("BillingDate") public String billingDate; @@ -101,12 +101,12 @@ public static class DescribeSplitItemBillResponseBodyDataItems extends TeaModel @NameInMap("InstanceSpec") public String instanceSpec; - @NameInMap("BillingItem") - public String billingItem; - @NameInMap("DeductedByCoupons") public Float deductedByCoupons; + @NameInMap("BillingItem") + public String billingItem; + @NameInMap("Region") public String region; @@ -125,18 +125,18 @@ public static class DescribeSplitItemBillResponseBodyDataItems extends TeaModel @NameInMap("PipCode") public String pipCode; - @NameInMap("PretaxAmount") - public Float pretaxAmount; - @NameInMap("ServicePeriodUnit") public String servicePeriodUnit; - @NameInMap("ProductName") - public String productName; + @NameInMap("PretaxAmount") + public Float pretaxAmount; @NameInMap("CommodityCode") public String commodityCode; + @NameInMap("ProductName") + public String productName; + @NameInMap("SplitProductDetail") public String splitProductDetail; @@ -304,14 +304,6 @@ public String getInstanceSpec() { return this.instanceSpec; } - public DescribeSplitItemBillResponseBodyDataItems setBillingItem(String billingItem) { - this.billingItem = billingItem; - return this; - } - public String getBillingItem() { - return this.billingItem; - } - public DescribeSplitItemBillResponseBodyDataItems setDeductedByCoupons(Float deductedByCoupons) { this.deductedByCoupons = deductedByCoupons; return this; @@ -320,6 +312,14 @@ public Float getDeductedByCoupons() { return this.deductedByCoupons; } + public DescribeSplitItemBillResponseBodyDataItems setBillingItem(String billingItem) { + this.billingItem = billingItem; + return this; + } + public String getBillingItem() { + return this.billingItem; + } + public DescribeSplitItemBillResponseBodyDataItems setRegion(String region) { this.region = region; return this; @@ -368,14 +368,6 @@ public String getPipCode() { return this.pipCode; } - public DescribeSplitItemBillResponseBodyDataItems setPretaxAmount(Float pretaxAmount) { - this.pretaxAmount = pretaxAmount; - return this; - } - public Float getPretaxAmount() { - return this.pretaxAmount; - } - public DescribeSplitItemBillResponseBodyDataItems setServicePeriodUnit(String servicePeriodUnit) { this.servicePeriodUnit = servicePeriodUnit; return this; @@ -384,12 +376,12 @@ public String getServicePeriodUnit() { return this.servicePeriodUnit; } - public DescribeSplitItemBillResponseBodyDataItems setProductName(String productName) { - this.productName = productName; + public DescribeSplitItemBillResponseBodyDataItems setPretaxAmount(Float pretaxAmount) { + this.pretaxAmount = pretaxAmount; return this; } - public String getProductName() { - return this.productName; + public Float getPretaxAmount() { + return this.pretaxAmount; } public DescribeSplitItemBillResponseBodyDataItems setCommodityCode(String commodityCode) { @@ -400,6 +392,14 @@ public String getCommodityCode() { return this.commodityCode; } + public DescribeSplitItemBillResponseBodyDataItems setProductName(String productName) { + this.productName = productName; + return this; + } + public String getProductName() { + return this.productName; + } + public DescribeSplitItemBillResponseBodyDataItems setSplitProductDetail(String splitProductDetail) { this.splitProductDetail = splitProductDetail; return this; @@ -579,9 +579,6 @@ public String getBillingType() { } public static class DescribeSplitItemBillResponseBodyData extends TeaModel { - @NameInMap("Items") - public java.util.List items; - @NameInMap("NextToken") public String nextToken; @@ -600,19 +597,14 @@ public static class DescribeSplitItemBillResponseBodyData extends TeaModel { @NameInMap("AccountName") public String accountName; + @NameInMap("Items") + public java.util.List items; + public static DescribeSplitItemBillResponseBodyData build(java.util.Map map) throws Exception { DescribeSplitItemBillResponseBodyData self = new DescribeSplitItemBillResponseBodyData(); return TeaModel.build(map, self); } - public DescribeSplitItemBillResponseBodyData setItems(java.util.List items) { - this.items = items; - return this; - } - public java.util.List getItems() { - return this.items; - } - public DescribeSplitItemBillResponseBodyData setNextToken(String nextToken) { this.nextToken = nextToken; return this; @@ -661,6 +653,14 @@ public String getAccountName() { return this.accountName; } + public DescribeSplitItemBillResponseBodyData setItems(java.util.List items) { + this.items = items; + return this; + } + public java.util.List getItems() { + return this.items; + } + } } diff --git a/bssopenapi-20171214/src/main/java/com/aliyun/bssopenapi20171214/models/ModifyAccountRelationRequest.java b/bssopenapi-20171214/src/main/java/com/aliyun/bssopenapi20171214/models/ModifyAccountRelationRequest.java new file mode 100644 index 0000000000..91149547b2 --- /dev/null +++ b/bssopenapi-20171214/src/main/java/com/aliyun/bssopenapi20171214/models/ModifyAccountRelationRequest.java @@ -0,0 +1,100 @@ +// This file is auto-generated, don't edit it. Thanks. +package com.aliyun.bssopenapi20171214.models; + +import com.aliyun.tea.*; + +public class ModifyAccountRelationRequest extends TeaModel { + @NameInMap("RelationType") + public String relationType; + + @NameInMap("RelationOperation") + public String relationOperation; + + @NameInMap("ParentUserId") + public Long parentUserId; + + @NameInMap("ChildNick") + public String childNick; + + @NameInMap("ChildUserId") + public Long childUserId; + + @NameInMap("RequestId") + public String requestId; + + @NameInMap("RoleCodes") + public java.util.List roleCodes; + + @NameInMap("PermissionCodes") + public java.util.List permissionCodes; + + public static ModifyAccountRelationRequest build(java.util.Map map) throws Exception { + ModifyAccountRelationRequest self = new ModifyAccountRelationRequest(); + return TeaModel.build(map, self); + } + + public ModifyAccountRelationRequest setRelationType(String relationType) { + this.relationType = relationType; + return this; + } + public String getRelationType() { + return this.relationType; + } + + public ModifyAccountRelationRequest setRelationOperation(String relationOperation) { + this.relationOperation = relationOperation; + return this; + } + public String getRelationOperation() { + return this.relationOperation; + } + + public ModifyAccountRelationRequest setParentUserId(Long parentUserId) { + this.parentUserId = parentUserId; + return this; + } + public Long getParentUserId() { + return this.parentUserId; + } + + public ModifyAccountRelationRequest setChildNick(String childNick) { + this.childNick = childNick; + return this; + } + public String getChildNick() { + return this.childNick; + } + + public ModifyAccountRelationRequest setChildUserId(Long childUserId) { + this.childUserId = childUserId; + return this; + } + public Long getChildUserId() { + return this.childUserId; + } + + public ModifyAccountRelationRequest setRequestId(String requestId) { + this.requestId = requestId; + return this; + } + public String getRequestId() { + return this.requestId; + } + + public ModifyAccountRelationRequest setRoleCodes(java.util.List roleCodes) { + this.roleCodes = roleCodes; + return this; + } + public java.util.List getRoleCodes() { + return this.roleCodes; + } + + public ModifyAccountRelationRequest setPermissionCodes(java.util.List permissionCodes) { + this.permissionCodes = permissionCodes; + return this; + } + public java.util.List getPermissionCodes() { + return this.permissionCodes; + } + +} diff --git a/bssopenapi-20171214/src/main/java/com/aliyun/bssopenapi20171214/models/ModifyAccountRelationResponse.java b/bssopenapi-20171214/src/main/java/com/aliyun/bssopenapi20171214/models/ModifyAccountRelationResponse.java new file mode 100644 index 0000000000..7120c01a7a --- /dev/null +++ b/bssopenapi-20171214/src/main/java/com/aliyun/bssopenapi20171214/models/ModifyAccountRelationResponse.java @@ -0,0 +1,36 @@ +// This file is auto-generated, don't edit it. Thanks. +package com.aliyun.bssopenapi20171214.models; + +import com.aliyun.tea.*; + +public class ModifyAccountRelationResponse extends TeaModel { + @NameInMap("headers") + @Validation(required = true) + public java.util.Map headers; + + @NameInMap("body") + @Validation(required = true) + public ModifyAccountRelationResponseBody body; + + public static ModifyAccountRelationResponse build(java.util.Map map) throws Exception { + ModifyAccountRelationResponse self = new ModifyAccountRelationResponse(); + return TeaModel.build(map, self); + } + + public ModifyAccountRelationResponse setHeaders(java.util.Map headers) { + this.headers = headers; + return this; + } + public java.util.Map getHeaders() { + return this.headers; + } + + public ModifyAccountRelationResponse setBody(ModifyAccountRelationResponseBody body) { + this.body = body; + return this; + } + public ModifyAccountRelationResponseBody getBody() { + return this.body; + } + +} diff --git a/bssopenapi-20171214/src/main/java/com/aliyun/bssopenapi20171214/models/ModifyAccountRelationResponseBody.java b/bssopenapi-20171214/src/main/java/com/aliyun/bssopenapi20171214/models/ModifyAccountRelationResponseBody.java new file mode 100644 index 0000000000..6404ba4841 --- /dev/null +++ b/bssopenapi-20171214/src/main/java/com/aliyun/bssopenapi20171214/models/ModifyAccountRelationResponseBody.java @@ -0,0 +1,86 @@ +// This file is auto-generated, don't edit it. Thanks. +package com.aliyun.bssopenapi20171214.models; + +import com.aliyun.tea.*; + +public class ModifyAccountRelationResponseBody extends TeaModel { + @NameInMap("Code") + public String code; + + @NameInMap("Message") + public String message; + + @NameInMap("RequestId") + public String requestId; + + @NameInMap("Success") + public Boolean success; + + @NameInMap("Data") + public ModifyAccountRelationResponseBodyData data; + + public static ModifyAccountRelationResponseBody build(java.util.Map map) throws Exception { + ModifyAccountRelationResponseBody self = new ModifyAccountRelationResponseBody(); + return TeaModel.build(map, self); + } + + public ModifyAccountRelationResponseBody setCode(String code) { + this.code = code; + return this; + } + public String getCode() { + return this.code; + } + + public ModifyAccountRelationResponseBody setMessage(String message) { + this.message = message; + return this; + } + public String getMessage() { + return this.message; + } + + public ModifyAccountRelationResponseBody setRequestId(String requestId) { + this.requestId = requestId; + return this; + } + public String getRequestId() { + return this.requestId; + } + + public ModifyAccountRelationResponseBody setSuccess(Boolean success) { + this.success = success; + return this; + } + public Boolean getSuccess() { + return this.success; + } + + public ModifyAccountRelationResponseBody setData(ModifyAccountRelationResponseBodyData data) { + this.data = data; + return this; + } + public ModifyAccountRelationResponseBodyData getData() { + return this.data; + } + + public static class ModifyAccountRelationResponseBodyData extends TeaModel { + @NameInMap("HostId") + public String hostId; + + public static ModifyAccountRelationResponseBodyData build(java.util.Map map) throws Exception { + ModifyAccountRelationResponseBodyData self = new ModifyAccountRelationResponseBodyData(); + return TeaModel.build(map, self); + } + + public ModifyAccountRelationResponseBodyData setHostId(String hostId) { + this.hostId = hostId; + return this; + } + public String getHostId() { + return this.hostId; + } + + } + +} diff --git a/bssopenapi-20171214/src/main/java/com/aliyun/bssopenapi20171214/models/QueryDPUtilizationDetailRequest.java b/bssopenapi-20171214/src/main/java/com/aliyun/bssopenapi20171214/models/QueryDPUtilizationDetailRequest.java new file mode 100644 index 0000000000..7387346eb5 --- /dev/null +++ b/bssopenapi-20171214/src/main/java/com/aliyun/bssopenapi20171214/models/QueryDPUtilizationDetailRequest.java @@ -0,0 +1,111 @@ +// This file is auto-generated, don't edit it. Thanks. +package com.aliyun.bssopenapi20171214.models; + +import com.aliyun.tea.*; + +public class QueryDPUtilizationDetailRequest extends TeaModel { + @NameInMap("InstanceId") + public String instanceId; + + @NameInMap("InstanceSpec") + public String instanceSpec; + + @NameInMap("CommodityCode") + public String commodityCode; + + @NameInMap("DeductedInstanceId") + public String deductedInstanceId; + + @NameInMap("StartTime") + public String startTime; + + @NameInMap("EndTime") + public String endTime; + + @NameInMap("LastToken") + public String lastToken; + + @NameInMap("Limit") + public Integer limit; + + @NameInMap("IncludeShare") + public Boolean includeShare; + + public static QueryDPUtilizationDetailRequest build(java.util.Map map) throws Exception { + QueryDPUtilizationDetailRequest self = new QueryDPUtilizationDetailRequest(); + return TeaModel.build(map, self); + } + + public QueryDPUtilizationDetailRequest setInstanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + public String getInstanceId() { + return this.instanceId; + } + + public QueryDPUtilizationDetailRequest setInstanceSpec(String instanceSpec) { + this.instanceSpec = instanceSpec; + return this; + } + public String getInstanceSpec() { + return this.instanceSpec; + } + + public QueryDPUtilizationDetailRequest setCommodityCode(String commodityCode) { + this.commodityCode = commodityCode; + return this; + } + public String getCommodityCode() { + return this.commodityCode; + } + + public QueryDPUtilizationDetailRequest setDeductedInstanceId(String deductedInstanceId) { + this.deductedInstanceId = deductedInstanceId; + return this; + } + public String getDeductedInstanceId() { + return this.deductedInstanceId; + } + + public QueryDPUtilizationDetailRequest setStartTime(String startTime) { + this.startTime = startTime; + return this; + } + public String getStartTime() { + return this.startTime; + } + + public QueryDPUtilizationDetailRequest setEndTime(String endTime) { + this.endTime = endTime; + return this; + } + public String getEndTime() { + return this.endTime; + } + + public QueryDPUtilizationDetailRequest setLastToken(String lastToken) { + this.lastToken = lastToken; + return this; + } + public String getLastToken() { + return this.lastToken; + } + + public QueryDPUtilizationDetailRequest setLimit(Integer limit) { + this.limit = limit; + return this; + } + public Integer getLimit() { + return this.limit; + } + + public QueryDPUtilizationDetailRequest setIncludeShare(Boolean includeShare) { + this.includeShare = includeShare; + return this; + } + public Boolean getIncludeShare() { + return this.includeShare; + } + +} diff --git a/bssopenapi-20171214/src/main/java/com/aliyun/bssopenapi20171214/models/QueryDPUtilizationDetailResponse.java b/bssopenapi-20171214/src/main/java/com/aliyun/bssopenapi20171214/models/QueryDPUtilizationDetailResponse.java new file mode 100644 index 0000000000..7a591e29b7 --- /dev/null +++ b/bssopenapi-20171214/src/main/java/com/aliyun/bssopenapi20171214/models/QueryDPUtilizationDetailResponse.java @@ -0,0 +1,36 @@ +// This file is auto-generated, don't edit it. Thanks. +package com.aliyun.bssopenapi20171214.models; + +import com.aliyun.tea.*; + +public class QueryDPUtilizationDetailResponse extends TeaModel { + @NameInMap("headers") + @Validation(required = true) + public java.util.Map headers; + + @NameInMap("body") + @Validation(required = true) + public QueryDPUtilizationDetailResponseBody body; + + public static QueryDPUtilizationDetailResponse build(java.util.Map map) throws Exception { + QueryDPUtilizationDetailResponse self = new QueryDPUtilizationDetailResponse(); + return TeaModel.build(map, self); + } + + public QueryDPUtilizationDetailResponse setHeaders(java.util.Map headers) { + this.headers = headers; + return this; + } + public java.util.Map getHeaders() { + return this.headers; + } + + public QueryDPUtilizationDetailResponse setBody(QueryDPUtilizationDetailResponseBody body) { + this.body = body; + return this; + } + public QueryDPUtilizationDetailResponseBody getBody() { + return this.body; + } + +} diff --git a/bssopenapi-20171214/src/main/java/com/aliyun/bssopenapi20171214/models/QueryDPUtilizationDetailResponseBody.java b/bssopenapi-20171214/src/main/java/com/aliyun/bssopenapi20171214/models/QueryDPUtilizationDetailResponseBody.java new file mode 100644 index 0000000000..74f5e86f9e --- /dev/null +++ b/bssopenapi-20171214/src/main/java/com/aliyun/bssopenapi20171214/models/QueryDPUtilizationDetailResponseBody.java @@ -0,0 +1,278 @@ +// This file is auto-generated, don't edit it. Thanks. +package com.aliyun.bssopenapi20171214.models; + +import com.aliyun.tea.*; + +public class QueryDPUtilizationDetailResponseBody extends TeaModel { + @NameInMap("Code") + public String code; + + @NameInMap("Message") + public String message; + + @NameInMap("RequestId") + public String requestId; + + @NameInMap("Success") + public Boolean success; + + @NameInMap("Data") + public QueryDPUtilizationDetailResponseBodyData data; + + public static QueryDPUtilizationDetailResponseBody build(java.util.Map map) throws Exception { + QueryDPUtilizationDetailResponseBody self = new QueryDPUtilizationDetailResponseBody(); + return TeaModel.build(map, self); + } + + public QueryDPUtilizationDetailResponseBody setCode(String code) { + this.code = code; + return this; + } + public String getCode() { + return this.code; + } + + public QueryDPUtilizationDetailResponseBody setMessage(String message) { + this.message = message; + return this; + } + public String getMessage() { + return this.message; + } + + public QueryDPUtilizationDetailResponseBody setRequestId(String requestId) { + this.requestId = requestId; + return this; + } + public String getRequestId() { + return this.requestId; + } + + public QueryDPUtilizationDetailResponseBody setSuccess(Boolean success) { + this.success = success; + return this; + } + public Boolean getSuccess() { + return this.success; + } + + public QueryDPUtilizationDetailResponseBody setData(QueryDPUtilizationDetailResponseBodyData data) { + this.data = data; + return this; + } + public QueryDPUtilizationDetailResponseBodyData getData() { + return this.data; + } + + public static class QueryDPUtilizationDetailResponseBodyDataDetailListDetailList extends TeaModel { + @NameInMap("DeductedInstanceId") + public String deductedInstanceId; + + @NameInMap("InstanceId") + public String instanceId; + + @NameInMap("DeductHours") + public Float deductHours; + + @NameInMap("ShareUid") + public Long shareUid; + + @NameInMap("DeductDate") + public String deductDate; + + @NameInMap("InstanceSpec") + public String instanceSpec; + + @NameInMap("DeductedCommodityCode") + public String deductedCommodityCode; + + @NameInMap("DeductedProductDetail") + public String deductedProductDetail; + + @NameInMap("DeductMeasure") + public Float deductMeasure; + + @NameInMap("Region") + public String region; + + @NameInMap("DeductQuantity") + public Float deductQuantity; + + @NameInMap("DeductFactorTotal") + public Float deductFactorTotal; + + @NameInMap("ResCode") + public String resCode; + + @NameInMap("Uid") + public Long uid; + + public static QueryDPUtilizationDetailResponseBodyDataDetailListDetailList build(java.util.Map map) throws Exception { + QueryDPUtilizationDetailResponseBodyDataDetailListDetailList self = new QueryDPUtilizationDetailResponseBodyDataDetailListDetailList(); + return TeaModel.build(map, self); + } + + public QueryDPUtilizationDetailResponseBodyDataDetailListDetailList setDeductedInstanceId(String deductedInstanceId) { + this.deductedInstanceId = deductedInstanceId; + return this; + } + public String getDeductedInstanceId() { + return this.deductedInstanceId; + } + + public QueryDPUtilizationDetailResponseBodyDataDetailListDetailList setInstanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + public String getInstanceId() { + return this.instanceId; + } + + public QueryDPUtilizationDetailResponseBodyDataDetailListDetailList setDeductHours(Float deductHours) { + this.deductHours = deductHours; + return this; + } + public Float getDeductHours() { + return this.deductHours; + } + + public QueryDPUtilizationDetailResponseBodyDataDetailListDetailList setShareUid(Long shareUid) { + this.shareUid = shareUid; + return this; + } + public Long getShareUid() { + return this.shareUid; + } + + public QueryDPUtilizationDetailResponseBodyDataDetailListDetailList setDeductDate(String deductDate) { + this.deductDate = deductDate; + return this; + } + public String getDeductDate() { + return this.deductDate; + } + + public QueryDPUtilizationDetailResponseBodyDataDetailListDetailList setInstanceSpec(String instanceSpec) { + this.instanceSpec = instanceSpec; + return this; + } + public String getInstanceSpec() { + return this.instanceSpec; + } + + public QueryDPUtilizationDetailResponseBodyDataDetailListDetailList setDeductedCommodityCode(String deductedCommodityCode) { + this.deductedCommodityCode = deductedCommodityCode; + return this; + } + public String getDeductedCommodityCode() { + return this.deductedCommodityCode; + } + + public QueryDPUtilizationDetailResponseBodyDataDetailListDetailList setDeductedProductDetail(String deductedProductDetail) { + this.deductedProductDetail = deductedProductDetail; + return this; + } + public String getDeductedProductDetail() { + return this.deductedProductDetail; + } + + public QueryDPUtilizationDetailResponseBodyDataDetailListDetailList setDeductMeasure(Float deductMeasure) { + this.deductMeasure = deductMeasure; + return this; + } + public Float getDeductMeasure() { + return this.deductMeasure; + } + + public QueryDPUtilizationDetailResponseBodyDataDetailListDetailList setRegion(String region) { + this.region = region; + return this; + } + public String getRegion() { + return this.region; + } + + public QueryDPUtilizationDetailResponseBodyDataDetailListDetailList setDeductQuantity(Float deductQuantity) { + this.deductQuantity = deductQuantity; + return this; + } + public Float getDeductQuantity() { + return this.deductQuantity; + } + + public QueryDPUtilizationDetailResponseBodyDataDetailListDetailList setDeductFactorTotal(Float deductFactorTotal) { + this.deductFactorTotal = deductFactorTotal; + return this; + } + public Float getDeductFactorTotal() { + return this.deductFactorTotal; + } + + public QueryDPUtilizationDetailResponseBodyDataDetailListDetailList setResCode(String resCode) { + this.resCode = resCode; + return this; + } + public String getResCode() { + return this.resCode; + } + + public QueryDPUtilizationDetailResponseBodyDataDetailListDetailList setUid(Long uid) { + this.uid = uid; + return this; + } + public Long getUid() { + return this.uid; + } + + } + + public static class QueryDPUtilizationDetailResponseBodyDataDetailList extends TeaModel { + @NameInMap("DetailList") + public java.util.List detailList; + + public static QueryDPUtilizationDetailResponseBodyDataDetailList build(java.util.Map map) throws Exception { + QueryDPUtilizationDetailResponseBodyDataDetailList self = new QueryDPUtilizationDetailResponseBodyDataDetailList(); + return TeaModel.build(map, self); + } + + public QueryDPUtilizationDetailResponseBodyDataDetailList setDetailList(java.util.List detailList) { + this.detailList = detailList; + return this; + } + public java.util.List getDetailList() { + return this.detailList; + } + + } + + public static class QueryDPUtilizationDetailResponseBodyData extends TeaModel { + @NameInMap("NextToken") + public String nextToken; + + @NameInMap("DetailList") + public QueryDPUtilizationDetailResponseBodyDataDetailList detailList; + + public static QueryDPUtilizationDetailResponseBodyData build(java.util.Map map) throws Exception { + QueryDPUtilizationDetailResponseBodyData self = new QueryDPUtilizationDetailResponseBodyData(); + return TeaModel.build(map, self); + } + + public QueryDPUtilizationDetailResponseBodyData setNextToken(String nextToken) { + this.nextToken = nextToken; + return this; + } + public String getNextToken() { + return this.nextToken; + } + + public QueryDPUtilizationDetailResponseBodyData setDetailList(QueryDPUtilizationDetailResponseBodyDataDetailList detailList) { + this.detailList = detailList; + return this; + } + public QueryDPUtilizationDetailResponseBodyDataDetailList getDetailList() { + return this.detailList; + } + + } + +} diff --git a/bssopenapi-20171214/src/main/java/com/aliyun/bssopenapi20171214/models/QueryFinancialAccountInfoResponseBody.java b/bssopenapi-20171214/src/main/java/com/aliyun/bssopenapi20171214/models/QueryFinancialAccountInfoResponseBody.java index de01677144..aaac44cbf3 100644 --- a/bssopenapi-20171214/src/main/java/com/aliyun/bssopenapi20171214/models/QueryFinancialAccountInfoResponseBody.java +++ b/bssopenapi-20171214/src/main/java/com/aliyun/bssopenapi20171214/models/QueryFinancialAccountInfoResponseBody.java @@ -4,26 +4,34 @@ import com.aliyun.tea.*; public class QueryFinancialAccountInfoResponseBody extends TeaModel { + @NameInMap("Code") + public String code; + @NameInMap("Message") public String message; @NameInMap("RequestId") public String requestId; - @NameInMap("Data") - public QueryFinancialAccountInfoResponseBodyData data; - - @NameInMap("Code") - public String code; - @NameInMap("Success") public Boolean success; + @NameInMap("Data") + public QueryFinancialAccountInfoResponseBodyData data; + public static QueryFinancialAccountInfoResponseBody build(java.util.Map map) throws Exception { QueryFinancialAccountInfoResponseBody self = new QueryFinancialAccountInfoResponseBody(); return TeaModel.build(map, self); } + public QueryFinancialAccountInfoResponseBody setCode(String code) { + this.code = code; + return this; + } + public String getCode() { + return this.code; + } + public QueryFinancialAccountInfoResponseBody setMessage(String message) { this.message = message; return this; @@ -40,22 +48,6 @@ public String getRequestId() { return this.requestId; } - public QueryFinancialAccountInfoResponseBody setData(QueryFinancialAccountInfoResponseBodyData data) { - this.data = data; - return this; - } - public QueryFinancialAccountInfoResponseBodyData getData() { - return this.data; - } - - public QueryFinancialAccountInfoResponseBody setCode(String code) { - this.code = code; - return this; - } - public String getCode() { - return this.code; - } - public QueryFinancialAccountInfoResponseBody setSuccess(Boolean success) { this.success = success; return this; @@ -64,6 +56,14 @@ public Boolean getSuccess() { return this.success; } + public QueryFinancialAccountInfoResponseBody setData(QueryFinancialAccountInfoResponseBodyData data) { + this.data = data; + return this; + } + public QueryFinancialAccountInfoResponseBodyData getData() { + return this.data; + } + public static class QueryFinancialAccountInfoResponseBodyData extends TeaModel { @NameInMap("MemberNickName") public String memberNickName; diff --git a/bssopenapi-20171214/src/main/java/com/aliyun/bssopenapi20171214/models/QueryInstanceByTagResponseBody.java b/bssopenapi-20171214/src/main/java/com/aliyun/bssopenapi20171214/models/QueryInstanceByTagResponseBody.java index 50e2a366e9..2debb894b1 100644 --- a/bssopenapi-20171214/src/main/java/com/aliyun/bssopenapi20171214/models/QueryInstanceByTagResponseBody.java +++ b/bssopenapi-20171214/src/main/java/com/aliyun/bssopenapi20171214/models/QueryInstanceByTagResponseBody.java @@ -4,6 +4,9 @@ import com.aliyun.tea.*; public class QueryInstanceByTagResponseBody extends TeaModel { + @NameInMap("Code") + public String code; + @NameInMap("Message") public String message; @@ -13,20 +16,25 @@ public class QueryInstanceByTagResponseBody extends TeaModel { @NameInMap("RequestId") public String requestId; - @NameInMap("TagResource") - public java.util.List tagResource; - - @NameInMap("Code") - public String code; - @NameInMap("Success") public Boolean success; + @NameInMap("TagResource") + public java.util.List tagResource; + public static QueryInstanceByTagResponseBody build(java.util.Map map) throws Exception { QueryInstanceByTagResponseBody self = new QueryInstanceByTagResponseBody(); return TeaModel.build(map, self); } + public QueryInstanceByTagResponseBody setCode(String code) { + this.code = code; + return this; + } + public String getCode() { + return this.code; + } + public QueryInstanceByTagResponseBody setMessage(String message) { this.message = message; return this; @@ -51,22 +59,6 @@ public String getRequestId() { return this.requestId; } - public QueryInstanceByTagResponseBody setTagResource(java.util.List tagResource) { - this.tagResource = tagResource; - return this; - } - public java.util.List getTagResource() { - return this.tagResource; - } - - public QueryInstanceByTagResponseBody setCode(String code) { - this.code = code; - return this; - } - public String getCode() { - return this.code; - } - public QueryInstanceByTagResponseBody setSuccess(Boolean success) { this.success = success; return this; @@ -75,6 +67,14 @@ public Boolean getSuccess() { return this.success; } + public QueryInstanceByTagResponseBody setTagResource(java.util.List tagResource) { + this.tagResource = tagResource; + return this; + } + public java.util.List getTagResource() { + return this.tagResource; + } + public static class QueryInstanceByTagResponseBodyTagResourceTag extends TeaModel { @NameInMap("Key") public String key; @@ -106,20 +106,28 @@ public String getValue() { } public static class QueryInstanceByTagResponseBodyTagResource extends TeaModel { + @NameInMap("ResourceId") + public String resourceId; + @NameInMap("ResourceType") public String resourceType; @NameInMap("Tag") public java.util.List tag; - @NameInMap("ResourceId") - public String resourceId; - public static QueryInstanceByTagResponseBodyTagResource build(java.util.Map map) throws Exception { QueryInstanceByTagResponseBodyTagResource self = new QueryInstanceByTagResponseBodyTagResource(); return TeaModel.build(map, self); } + public QueryInstanceByTagResponseBodyTagResource setResourceId(String resourceId) { + this.resourceId = resourceId; + return this; + } + public String getResourceId() { + return this.resourceId; + } + public QueryInstanceByTagResponseBodyTagResource setResourceType(String resourceType) { this.resourceType = resourceType; return this; @@ -136,14 +144,6 @@ public java.util.List getTag() { return this.tag; } - public QueryInstanceByTagResponseBodyTagResource setResourceId(String resourceId) { - this.resourceId = resourceId; - return this; - } - public String getResourceId() { - return this.resourceId; - } - } } diff --git a/bssopenapi-20171214/src/main/java/com/aliyun/bssopenapi20171214/models/QueryPermissionListResponseBody.java b/bssopenapi-20171214/src/main/java/com/aliyun/bssopenapi20171214/models/QueryPermissionListResponseBody.java index 5b59a5ba5a..a782d0625d 100644 --- a/bssopenapi-20171214/src/main/java/com/aliyun/bssopenapi20171214/models/QueryPermissionListResponseBody.java +++ b/bssopenapi-20171214/src/main/java/com/aliyun/bssopenapi20171214/models/QueryPermissionListResponseBody.java @@ -4,26 +4,34 @@ import com.aliyun.tea.*; public class QueryPermissionListResponseBody extends TeaModel { + @NameInMap("Code") + public String code; + @NameInMap("Message") public String message; @NameInMap("RequestId") public String requestId; - @NameInMap("Data") - public QueryPermissionListResponseBodyData data; - - @NameInMap("Code") - public String code; - @NameInMap("Success") public Boolean success; + @NameInMap("Data") + public QueryPermissionListResponseBodyData data; + public static QueryPermissionListResponseBody build(java.util.Map map) throws Exception { QueryPermissionListResponseBody self = new QueryPermissionListResponseBody(); return TeaModel.build(map, self); } + public QueryPermissionListResponseBody setCode(String code) { + this.code = code; + return this; + } + public String getCode() { + return this.code; + } + public QueryPermissionListResponseBody setMessage(String message) { this.message = message; return this; @@ -40,22 +48,6 @@ public String getRequestId() { return this.requestId; } - public QueryPermissionListResponseBody setData(QueryPermissionListResponseBodyData data) { - this.data = data; - return this; - } - public QueryPermissionListResponseBodyData getData() { - return this.data; - } - - public QueryPermissionListResponseBody setCode(String code) { - this.code = code; - return this; - } - public String getCode() { - return this.code; - } - public QueryPermissionListResponseBody setSuccess(Boolean success) { this.success = success; return this; @@ -64,6 +56,14 @@ public Boolean getSuccess() { return this.success; } + public QueryPermissionListResponseBody setData(QueryPermissionListResponseBodyData data) { + this.data = data; + return this; + } + public QueryPermissionListResponseBodyData getData() { + return this.data; + } + public static class QueryPermissionListResponseBodyDataPermissionList extends TeaModel { @NameInMap("EndTime") public String endTime; @@ -126,9 +126,6 @@ public static class QueryPermissionListResponseBodyData extends TeaModel { @NameInMap("StartTime") public String startTime; - @NameInMap("PermissionList") - public java.util.List permissionList; - @NameInMap("State") public String state; @@ -141,6 +138,9 @@ public static class QueryPermissionListResponseBodyData extends TeaModel { @NameInMap("SetupTime") public String setupTime; + @NameInMap("PermissionList") + public java.util.List permissionList; + public static QueryPermissionListResponseBodyData build(java.util.Map map) throws Exception { QueryPermissionListResponseBodyData self = new QueryPermissionListResponseBodyData(); return TeaModel.build(map, self); @@ -170,14 +170,6 @@ public String getStartTime() { return this.startTime; } - public QueryPermissionListResponseBodyData setPermissionList(java.util.List permissionList) { - this.permissionList = permissionList; - return this; - } - public java.util.List getPermissionList() { - return this.permissionList; - } - public QueryPermissionListResponseBodyData setState(String state) { this.state = state; return this; @@ -210,6 +202,14 @@ public String getSetupTime() { return this.setupTime; } + public QueryPermissionListResponseBodyData setPermissionList(java.util.List permissionList) { + this.permissionList = permissionList; + return this; + } + public java.util.List getPermissionList() { + return this.permissionList; + } + } } diff --git a/bssopenapi-20171214/src/main/java/com/aliyun/bssopenapi20171214/models/QueryRelationListResponseBody.java b/bssopenapi-20171214/src/main/java/com/aliyun/bssopenapi20171214/models/QueryRelationListResponseBody.java index 97088f87dc..8dde5dc03f 100644 --- a/bssopenapi-20171214/src/main/java/com/aliyun/bssopenapi20171214/models/QueryRelationListResponseBody.java +++ b/bssopenapi-20171214/src/main/java/com/aliyun/bssopenapi20171214/models/QueryRelationListResponseBody.java @@ -4,26 +4,34 @@ import com.aliyun.tea.*; public class QueryRelationListResponseBody extends TeaModel { + @NameInMap("Code") + public String code; + @NameInMap("Message") public String message; @NameInMap("RequestId") public String requestId; - @NameInMap("Data") - public QueryRelationListResponseBodyData data; - - @NameInMap("Code") - public String code; - @NameInMap("Success") public Boolean success; + @NameInMap("Data") + public QueryRelationListResponseBodyData data; + public static QueryRelationListResponseBody build(java.util.Map map) throws Exception { QueryRelationListResponseBody self = new QueryRelationListResponseBody(); return TeaModel.build(map, self); } + public QueryRelationListResponseBody setCode(String code) { + this.code = code; + return this; + } + public String getCode() { + return this.code; + } + public QueryRelationListResponseBody setMessage(String message) { this.message = message; return this; @@ -40,22 +48,6 @@ public String getRequestId() { return this.requestId; } - public QueryRelationListResponseBody setData(QueryRelationListResponseBodyData data) { - this.data = data; - return this; - } - public QueryRelationListResponseBodyData getData() { - return this.data; - } - - public QueryRelationListResponseBody setCode(String code) { - this.code = code; - return this; - } - public String getCode() { - return this.code; - } - public QueryRelationListResponseBody setSuccess(Boolean success) { this.success = success; return this; @@ -64,6 +56,14 @@ public Boolean getSuccess() { return this.success; } + public QueryRelationListResponseBody setData(QueryRelationListResponseBodyData data) { + this.data = data; + return this; + } + public QueryRelationListResponseBodyData getData() { + return this.data; + } + public static class QueryRelationListResponseBodyDataFinancialRelationInfoList extends TeaModel { @NameInMap("EndTime") public String endTime; diff --git a/bssopenapi-20171214/src/main/java/com/aliyun/bssopenapi20171214/models/QuerySavingsPlansDeductLogResponseBody.java b/bssopenapi-20171214/src/main/java/com/aliyun/bssopenapi20171214/models/QuerySavingsPlansDeductLogResponseBody.java index 3752df4244..d3e59a8e1e 100644 --- a/bssopenapi-20171214/src/main/java/com/aliyun/bssopenapi20171214/models/QuerySavingsPlansDeductLogResponseBody.java +++ b/bssopenapi-20171214/src/main/java/com/aliyun/bssopenapi20171214/models/QuerySavingsPlansDeductLogResponseBody.java @@ -4,26 +4,34 @@ import com.aliyun.tea.*; public class QuerySavingsPlansDeductLogResponseBody extends TeaModel { + @NameInMap("Code") + public String code; + @NameInMap("Message") public String message; @NameInMap("RequestId") public String requestId; - @NameInMap("Data") - public QuerySavingsPlansDeductLogResponseBodyData data; - - @NameInMap("Code") - public String code; - @NameInMap("Success") public Boolean success; + @NameInMap("Data") + public QuerySavingsPlansDeductLogResponseBodyData data; + public static QuerySavingsPlansDeductLogResponseBody build(java.util.Map map) throws Exception { QuerySavingsPlansDeductLogResponseBody self = new QuerySavingsPlansDeductLogResponseBody(); return TeaModel.build(map, self); } + public QuerySavingsPlansDeductLogResponseBody setCode(String code) { + this.code = code; + return this; + } + public String getCode() { + return this.code; + } + public QuerySavingsPlansDeductLogResponseBody setMessage(String message) { this.message = message; return this; @@ -40,22 +48,6 @@ public String getRequestId() { return this.requestId; } - public QuerySavingsPlansDeductLogResponseBody setData(QuerySavingsPlansDeductLogResponseBodyData data) { - this.data = data; - return this; - } - public QuerySavingsPlansDeductLogResponseBodyData getData() { - return this.data; - } - - public QuerySavingsPlansDeductLogResponseBody setCode(String code) { - this.code = code; - return this; - } - public String getCode() { - return this.code; - } - public QuerySavingsPlansDeductLogResponseBody setSuccess(Boolean success) { this.success = success; return this; @@ -64,6 +56,14 @@ public Boolean getSuccess() { return this.success; } + public QuerySavingsPlansDeductLogResponseBody setData(QuerySavingsPlansDeductLogResponseBodyData data) { + this.data = data; + return this; + } + public QuerySavingsPlansDeductLogResponseBodyData getData() { + return this.data; + } + public static class QuerySavingsPlansDeductLogResponseBodyDataItems extends TeaModel { @NameInMap("EndTime") public String endTime; @@ -194,9 +194,6 @@ public String getDeductFee() { } public static class QuerySavingsPlansDeductLogResponseBodyData extends TeaModel { - @NameInMap("Items") - public java.util.List items; - @NameInMap("PageNum") public Integer pageNum; @@ -206,19 +203,14 @@ public static class QuerySavingsPlansDeductLogResponseBodyData extends TeaModel @NameInMap("TotalCount") public Integer totalCount; + @NameInMap("Items") + public java.util.List items; + public static QuerySavingsPlansDeductLogResponseBodyData build(java.util.Map map) throws Exception { QuerySavingsPlansDeductLogResponseBodyData self = new QuerySavingsPlansDeductLogResponseBodyData(); return TeaModel.build(map, self); } - public QuerySavingsPlansDeductLogResponseBodyData setItems(java.util.List items) { - this.items = items; - return this; - } - public java.util.List getItems() { - return this.items; - } - public QuerySavingsPlansDeductLogResponseBodyData setPageNum(Integer pageNum) { this.pageNum = pageNum; return this; @@ -243,6 +235,14 @@ public Integer getTotalCount() { return this.totalCount; } + public QuerySavingsPlansDeductLogResponseBodyData setItems(java.util.List items) { + this.items = items; + return this; + } + public java.util.List getItems() { + return this.items; + } + } } diff --git a/bssopenapi-20171214/src/main/java/com/aliyun/bssopenapi20171214/models/QuerySavingsPlansInstanceResponseBody.java b/bssopenapi-20171214/src/main/java/com/aliyun/bssopenapi20171214/models/QuerySavingsPlansInstanceResponseBody.java index 6f38b5b7bc..498fb9b2d4 100644 --- a/bssopenapi-20171214/src/main/java/com/aliyun/bssopenapi20171214/models/QuerySavingsPlansInstanceResponseBody.java +++ b/bssopenapi-20171214/src/main/java/com/aliyun/bssopenapi20171214/models/QuerySavingsPlansInstanceResponseBody.java @@ -4,26 +4,34 @@ import com.aliyun.tea.*; public class QuerySavingsPlansInstanceResponseBody extends TeaModel { + @NameInMap("Code") + public String code; + @NameInMap("Message") public String message; @NameInMap("RequestId") public String requestId; - @NameInMap("Data") - public QuerySavingsPlansInstanceResponseBodyData data; - - @NameInMap("Code") - public String code; - @NameInMap("Success") public Boolean success; + @NameInMap("Data") + public QuerySavingsPlansInstanceResponseBodyData data; + public static QuerySavingsPlansInstanceResponseBody build(java.util.Map map) throws Exception { QuerySavingsPlansInstanceResponseBody self = new QuerySavingsPlansInstanceResponseBody(); return TeaModel.build(map, self); } + public QuerySavingsPlansInstanceResponseBody setCode(String code) { + this.code = code; + return this; + } + public String getCode() { + return this.code; + } + public QuerySavingsPlansInstanceResponseBody setMessage(String message) { this.message = message; return this; @@ -40,22 +48,6 @@ public String getRequestId() { return this.requestId; } - public QuerySavingsPlansInstanceResponseBody setData(QuerySavingsPlansInstanceResponseBodyData data) { - this.data = data; - return this; - } - public QuerySavingsPlansInstanceResponseBodyData getData() { - return this.data; - } - - public QuerySavingsPlansInstanceResponseBody setCode(String code) { - this.code = code; - return this; - } - public String getCode() { - return this.code; - } - public QuerySavingsPlansInstanceResponseBody setSuccess(Boolean success) { this.success = success; return this; @@ -64,6 +56,14 @@ public Boolean getSuccess() { return this.success; } + public QuerySavingsPlansInstanceResponseBody setData(QuerySavingsPlansInstanceResponseBodyData data) { + this.data = data; + return this; + } + public QuerySavingsPlansInstanceResponseBodyData getData() { + return this.data; + } + public static class QuerySavingsPlansInstanceResponseBodyDataItemsTags extends TeaModel { @NameInMap("Key") public String key; @@ -101,15 +101,12 @@ public static class QuerySavingsPlansInstanceResponseBodyDataItems extends TeaMo @NameInMap("SavingsType") public String savingsType; - @NameInMap("Tags") - public java.util.List tags; + @NameInMap("Utilization") + public String utilization; @NameInMap("PrepayFee") public String prepayFee; - @NameInMap("Utilization") - public String utilization; - @NameInMap("InstanceId") public String instanceId; @@ -122,12 +119,12 @@ public static class QuerySavingsPlansInstanceResponseBodyDataItems extends TeaMo @NameInMap("StartTime") public String startTime; - @NameInMap("InstanceFamily") - public String instanceFamily; - @NameInMap("AllocationStatus") public String allocationStatus; + @NameInMap("InstanceFamily") + public String instanceFamily; + @NameInMap("Region") public String region; @@ -140,6 +137,9 @@ public static class QuerySavingsPlansInstanceResponseBodyDataItems extends TeaMo @NameInMap("PayMode") public String payMode; + @NameInMap("Tags") + public java.util.List tags; + public static QuerySavingsPlansInstanceResponseBodyDataItems build(java.util.Map map) throws Exception { QuerySavingsPlansInstanceResponseBodyDataItems self = new QuerySavingsPlansInstanceResponseBodyDataItems(); return TeaModel.build(map, self); @@ -161,12 +161,12 @@ public String getSavingsType() { return this.savingsType; } - public QuerySavingsPlansInstanceResponseBodyDataItems setTags(java.util.List tags) { - this.tags = tags; + public QuerySavingsPlansInstanceResponseBodyDataItems setUtilization(String utilization) { + this.utilization = utilization; return this; } - public java.util.List getTags() { - return this.tags; + public String getUtilization() { + return this.utilization; } public QuerySavingsPlansInstanceResponseBodyDataItems setPrepayFee(String prepayFee) { @@ -177,14 +177,6 @@ public String getPrepayFee() { return this.prepayFee; } - public QuerySavingsPlansInstanceResponseBodyDataItems setUtilization(String utilization) { - this.utilization = utilization; - return this; - } - public String getUtilization() { - return this.utilization; - } - public QuerySavingsPlansInstanceResponseBodyDataItems setInstanceId(String instanceId) { this.instanceId = instanceId; return this; @@ -217,14 +209,6 @@ public String getStartTime() { return this.startTime; } - public QuerySavingsPlansInstanceResponseBodyDataItems setInstanceFamily(String instanceFamily) { - this.instanceFamily = instanceFamily; - return this; - } - public String getInstanceFamily() { - return this.instanceFamily; - } - public QuerySavingsPlansInstanceResponseBodyDataItems setAllocationStatus(String allocationStatus) { this.allocationStatus = allocationStatus; return this; @@ -233,6 +217,14 @@ public String getAllocationStatus() { return this.allocationStatus; } + public QuerySavingsPlansInstanceResponseBodyDataItems setInstanceFamily(String instanceFamily) { + this.instanceFamily = instanceFamily; + return this; + } + public String getInstanceFamily() { + return this.instanceFamily; + } + public QuerySavingsPlansInstanceResponseBodyDataItems setRegion(String region) { this.region = region; return this; @@ -265,12 +257,17 @@ public String getPayMode() { return this.payMode; } + public QuerySavingsPlansInstanceResponseBodyDataItems setTags(java.util.List tags) { + this.tags = tags; + return this; + } + public java.util.List getTags() { + return this.tags; + } + } public static class QuerySavingsPlansInstanceResponseBodyData extends TeaModel { - @NameInMap("Items") - public java.util.List items; - @NameInMap("PageNum") public Integer pageNum; @@ -280,19 +277,14 @@ public static class QuerySavingsPlansInstanceResponseBodyData extends TeaModel { @NameInMap("TotalCount") public Integer totalCount; + @NameInMap("Items") + public java.util.List items; + public static QuerySavingsPlansInstanceResponseBodyData build(java.util.Map map) throws Exception { QuerySavingsPlansInstanceResponseBodyData self = new QuerySavingsPlansInstanceResponseBodyData(); return TeaModel.build(map, self); } - public QuerySavingsPlansInstanceResponseBodyData setItems(java.util.List items) { - this.items = items; - return this; - } - public java.util.List getItems() { - return this.items; - } - public QuerySavingsPlansInstanceResponseBodyData setPageNum(Integer pageNum) { this.pageNum = pageNum; return this; @@ -317,6 +309,14 @@ public Integer getTotalCount() { return this.totalCount; } + public QuerySavingsPlansInstanceResponseBodyData setItems(java.util.List items) { + this.items = items; + return this; + } + public java.util.List getItems() { + return this.items; + } + } } diff --git a/bssopenapi-20171214/src/main/java/com/aliyun/bssopenapi20171214/models/RelieveAccountRelationRequest.java b/bssopenapi-20171214/src/main/java/com/aliyun/bssopenapi20171214/models/RelieveAccountRelationRequest.java new file mode 100644 index 0000000000..96d91f776f --- /dev/null +++ b/bssopenapi-20171214/src/main/java/com/aliyun/bssopenapi20171214/models/RelieveAccountRelationRequest.java @@ -0,0 +1,56 @@ +// This file is auto-generated, don't edit it. Thanks. +package com.aliyun.bssopenapi20171214.models; + +import com.aliyun.tea.*; + +public class RelieveAccountRelationRequest extends TeaModel { + @NameInMap("RelationType") + public String relationType; + + @NameInMap("ParentUserId") + public Long parentUserId; + + @NameInMap("ChildUserId") + public Long childUserId; + + @NameInMap("RequestId") + public String requestId; + + public static RelieveAccountRelationRequest build(java.util.Map map) throws Exception { + RelieveAccountRelationRequest self = new RelieveAccountRelationRequest(); + return TeaModel.build(map, self); + } + + public RelieveAccountRelationRequest setRelationType(String relationType) { + this.relationType = relationType; + return this; + } + public String getRelationType() { + return this.relationType; + } + + public RelieveAccountRelationRequest setParentUserId(Long parentUserId) { + this.parentUserId = parentUserId; + return this; + } + public Long getParentUserId() { + return this.parentUserId; + } + + public RelieveAccountRelationRequest setChildUserId(Long childUserId) { + this.childUserId = childUserId; + return this; + } + public Long getChildUserId() { + return this.childUserId; + } + + public RelieveAccountRelationRequest setRequestId(String requestId) { + this.requestId = requestId; + return this; + } + public String getRequestId() { + return this.requestId; + } + +} diff --git a/bssopenapi-20171214/src/main/java/com/aliyun/bssopenapi20171214/models/RelieveAccountRelationResponse.java b/bssopenapi-20171214/src/main/java/com/aliyun/bssopenapi20171214/models/RelieveAccountRelationResponse.java new file mode 100644 index 0000000000..4401f6dad9 --- /dev/null +++ b/bssopenapi-20171214/src/main/java/com/aliyun/bssopenapi20171214/models/RelieveAccountRelationResponse.java @@ -0,0 +1,36 @@ +// This file is auto-generated, don't edit it. Thanks. +package com.aliyun.bssopenapi20171214.models; + +import com.aliyun.tea.*; + +public class RelieveAccountRelationResponse extends TeaModel { + @NameInMap("headers") + @Validation(required = true) + public java.util.Map headers; + + @NameInMap("body") + @Validation(required = true) + public RelieveAccountRelationResponseBody body; + + public static RelieveAccountRelationResponse build(java.util.Map map) throws Exception { + RelieveAccountRelationResponse self = new RelieveAccountRelationResponse(); + return TeaModel.build(map, self); + } + + public RelieveAccountRelationResponse setHeaders(java.util.Map headers) { + this.headers = headers; + return this; + } + public java.util.Map getHeaders() { + return this.headers; + } + + public RelieveAccountRelationResponse setBody(RelieveAccountRelationResponseBody body) { + this.body = body; + return this; + } + public RelieveAccountRelationResponseBody getBody() { + return this.body; + } + +} diff --git a/bssopenapi-20171214/src/main/java/com/aliyun/bssopenapi20171214/models/RelieveAccountRelationResponseBody.java b/bssopenapi-20171214/src/main/java/com/aliyun/bssopenapi20171214/models/RelieveAccountRelationResponseBody.java new file mode 100644 index 0000000000..9ef7a6aa3a --- /dev/null +++ b/bssopenapi-20171214/src/main/java/com/aliyun/bssopenapi20171214/models/RelieveAccountRelationResponseBody.java @@ -0,0 +1,86 @@ +// This file is auto-generated, don't edit it. Thanks. +package com.aliyun.bssopenapi20171214.models; + +import com.aliyun.tea.*; + +public class RelieveAccountRelationResponseBody extends TeaModel { + @NameInMap("Code") + public String code; + + @NameInMap("Message") + public String message; + + @NameInMap("RequestId") + public String requestId; + + @NameInMap("Success") + public Boolean success; + + @NameInMap("Data") + public RelieveAccountRelationResponseBodyData data; + + public static RelieveAccountRelationResponseBody build(java.util.Map map) throws Exception { + RelieveAccountRelationResponseBody self = new RelieveAccountRelationResponseBody(); + return TeaModel.build(map, self); + } + + public RelieveAccountRelationResponseBody setCode(String code) { + this.code = code; + return this; + } + public String getCode() { + return this.code; + } + + public RelieveAccountRelationResponseBody setMessage(String message) { + this.message = message; + return this; + } + public String getMessage() { + return this.message; + } + + public RelieveAccountRelationResponseBody setRequestId(String requestId) { + this.requestId = requestId; + return this; + } + public String getRequestId() { + return this.requestId; + } + + public RelieveAccountRelationResponseBody setSuccess(Boolean success) { + this.success = success; + return this; + } + public Boolean getSuccess() { + return this.success; + } + + public RelieveAccountRelationResponseBody setData(RelieveAccountRelationResponseBodyData data) { + this.data = data; + return this; + } + public RelieveAccountRelationResponseBodyData getData() { + return this.data; + } + + public static class RelieveAccountRelationResponseBodyData extends TeaModel { + @NameInMap("HostId") + public String hostId; + + public static RelieveAccountRelationResponseBodyData build(java.util.Map map) throws Exception { + RelieveAccountRelationResponseBodyData self = new RelieveAccountRelationResponseBodyData(); + return TeaModel.build(map, self); + } + + public RelieveAccountRelationResponseBodyData setHostId(String hostId) { + this.hostId = hostId; + return this; + } + public String getHostId() { + return this.hostId; + } + + } + +} diff --git a/bssopenapi-20171214/src/main/java/com/aliyun/bssopenapi20171214/models/SaveUserCreditResponseBody.java b/bssopenapi-20171214/src/main/java/com/aliyun/bssopenapi20171214/models/SaveUserCreditResponseBody.java index 68e9af7a7e..e64c6cd134 100644 --- a/bssopenapi-20171214/src/main/java/com/aliyun/bssopenapi20171214/models/SaveUserCreditResponseBody.java +++ b/bssopenapi-20171214/src/main/java/com/aliyun/bssopenapi20171214/models/SaveUserCreditResponseBody.java @@ -4,15 +4,15 @@ import com.aliyun.tea.*; public class SaveUserCreditResponseBody extends TeaModel { + @NameInMap("Code") + public String code; + @NameInMap("Message") public String message; @NameInMap("RequestId") public String requestId; - @NameInMap("Code") - public String code; - @NameInMap("Success") public Boolean success; @@ -21,6 +21,14 @@ public static SaveUserCreditResponseBody build(java.util.Map map) thr return TeaModel.build(map, self); } + public SaveUserCreditResponseBody setCode(String code) { + this.code = code; + return this; + } + public String getCode() { + return this.code; + } + public SaveUserCreditResponseBody setMessage(String message) { this.message = message; return this; @@ -37,14 +45,6 @@ public String getRequestId() { return this.requestId; } - public SaveUserCreditResponseBody setCode(String code) { - this.code = code; - return this; - } - public String getCode() { - return this.code; - } - public SaveUserCreditResponseBody setSuccess(Boolean success) { this.success = success; return this; diff --git a/bssopenapi-20171214/src/main/java/com/aliyun/bssopenapi20171214/models/SetCreditLabelActionResponseBody.java b/bssopenapi-20171214/src/main/java/com/aliyun/bssopenapi20171214/models/SetCreditLabelActionResponseBody.java index 772055d4dc..bc3f1db482 100644 --- a/bssopenapi-20171214/src/main/java/com/aliyun/bssopenapi20171214/models/SetCreditLabelActionResponseBody.java +++ b/bssopenapi-20171214/src/main/java/com/aliyun/bssopenapi20171214/models/SetCreditLabelActionResponseBody.java @@ -4,17 +4,17 @@ import com.aliyun.tea.*; public class SetCreditLabelActionResponseBody extends TeaModel { + @NameInMap("Code") + public String code; + @NameInMap("Message") public String message; - @NameInMap("RequestId") - public String requestId; - @NameInMap("Data") public Boolean data; - @NameInMap("Code") - public String code; + @NameInMap("RequestId") + public String requestId; @NameInMap("Success") public Boolean success; @@ -24,20 +24,20 @@ public static SetCreditLabelActionResponseBody build(java.util.Map ma return TeaModel.build(map, self); } - public SetCreditLabelActionResponseBody setMessage(String message) { - this.message = message; + public SetCreditLabelActionResponseBody setCode(String code) { + this.code = code; return this; } - public String getMessage() { - return this.message; + public String getCode() { + return this.code; } - public SetCreditLabelActionResponseBody setRequestId(String requestId) { - this.requestId = requestId; + public SetCreditLabelActionResponseBody setMessage(String message) { + this.message = message; return this; } - public String getRequestId() { - return this.requestId; + public String getMessage() { + return this.message; } public SetCreditLabelActionResponseBody setData(Boolean data) { @@ -48,12 +48,12 @@ public Boolean getData() { return this.data; } - public SetCreditLabelActionResponseBody setCode(String code) { - this.code = code; + public SetCreditLabelActionResponseBody setRequestId(String requestId) { + this.requestId = requestId; return this; } - public String getCode() { - return this.code; + public String getRequestId() { + return this.requestId; } public SetCreditLabelActionResponseBody setSuccess(Boolean success) { diff --git a/bssopenapi-20171214/src/main/java/com/aliyun/bssopenapi20171214/models/TagResourcesResponseBody.java b/bssopenapi-20171214/src/main/java/com/aliyun/bssopenapi20171214/models/TagResourcesResponseBody.java index a497272556..f67a216f10 100644 --- a/bssopenapi-20171214/src/main/java/com/aliyun/bssopenapi20171214/models/TagResourcesResponseBody.java +++ b/bssopenapi-20171214/src/main/java/com/aliyun/bssopenapi20171214/models/TagResourcesResponseBody.java @@ -4,17 +4,17 @@ import com.aliyun.tea.*; public class TagResourcesResponseBody extends TeaModel { + @NameInMap("Code") + public String code; + @NameInMap("Message") public String message; - @NameInMap("RequestId") - public String requestId; - @NameInMap("Data") public Boolean data; - @NameInMap("Code") - public String code; + @NameInMap("RequestId") + public String requestId; @NameInMap("Success") public Boolean success; @@ -24,20 +24,20 @@ public static TagResourcesResponseBody build(java.util.Map map) throw return TeaModel.build(map, self); } - public TagResourcesResponseBody setMessage(String message) { - this.message = message; + public TagResourcesResponseBody setCode(String code) { + this.code = code; return this; } - public String getMessage() { - return this.message; + public String getCode() { + return this.code; } - public TagResourcesResponseBody setRequestId(String requestId) { - this.requestId = requestId; + public TagResourcesResponseBody setMessage(String message) { + this.message = message; return this; } - public String getRequestId() { - return this.requestId; + public String getMessage() { + return this.message; } public TagResourcesResponseBody setData(Boolean data) { @@ -48,12 +48,12 @@ public Boolean getData() { return this.data; } - public TagResourcesResponseBody setCode(String code) { - this.code = code; + public TagResourcesResponseBody setRequestId(String requestId) { + this.requestId = requestId; return this; } - public String getCode() { - return this.code; + public String getRequestId() { + return this.requestId; } public TagResourcesResponseBody setSuccess(Boolean success) { diff --git a/bssopenapi-20171214/src/main/java/com/aliyun/bssopenapi20171214/models/UntagResourcesResponseBody.java b/bssopenapi-20171214/src/main/java/com/aliyun/bssopenapi20171214/models/UntagResourcesResponseBody.java index 69b88068b0..545398baf1 100644 --- a/bssopenapi-20171214/src/main/java/com/aliyun/bssopenapi20171214/models/UntagResourcesResponseBody.java +++ b/bssopenapi-20171214/src/main/java/com/aliyun/bssopenapi20171214/models/UntagResourcesResponseBody.java @@ -4,17 +4,17 @@ import com.aliyun.tea.*; public class UntagResourcesResponseBody extends TeaModel { + @NameInMap("Code") + public String code; + @NameInMap("Message") public String message; - @NameInMap("RequestId") - public String requestId; - @NameInMap("Data") public Boolean data; - @NameInMap("Code") - public String code; + @NameInMap("RequestId") + public String requestId; @NameInMap("Success") public Boolean success; @@ -24,20 +24,20 @@ public static UntagResourcesResponseBody build(java.util.Map map) thr return TeaModel.build(map, self); } - public UntagResourcesResponseBody setMessage(String message) { - this.message = message; + public UntagResourcesResponseBody setCode(String code) { + this.code = code; return this; } - public String getMessage() { - return this.message; + public String getCode() { + return this.code; } - public UntagResourcesResponseBody setRequestId(String requestId) { - this.requestId = requestId; + public UntagResourcesResponseBody setMessage(String message) { + this.message = message; return this; } - public String getRequestId() { - return this.requestId; + public String getMessage() { + return this.message; } public UntagResourcesResponseBody setData(Boolean data) { @@ -48,12 +48,12 @@ public Boolean getData() { return this.data; } - public UntagResourcesResponseBody setCode(String code) { - this.code = code; + public UntagResourcesResponseBody setRequestId(String requestId) { + this.requestId = requestId; return this; } - public String getCode() { - return this.code; + public String getRequestId() { + return this.requestId; } public UntagResourcesResponseBody setSuccess(Boolean success) {