Class TimeSeriesParameter
- java.lang.Object
-
- odata.msgraph.client.beta.complex.TimeSeriesParameter
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataType
public class TimeSeriesParameter extends Object implements com.github.davidmoten.odata.client.ODataType
“Parameter passed to GetHealthMetricTimeSeries when requesting snapshot time series.”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTimeSeriesParameter.Builder
-
Field Summary
Fields Modifier and Type Field Description protected com.github.davidmoten.odata.client.ContextPathcontextPathprotected OffsetDateTimeendDateTimeprotected StringmetricNameprotected StringodataTypeprotected OffsetDateTimestartDateTimeprotected com.github.davidmoten.odata.client.internal.UnmappedFieldsImplunmappedFields
-
Constructor Summary
Constructors Modifier Constructor Description protectedTimeSeriesParameter()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TimeSeriesParameter.Builderbuilder()Returns a builder which is used to create a new instance of this class (given that this class is immutable).Optional<OffsetDateTime>getEndDateTime()“End time of the series being requested.Optional<String>getMetricName()“The name of the metric for which a time series is requested.”Optional<OffsetDateTime>getStartDateTime()“Start time of the series being requested.”com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()StringodataTypeName()voidpostInject(boolean addKeysToContextPath)StringtoString()TimeSeriesParameterwithEndDateTime(OffsetDateTime endDateTime)Returns an immutable copy ofthiswith just theendDateTimefield changed.TimeSeriesParameterwithMetricName(String metricName)Returns an immutable copy ofthiswith just themetricNamefield changed.TimeSeriesParameterwithStartDateTime(OffsetDateTime startDateTime)Returns an immutable copy ofthiswith just thestartDateTimefield changed.TimeSeriesParameterwithUnmappedField(String name, String value)
-
-
-
Field Detail
-
contextPath
protected com.github.davidmoten.odata.client.ContextPath contextPath
-
unmappedFields
protected com.github.davidmoten.odata.client.internal.UnmappedFieldsImpl unmappedFields
-
odataType
protected String odataType
-
endDateTime
protected OffsetDateTime endDateTime
-
metricName
protected String metricName
-
startDateTime
protected OffsetDateTime startDateTime
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType
-
getEndDateTime
public Optional<OffsetDateTime> getEndDateTime()
“End time of the series being requested. Optional; if not specified, current time is used.”- Returns:
- property endDateTime
-
withEndDateTime
public TimeSeriesParameter withEndDateTime(OffsetDateTime endDateTime)
Returns an immutable copy ofthiswith just theendDateTimefield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis. patch()is called (if available)on the returned object only the changed fields are submitted.“End time of the series being requested. Optional; if not specified, current time is used.”
- Parameters:
endDateTime- new value ofendDateTimefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theendDateTimefield changed
-
getMetricName
public Optional<String> getMetricName()
“The name of the metric for which a time series is requested.”- Returns:
- property metricName
-
withMetricName
public TimeSeriesParameter withMetricName(String metricName)
Returns an immutable copy ofthiswith just themetricNamefield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.patch()is called (if available)on the returned object only the changed fields are submitted.“The name of the metric for which a time series is requested.”
- Parameters:
metricName- new value ofmetricNamefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just themetricNamefield changed
-
getStartDateTime
public Optional<OffsetDateTime> getStartDateTime()
“Start time of the series being requested.”- Returns:
- property startDateTime
-
withStartDateTime
public TimeSeriesParameter withStartDateTime(OffsetDateTime startDateTime)
Returns an immutable copy ofthiswith just thestartDateTimefield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis. patch()is called (if available)on the returned object only the changed fields are submitted.“Start time of the series being requested.”
- Parameters:
startDateTime- new value ofstartDateTimefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thestartDateTimefield changed
-
withUnmappedField
public TimeSeriesParameter withUnmappedField(String name, String value)
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType
-
postInject
public void postInject(boolean addKeysToContextPath)
- Specified by:
postInjectin interfacecom.github.davidmoten.odata.client.ODataType
-
builder
public static TimeSeriesParameter.Builder builder()
Returns a builder which is used to create a new instance of this class (given that this class is immutable).- Returns:
- a new Builder for this class
-
-