InstanceFeature Class

  • java.lang.Object
    • com.azure.resourcemanager.iotoperations.models.InstanceFeature

Implements

public final class InstanceFeature
implements JsonSerializable<InstanceFeature>

The features of the AIO Instance.

Constructor Summary

Constructor Description
InstanceFeature()

Creates an instance of InstanceFeature class.

Method Summary

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

Reads an instance of InstanceFeature from the JsonReader.

InstanceFeatureMode mode()

Get the mode property: The state of the feature.

Map<String,OperationalMode> settings()

Get the settings property: The settings of the feature.

JsonWriter toJson(JsonWriter jsonWriter)
InstanceFeature withMode(InstanceFeatureMode mode)

Set the mode property: The state of the feature.

InstanceFeature withSettings(Map<String,OperationalMode> settings)

Set the settings property: The settings of the feature.

Methods inherited from java.lang.Object

Constructor Details

InstanceFeature

public InstanceFeature()

Creates an instance of InstanceFeature class.

Method Details

fromJson

public static InstanceFeature fromJson(JsonReader jsonReader)

Reads an instance of InstanceFeature from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of InstanceFeature 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 InstanceFeature.

mode

public InstanceFeatureMode mode()

Get the mode property: The state of the feature.

Returns:

the mode value.

settings

public Map<String,OperationalMode> settings()

Get the settings property: The settings of the feature.

Returns:

the settings value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

withMode

public InstanceFeature withMode(InstanceFeatureMode mode)

Set the mode property: The state of the feature.

Parameters:

mode - the mode value to set.

Returns:

the InstanceFeature object itself.

withSettings

public InstanceFeature withSettings(Map<String,OperationalMode> settings)

Set the settings property: The settings of the feature.

Parameters:

settings - the settings value to set.

Returns:

the InstanceFeature object itself.

Applies to