RecommendationConfigurationProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.security.models.RecommendationConfigurationProperties

Implements

public final class RecommendationConfigurationProperties
implements JsonSerializable<RecommendationConfigurationProperties>

The type of IoT Security recommendation.

Constructor Summary

Constructor Description
RecommendationConfigurationProperties()

Creates an instance of RecommendationConfigurationProperties class.

Method Summary

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

Reads an instance of RecommendationConfigurationProperties from the JsonReader.

String name()

Get the name property: The name property.

RecommendationType recommendationType()

Get the recommendationType property: The type of IoT Security recommendation.

RecommendationConfigStatus status()

Get the status property: Recommendation status.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

RecommendationConfigurationProperties withRecommendationType(RecommendationType recommendationType)

Set the recommendationType property: The type of IoT Security recommendation.

RecommendationConfigurationProperties withStatus(RecommendationConfigStatus status)

Set the status property: Recommendation status.

Methods inherited from java.lang.Object

Constructor Details

RecommendationConfigurationProperties

public RecommendationConfigurationProperties()

Creates an instance of RecommendationConfigurationProperties class.

Method Details

fromJson

public static RecommendationConfigurationProperties fromJson(JsonReader jsonReader)

Reads an instance of RecommendationConfigurationProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

name

public String name()

Get the name property: The name property.

Returns:

the name value.

recommendationType

public RecommendationType recommendationType()

Get the recommendationType property: The type of IoT Security recommendation.

Returns:

the recommendationType value.

status

public RecommendationConfigStatus status()

Get the status property: Recommendation status. When the recommendation status is disabled recommendations are not generated.

Returns:

the status value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withRecommendationType

public RecommendationConfigurationProperties withRecommendationType(RecommendationType recommendationType)

Set the recommendationType property: The type of IoT Security recommendation.

Parameters:

recommendationType - the recommendationType value to set.

Returns:

the RecommendationConfigurationProperties object itself.

withStatus

public RecommendationConfigurationProperties withStatus(RecommendationConfigStatus status)

Set the status property: Recommendation status. When the recommendation status is disabled recommendations are not generated.

Parameters:

status - the status value to set.

Returns:

the RecommendationConfigurationProperties object itself.

Applies to