Class ProductAndService.Builder
- java.lang.Object
-
- com.oracle.bmc.onesubscription.model.ProductAndService.Builder
-
- Enclosing class:
- ProductAndService
public static class ProductAndService.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ProductAndService.BuilderamountAuthorized(Double amountAuthorized)Amount authorized for the product or service.ProductAndService.BuilderamountConsumed(Double amountConsumed)Amount consumed by the product or service.ProductAndService.BuilderamountProvisioned(Double amountProvisioned)Amount provisioned for the product or service.ProductAndServicebuild()ProductAndService.Buildercopy(ProductAndService model)ProductAndService.BuilderserviceName(String serviceName)Name of the product or service.ProductAndService.BuildersubId(String subId)Subscription identifier; may be blank for non-cloud transactions.ProductAndService.BuildertimeEnd(Date timeEnd)End date and time for the product or service.ProductAndService.BuildertimeStart(Date timeStart)Start date and time for the product or service.
-
-
-
Method Detail
-
subId
public ProductAndService.Builder subId(String subId)
Subscription identifier; may be blank for non-cloud transactions.- Parameters:
subId- the value to set- Returns:
- this builder
-
serviceName
public ProductAndService.Builder serviceName(String serviceName)
Name of the product or service.- Parameters:
serviceName- the value to set- Returns:
- this builder
-
timeStart
public ProductAndService.Builder timeStart(Date timeStart)
Start date and time for the product or service.- Parameters:
timeStart- the value to set- Returns:
- this builder
-
timeEnd
public ProductAndService.Builder timeEnd(Date timeEnd)
End date and time for the product or service.- Parameters:
timeEnd- the value to set- Returns:
- this builder
-
amountAuthorized
public ProductAndService.Builder amountAuthorized(Double amountAuthorized)
Amount authorized for the product or service.- Parameters:
amountAuthorized- the value to set- Returns:
- this builder
-
amountProvisioned
public ProductAndService.Builder amountProvisioned(Double amountProvisioned)
Amount provisioned for the product or service.- Parameters:
amountProvisioned- the value to set- Returns:
- this builder
-
amountConsumed
public ProductAndService.Builder amountConsumed(Double amountConsumed)
Amount consumed by the product or service.- Parameters:
amountConsumed- the value to set- Returns:
- this builder
-
build
public ProductAndService build()
-
copy
public ProductAndService.Builder copy(ProductAndService model)
-
-