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

com.aliyun.sdk.service.agency20221216.models.GetCreditInfoResponseBody Maven / Gradle / Ivy

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

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

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

GetCreditInfoResponseBody

*/ public class GetCreditInfoResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("Code") private String code; @com.aliyun.core.annotation.NameInMap("Data") private Data data; @com.aliyun.core.annotation.NameInMap("Message") private String message; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("Success") private Boolean success; private GetCreditInfoResponseBody(Builder builder) { this.code = builder.code; this.data = builder.data; this.message = builder.message; this.requestId = builder.requestId; this.success = builder.success; } public static Builder builder() { return new Builder(); } public static GetCreditInfoResponseBody create() { return builder().build(); } /** * @return code */ public String getCode() { return this.code; } /** * @return data */ public Data getData() { return this.data; } /** * @return message */ public String getMessage() { return this.message; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return success */ public Boolean getSuccess() { return this.success; } public static final class Builder { private String code; private Data data; private String message; private String requestId; private Boolean success; /** *

Result Code:

*
    *
  • 200 OK
  • *
  • 1109 System Error
  • *
* * example: *

200

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

The data returned.

*/ public Builder data(Data data) { this.data = data; return this; } /** *

Message Information

* * example: *

success

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

Request ID, Alibaba Cloud will track errors with this.

* * example: *

9C14ADFE-DF0A-54D4-8BD5-45D0839246B4

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

Candidate Value: True/False, which indicates whether the current API call itself is successful. It does not guarantee the success of subsequent business operations.

* * example: *

true

*/ public Builder success(Boolean success) { this.success = success; return this; } public GetCreditInfoResponseBody build() { return new GetCreditInfoResponseBody(this); } } /** * * {@link GetCreditInfoResponseBody} extends {@link TeaModel} * *

GetCreditInfoResponseBody

*/ public static class Data extends TeaModel { @com.aliyun.core.annotation.NameInMap("AccountStatus") private String accountStatus; @com.aliyun.core.annotation.NameInMap("AlarmThreshold") private String alarmThreshold; @com.aliyun.core.annotation.NameInMap("AvailableCredit") private String availableCredit; @com.aliyun.core.annotation.NameInMap("ConsumedUndeductedValue") private String consumedUndeductedValue; @com.aliyun.core.annotation.NameInMap("CreditLine") private String creditLine; @com.aliyun.core.annotation.NameInMap("OutstandingBalance") private String outstandingBalance; @com.aliyun.core.annotation.NameInMap("ZeroCreditShutdownPolicy") private String zeroCreditShutdownPolicy; @com.aliyun.core.annotation.NameInMap("newBuyStatus") private String newBuyStatus; private Data(Builder builder) { this.accountStatus = builder.accountStatus; this.alarmThreshold = builder.alarmThreshold; this.availableCredit = builder.availableCredit; this.consumedUndeductedValue = builder.consumedUndeductedValue; this.creditLine = builder.creditLine; this.outstandingBalance = builder.outstandingBalance; this.zeroCreditShutdownPolicy = builder.zeroCreditShutdownPolicy; this.newBuyStatus = builder.newBuyStatus; } public static Builder builder() { return new Builder(); } public static Data create() { return builder().build(); } /** * @return accountStatus */ public String getAccountStatus() { return this.accountStatus; } /** * @return alarmThreshold */ public String getAlarmThreshold() { return this.alarmThreshold; } /** * @return availableCredit */ public String getAvailableCredit() { return this.availableCredit; } /** * @return consumedUndeductedValue */ public String getConsumedUndeductedValue() { return this.consumedUndeductedValue; } /** * @return creditLine */ public String getCreditLine() { return this.creditLine; } /** * @return outstandingBalance */ public String getOutstandingBalance() { return this.outstandingBalance; } /** * @return zeroCreditShutdownPolicy */ public String getZeroCreditShutdownPolicy() { return this.zeroCreditShutdownPolicy; } /** * @return newBuyStatus */ public String getNewBuyStatus() { return this.newBuyStatus; } public static final class Builder { private String accountStatus; private String alarmThreshold; private String availableCredit; private String consumedUndeductedValue; private String creditLine; private String outstandingBalance; private String zeroCreditShutdownPolicy; private String newBuyStatus; /** *

The Credit Control status, Value Range:

*
    *
  1. normal - Sub Account status is running as usual.
  2. *
  3. arrearsNotShutdown - Sub Account status is running as usual, but have outstanding bill(s).
  4. *
  5. shutdown - Sub Account status is down.
  6. *
* * example: *

normal

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

Percentage value, when the available credit limit is lower than this credit limit percentage, a notification E-mail will be sent to the main account.

* * example: *

20

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

The Credit available to consume.

* * example: *

800

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

Obtain total unpaid amount on demo bill before simulated deduction.

* * example: *

0.000000

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

The Credit Line of Sub Account

* * example: *

1000

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

The Credit have been consumed by Sub Account, and haven"t be paid.

* * example: *

200

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

The systematic controlling policy for resource management, specifically when the available Credit of Sub Account falls to 0 or less.

*
    *
  • 1: delayStop. The account have Shutdown-delay Privilege, After Shutdown-delay Credit is ran out, Alibaba Cloud will take over resources and keep the instance for 15 days. In addition, the instance will be released if Sub Account failed to pay the bill within these 15 days.
  • *
  • 2: noStop. Partner will manually manage Shutdown Status for Sub Account. Meanwhile, System would not manage the resource"s life-circle of Sub Account.
  • *
  • 3: immediatelyStop. Once valid quota of Sub Account falls below 0 and be identified as defaulting account, it will trigger the instance shutdown immediately.
  • *
* * example: *

delayStop

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

Manage order operation.

*
    *
  • ban:Ban the new purchase action.
  • *
  • normal:The account could raise new purchase order as usual.
  • *
* * example: *

ban

*/ public Builder newBuyStatus(String newBuyStatus) { this.newBuyStatus = newBuyStatus; return this; } public Data build() { return new Data(this); } } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy