Class TargetCostProperties
java.lang.Object
com.azure.resourcemanager.devtestlabs.models.TargetCostProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<TargetCostProperties>
public final class TargetCostProperties
extends Object
implements com.azure.json.JsonSerializable<TargetCostProperties>
Properties of a cost target.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the costThresholds property: Cost thresholds.Get the cycleEndDateTime property: Reporting cycle end date.Get the cycleStartDateTime property: Reporting cycle start date.Get the cycleType property: Reporting cycle type.static TargetCostProperties
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of TargetCostProperties from the JsonReader.status()
Get the status property: Target cost status.target()
Get the target property: Lab target cost.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withCostThresholds
(List<CostThresholdProperties> costThresholds) Set the costThresholds property: Cost thresholds.withCycleEndDateTime
(OffsetDateTime cycleEndDateTime) Set the cycleEndDateTime property: Reporting cycle end date.withCycleStartDateTime
(OffsetDateTime cycleStartDateTime) Set the cycleStartDateTime property: Reporting cycle start date.withCycleType
(ReportingCycleType cycleType) Set the cycleType property: Reporting cycle type.withStatus
(TargetCostStatus status) Set the status property: Target cost status.withTarget
(Integer target) Set the target property: Lab target cost.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
TargetCostProperties
public TargetCostProperties()Creates an instance of TargetCostProperties class.
-
-
Method Details
-
status
Get the status property: Target cost status.- Returns:
- the status value.
-
withStatus
Set the status property: Target cost status.- Parameters:
status
- the status value to set.- Returns:
- the TargetCostProperties object itself.
-
target
Get the target property: Lab target cost.- Returns:
- the target value.
-
withTarget
Set the target property: Lab target cost.- Parameters:
target
- the target value to set.- Returns:
- the TargetCostProperties object itself.
-
costThresholds
Get the costThresholds property: Cost thresholds.- Returns:
- the costThresholds value.
-
withCostThresholds
Set the costThresholds property: Cost thresholds.- Parameters:
costThresholds
- the costThresholds value to set.- Returns:
- the TargetCostProperties object itself.
-
cycleStartDateTime
Get the cycleStartDateTime property: Reporting cycle start date.- Returns:
- the cycleStartDateTime value.
-
withCycleStartDateTime
Set the cycleStartDateTime property: Reporting cycle start date.- Parameters:
cycleStartDateTime
- the cycleStartDateTime value to set.- Returns:
- the TargetCostProperties object itself.
-
cycleEndDateTime
Get the cycleEndDateTime property: Reporting cycle end date.- Returns:
- the cycleEndDateTime value.
-
withCycleEndDateTime
Set the cycleEndDateTime property: Reporting cycle end date.- Parameters:
cycleEndDateTime
- the cycleEndDateTime value to set.- Returns:
- the TargetCostProperties object itself.
-
cycleType
Get the cycleType property: Reporting cycle type.- Returns:
- the cycleType value.
-
withCycleType
Set the cycleType property: Reporting cycle type.- Parameters:
cycleType
- the cycleType value to set.- Returns:
- the TargetCostProperties object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<TargetCostProperties>
- Throws:
IOException
-
fromJson
public static TargetCostProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of TargetCostProperties from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of TargetCostProperties if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException
- If an error occurs while reading the TargetCostProperties.
-