@Generated(value="OracleSDKGenerator", comments="API Version: 20200107") public final class Forecast extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
Forecast configuration of usage/cost.
Note: Objects should always be created or deserialized using the Forecast.Builder
. This model
distinguishes fields that are null
because they are unset from fields that are explicitly
set to null
. This is done in the setter methods of the Forecast.Builder
, which maintain a
set of all explicitly set fields called ExplicitlySetBmcModel.__explicitlySet__
. The hashCode()
and
equals(Object)
methods are implemented to take ExplicitlySetBmcModel.__explicitlySet__
into account.
The constructor, on the other hand, does not set ExplicitlySetBmcModel.__explicitlySet__
(since the
constructor cannot distinguish explicit null
from unset null
).
Modifier and Type | Class and Description |
---|---|
static class |
Forecast.Builder |
static class |
Forecast.ForecastType
BASIC uses the exponential smoothing (ETS) model to project future usage/costs based on
history data.
|
Constructor and Description |
---|
Forecast(Forecast.ForecastType forecastType,
Date timeForecastStarted,
Date timeForecastEnded)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static Forecast.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
Forecast.ForecastType |
getForecastType()
BASIC uses the exponential smoothing (ETS) model to project future usage/costs based on
history data.
|
Date |
getTimeForecastEnded()
The forecast end time.
|
Date |
getTimeForecastStarted()
The forecast start time.
|
int |
hashCode() |
Forecast.Builder |
toBuilder() |
String |
toString() |
String |
toString(boolean includeByteArrayContents)
Return a string representation of the object.
|
markPropertyAsExplicitlySet, wasPropertyExplicitlySet
@Deprecated @ConstructorProperties(value={"forecastType","timeForecastStarted","timeForecastEnded"}) public Forecast(Forecast.ForecastType forecastType, Date timeForecastStarted, Date timeForecastEnded)
public static Forecast.Builder builder()
Create a new builder.
public Forecast.Builder toBuilder()
public Forecast.ForecastType getForecastType()
BASIC uses the exponential smoothing (ETS) model to project future usage/costs based on history data. The basis for projections is a periodic set of equivalent historical days for which the projection is being made.
public Date getTimeForecastStarted()
The forecast start time. Defaults to UTC-1 if not specified.
public Date getTimeForecastEnded()
The forecast end time.
public String toString()
toString
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.
includeByteArrayContents
- true to include the full contents of byte arrayspublic boolean equals(Object o)
equals
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public int hashCode()
hashCode
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
Copyright © 2016–2023. All rights reserved.