public final class PlanData extends Object
Constructor and Description |
---|
PlanData() |
Modifier and Type | Method and Description |
---|---|
String |
billingCycle()
Get the billingCycle property: different billing cycles like MONTHLY/WEEKLY.
|
OffsetDateTime |
effectiveDate()
Get the effectiveDate property: date when plan was applied.
|
String |
planDetails()
Get the planDetails property: plan id as published by Logz.
|
String |
usageType()
Get the usageType property: different usage type like PAYG/COMMITTED.
|
void |
validate()
Validates the instance.
|
PlanData |
withBillingCycle(String billingCycle)
Set the billingCycle property: different billing cycles like MONTHLY/WEEKLY.
|
PlanData |
withEffectiveDate(OffsetDateTime effectiveDate)
Set the effectiveDate property: date when plan was applied.
|
PlanData |
withPlanDetails(String planDetails)
Set the planDetails property: plan id as published by Logz.
|
PlanData |
withUsageType(String usageType)
Set the usageType property: different usage type like PAYG/COMMITTED.
|
public String usageType()
public PlanData withUsageType(String usageType)
usageType
- the usageType value to set.public String billingCycle()
public PlanData withBillingCycle(String billingCycle)
billingCycle
- the billingCycle value to set.public String planDetails()
public PlanData withPlanDetails(String planDetails)
planDetails
- the planDetails value to set.public OffsetDateTime effectiveDate()
public PlanData withEffectiveDate(OffsetDateTime effectiveDate)
effectiveDate
- the effectiveDate value to set.public void validate()
IllegalArgumentException
- thrown if the instance is not valid.Visit the Azure for Java Developers site for more Java documentation, including quick starts, tutorials, and code samples.