public static class SubscriptionInfo.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
SubscriptionInfo |
build() |
SubscriptionInfo.Builder |
copy(SubscriptionInfo model) |
SubscriptionInfo.Builder |
endDate(Date endDate)
Subscription end date.
|
SubscriptionInfo.Builder |
service(String service)
Subscription service name.
|
SubscriptionInfo.Builder |
skus(List<Sku> skus)
List of SKUs the subscription contains.
|
SubscriptionInfo.Builder |
spmSubscriptionId(String spmSubscriptionId)
Subscription ID.
|
SubscriptionInfo.Builder |
startDate(Date startDate)
Subscription start date.
|
public SubscriptionInfo.Builder spmSubscriptionId(String spmSubscriptionId)
Subscription ID.
spmSubscriptionId
- the value to setpublic SubscriptionInfo.Builder service(String service)
Subscription service name.
service
- the value to setpublic SubscriptionInfo.Builder startDate(Date startDate)
Subscription start date. An RFC 3339-formatted date and time string.
startDate
- the value to setpublic SubscriptionInfo.Builder endDate(Date endDate)
Subscription end date. An RFC 3339-formatted date and time string.
endDate
- the value to setpublic SubscriptionInfo.Builder skus(List<Sku> skus)
List of SKUs the subscription contains.
skus
- the value to setpublic SubscriptionInfo build()
public SubscriptionInfo.Builder copy(SubscriptionInfo model)
Copyright © 2016–2024. All rights reserved.