-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b593856
commit 1bc5fb5
Showing
20 changed files
with
1,055 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
51 changes: 51 additions & 0 deletions
51
src/main/java/com/baidubce/services/billing/model/bill/ChargeItemBill.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
/* | ||
* Copyright (c) 2020 Baidu.com, Inc. All Rights Reserved | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with | ||
* the License. You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on | ||
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the | ||
* specific language governing permissions and limitations under the License. | ||
*/ | ||
|
||
package com.baidubce.services.billing.model.bill; | ||
|
||
import java.math.BigDecimal; | ||
|
||
import lombok.Data; | ||
|
||
/** | ||
* the bill of the charge item | ||
*/ | ||
@Data | ||
public class ChargeItemBill { | ||
|
||
/** | ||
* the charge item ,like RunningTimeMinutes | ||
*/ | ||
private String chargeItem; | ||
|
||
/** | ||
* the charge item ,like 运行时间 | ||
*/ | ||
private String chargeItemDesc; | ||
|
||
/** | ||
* the usage amount of the charge item | ||
*/ | ||
private String amount; | ||
|
||
/** | ||
* the amount unit of the charge item | ||
*/ | ||
private String amountUnit; | ||
|
||
/** | ||
* the bill price of the charge item | ||
*/ | ||
private BigDecimal originPrice; | ||
|
||
} |
77 changes: 77 additions & 0 deletions
77
src/main/java/com/baidubce/services/billing/model/bill/ResourceBill.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
/* | ||
* Copyright (c) 2020 Baidu.com, Inc. All Rights Reserved | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with | ||
* the License. You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on | ||
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the | ||
* specific language governing permissions and limitations under the License. | ||
*/ | ||
|
||
package com.baidubce.services.billing.model.bill; | ||
|
||
import java.math.BigDecimal; | ||
import java.util.List; | ||
|
||
import lombok.Data; | ||
|
||
/** | ||
* the bill of resource | ||
*/ | ||
@Data | ||
public class ResourceBill { | ||
|
||
/** | ||
* the name of service | ||
*/ | ||
private String serviceType; | ||
|
||
/** | ||
* chinese name of service | ||
*/ | ||
private String serviceTypeName; | ||
|
||
/** | ||
* the pay type | ||
*/ | ||
private String productType; | ||
|
||
/** | ||
* the id of the resource | ||
*/ | ||
private String instanceId; | ||
|
||
/** | ||
* the short id of the resource | ||
*/ | ||
private String shortId; | ||
|
||
/** | ||
* the region of the resource | ||
*/ | ||
private String region; | ||
|
||
/** | ||
* the price of the bill | ||
*/ | ||
private BigDecimal originPrice; | ||
|
||
/** | ||
* the tag info of the resource | ||
*/ | ||
private String tag; | ||
|
||
/** | ||
* the detail info if the resource is a postpay resource | ||
*/ | ||
private List<ResourceBillPostpayDetail> postpayDetails; | ||
|
||
/** | ||
* the detail info if the resource is a pretpay resource | ||
*/ | ||
private List<ResourceBillPrepayDetail> prepayDetails; | ||
|
||
} |
85 changes: 85 additions & 0 deletions
85
src/main/java/com/baidubce/services/billing/model/bill/ResourceBillListQueryRequest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
/* | ||
* Copyright (c) 2020 Baidu.com, Inc. All Rights Reserved | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with | ||
* the License. You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on | ||
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the | ||
* specific language governing permissions and limitations under the License. | ||
*/ | ||
|
||
package com.baidubce.services.billing.model.bill; | ||
|
||
import com.baidubce.auth.BceCredentials; | ||
import com.baidubce.model.AbstractBceRequest; | ||
|
||
import lombok.Data; | ||
|
||
/** | ||
* request model for query resource bill list | ||
*/ | ||
@Data | ||
public class ResourceBillListQueryRequest extends AbstractBceRequest { | ||
|
||
/** | ||
* the month of bill, query by month | ||
*/ | ||
private String billMonth; | ||
|
||
/** | ||
* the begin time of bill, query by day | ||
*/ | ||
private String beginTime; | ||
|
||
/** | ||
* the end time of bill, query by day | ||
*/ | ||
private String endTime; | ||
|
||
/** | ||
* pay type : prepay/postpay | ||
*/ | ||
private String productType; | ||
|
||
/** | ||
* the type of service | ||
*/ | ||
private String serviceType; | ||
|
||
/** | ||
* the resource instance id or resource short id | ||
*/ | ||
private String shortOrInstanceId; | ||
|
||
/** | ||
* the account id you want to query | ||
* tips: only the master account of organization group can set the parameter to query the sub account's bill | ||
*/ | ||
private String queryAccountId; | ||
|
||
/** | ||
* page number | ||
*/ | ||
Integer pageNo; | ||
|
||
/** | ||
* page size | ||
*/ | ||
Integer pageSize; | ||
|
||
/** | ||
* Configure request credential for the request. | ||
* | ||
* @param credentials a valid instance of BceCredentials. | ||
* @return BindTagsRequest with credentials. | ||
*/ | ||
@Override | ||
public ResourceBillListQueryRequest withRequestCredentials(BceCredentials credentials) { | ||
this.setRequestCredentials(credentials); | ||
return this; | ||
} | ||
|
||
} |
Oops, something went wrong.