public class Plan extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Plan.Builder
Class to build instances of
Plan. |
| Constructor and Description |
|---|
Plan()
Default constructor.
|
Plan(List<BillingCycle> billingCycles,
OneTimeCharge oneTimeCharges,
JsonValue product,
String name)
Initialization constructor.
|
| Modifier and Type | Method and Description |
|---|---|
List<BillingCycle> |
getBillingCycles()
Getter for BillingCycles.
|
String |
getName()
Getter for Name.
|
OneTimeCharge |
getOneTimeCharges()
Getter for OneTimeCharges.
|
JsonValue |
getProduct()
Getter for Product.
|
void |
setBillingCycles(List<BillingCycle> billingCycles)
Setter for BillingCycles.
|
void |
setName(String name)
Setter for Name.
|
void |
setOneTimeCharges(OneTimeCharge oneTimeCharges)
Setter for OneTimeCharges.
|
void |
setProduct(JsonValue product)
Setter for Product.
|
Plan.Builder |
toBuilder()
Builds a new
Plan.Builder object. |
String |
toString()
Converts this Plan into string format.
|
public Plan()
public Plan(List<BillingCycle> billingCycles, OneTimeCharge oneTimeCharges, JsonValue product, String name)
billingCycles - List of BillingCycle value for billingCycles.oneTimeCharges - OneTimeCharge value for oneTimeCharges.product - JsonValue value for product.name - String value for name.public List<BillingCycle> getBillingCycles()
public void setBillingCycles(List<BillingCycle> billingCycles)
billingCycles - Value for List of BillingCyclepublic JsonValue getProduct()
public void setProduct(JsonValue product)
product - Value for JsonValuepublic OneTimeCharge getOneTimeCharges()
public void setOneTimeCharges(OneTimeCharge oneTimeCharges)
oneTimeCharges - Value for OneTimeChargepublic String getName()
public void setName(String name)
name - Value for Stringpublic String toString()
public Plan.Builder toBuilder()
Plan.Builder object.
Creates the instance with the state of the current model.Plan.Builder objectCopyright © 2025. All rights reserved.