CustomTargetRollingWindowSize Class

public final class CustomTargetRollingWindowSize
extends TargetRollingWindowSize

The CustomTargetRollingWindowSize model.

Constructor Summary

Constructor Description
CustomTargetRollingWindowSize()

Creates an instance of CustomTargetRollingWindowSize class.

Method Summary

Modifier and Type Method and Description
static CustomTargetRollingWindowSize fromJson(JsonReader jsonReader)

Reads an instance of CustomTargetRollingWindowSize from the JsonReader.

TargetRollingWindowSizeMode mode()

Get the mode property: [Required] TargetRollingWindowSiz detection mode.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

int value()

Get the value property: [Required] TargetRollingWindowSize value.

CustomTargetRollingWindowSize withValue(int value)

Set the value property: [Required] TargetRollingWindowSize value.

Methods inherited from TargetRollingWindowSize

Methods inherited from java.lang.Object

Constructor Details

CustomTargetRollingWindowSize

public CustomTargetRollingWindowSize()

Creates an instance of CustomTargetRollingWindowSize class.

Method Details

fromJson

public static CustomTargetRollingWindowSize fromJson(JsonReader jsonReader)

Reads an instance of CustomTargetRollingWindowSize from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of CustomTargetRollingWindowSize if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

mode

public TargetRollingWindowSizeMode mode()

Get the mode property: [Required] TargetRollingWindowSiz detection mode.

Overrides:

CustomTargetRollingWindowSize.mode()

Returns:

the mode value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

CustomTargetRollingWindowSize.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

CustomTargetRollingWindowSize.validate()

value

public int value()

Get the value property: [Required] TargetRollingWindowSize value.

Returns:

the value value.

withValue

public CustomTargetRollingWindowSize withValue(int value)

Set the value property: [Required] TargetRollingWindowSize value.

Parameters:

value - the value value to set.

Returns:

the CustomTargetRollingWindowSize object itself.

Applies to