CustomRecommendationInner Class

public final class CustomRecommendationInner
extends ProxyResource

Custom Recommendation.

Constructor Summary

Constructor Description
CustomRecommendationInner()

Creates an instance of CustomRecommendationInner class.

Method Summary

Modifier and Type Method and Description
String assessmentKey()

Get the assessmentKey property: The assessment metadata key used when an assessment is generated for this Recommendation.

List<RecommendationSupportedClouds> cloudProviders()

Get the cloudProviders property: List of all standard supported clouds.

String description()

Get the description property: The description to relate to the assessments generated by this Recommendation.

String displayName()

Get the displayName property: The display name of the assessments generated by this Recommendation.

static CustomRecommendationInner fromJson(JsonReader jsonReader)

Reads an instance of CustomRecommendationInner from the JsonReader.

String id()

Get the id property: Fully qualified resource Id for the resource.

String name()

Get the name property: The name of the resource.

String query()

Get the query property: KQL query representing the Recommendation results required.

String remediationDescription()

Get the remediationDescription property: The remediation description to relate to the assessments generated by this Recommendation.

SecurityIssue securityIssue()

Get the securityIssue property: The severity to relate to the assessments generated by this Recommendation.

SeverityEnum severity()

Get the severity property: The severity to relate to the assessments generated by this Recommendation.

SystemData systemData()

Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

CustomRecommendationInner withCloudProviders(List<RecommendationSupportedClouds> cloudProviders)

Set the cloudProviders property: List of all standard supported clouds.

CustomRecommendationInner withDescription(String description)

Set the description property: The description to relate to the assessments generated by this Recommendation.

CustomRecommendationInner withDisplayName(String displayName)

Set the displayName property: The display name of the assessments generated by this Recommendation.

CustomRecommendationInner withQuery(String query)

Set the query property: KQL query representing the Recommendation results required.

CustomRecommendationInner withRemediationDescription(String remediationDescription)

Set the remediationDescription property: The remediation description to relate to the assessments generated by this Recommendation.

CustomRecommendationInner withSecurityIssue(SecurityIssue securityIssue)

Set the securityIssue property: The severity to relate to the assessments generated by this Recommendation.

CustomRecommendationInner withSeverity(SeverityEnum severity)

Set the severity property: The severity to relate to the assessments generated by this Recommendation.

Methods inherited from ProxyResource

Methods inherited from java.lang.Object

Constructor Details

CustomRecommendationInner

public CustomRecommendationInner()

Creates an instance of CustomRecommendationInner class.

Method Details

assessmentKey

public String assessmentKey()

Get the assessmentKey property: The assessment metadata key used when an assessment is generated for this Recommendation.

Returns:

the assessmentKey value.

cloudProviders

public List<RecommendationSupportedClouds> cloudProviders()

Get the cloudProviders property: List of all standard supported clouds.

Returns:

the cloudProviders value.

description

public String description()

Get the description property: The description to relate to the assessments generated by this Recommendation.

Returns:

the description value.

displayName

public String displayName()

Get the displayName property: The display name of the assessments generated by this Recommendation.

Returns:

the displayName value.

fromJson

public static CustomRecommendationInner fromJson(JsonReader jsonReader)

Reads an instance of CustomRecommendationInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

id

public String id()

Get the id property: Fully qualified resource Id for the resource.

Overrides:

CustomRecommendationInner.id()

Returns:

the id value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

CustomRecommendationInner.name()

Returns:

the name value.

query

public String query()

Get the query property: KQL query representing the Recommendation results required.

Returns:

the query value.

remediationDescription

public String remediationDescription()

Get the remediationDescription property: The remediation description to relate to the assessments generated by this Recommendation.

Returns:

the remediationDescription value.

securityIssue

public SecurityIssue securityIssue()

Get the securityIssue property: The severity to relate to the assessments generated by this Recommendation.

Returns:

the securityIssue value.

severity

public SeverityEnum severity()

Get the severity property: The severity to relate to the assessments generated by this Recommendation.

Returns:

the severity value.

systemData

public SystemData systemData()

Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.

Returns:

the systemData value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

CustomRecommendationInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

CustomRecommendationInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

withCloudProviders

public CustomRecommendationInner withCloudProviders(List<RecommendationSupportedClouds> cloudProviders)

Set the cloudProviders property: List of all standard supported clouds.

Parameters:

cloudProviders - the cloudProviders value to set.

Returns:

the CustomRecommendationInner object itself.

withDescription

public CustomRecommendationInner withDescription(String description)

Set the description property: The description to relate to the assessments generated by this Recommendation.

Parameters:

description - the description value to set.

Returns:

the CustomRecommendationInner object itself.

withDisplayName

public CustomRecommendationInner withDisplayName(String displayName)

Set the displayName property: The display name of the assessments generated by this Recommendation.

Parameters:

displayName - the displayName value to set.

Returns:

the CustomRecommendationInner object itself.

withQuery

public CustomRecommendationInner withQuery(String query)

Set the query property: KQL query representing the Recommendation results required.

Parameters:

query - the query value to set.

Returns:

the CustomRecommendationInner object itself.

withRemediationDescription

public CustomRecommendationInner withRemediationDescription(String remediationDescription)

Set the remediationDescription property: The remediation description to relate to the assessments generated by this Recommendation.

Parameters:

remediationDescription - the remediationDescription value to set.

Returns:

the CustomRecommendationInner object itself.

withSecurityIssue

public CustomRecommendationInner withSecurityIssue(SecurityIssue securityIssue)

Set the securityIssue property: The severity to relate to the assessments generated by this Recommendation.

Parameters:

securityIssue - the securityIssue value to set.

Returns:

the CustomRecommendationInner object itself.

withSeverity

public CustomRecommendationInner withSeverity(SeverityEnum severity)

Set the severity property: The severity to relate to the assessments generated by this Recommendation.

Parameters:

severity - the severity value to set.

Returns:

the CustomRecommendationInner object itself.

Applies to