AzureServersSetting Class

public final class AzureServersSetting
extends ServerVulnerabilityAssessmentsSettingInner

A vulnerability assessments setting on Azure servers in the defined scope.

Constructor Summary

Constructor Description
AzureServersSetting()

Creates an instance of AzureServersSetting class.

Method Summary

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

Reads an instance of AzureServersSetting from the JsonReader.

String id()

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

ServerVulnerabilityAssessmentsSettingKind kind()

Get the kind property: The kind of the server vulnerability assessments setting.

String name()

Get the name property: The name of the resource.

ServerVulnerabilityAssessmentsAzureSettingSelectedProvider selectedProvider()

Get the selectedProvider property: The selected vulnerability assessments provider on Azure servers in the defined scope.

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.

AzureServersSetting withProperties(ServerVulnerabilityAssessmentsSettingProperties properties)

Set the properties property: The resource-specific properties for this resource.

AzureServersSetting withSelectedProvider(ServerVulnerabilityAssessmentsAzureSettingSelectedProvider selectedProvider)

Set the selectedProvider property: The selected vulnerability assessments provider on Azure servers in the defined scope.

Methods inherited from ServerVulnerabilityAssessmentsSettingInner

Methods inherited from java.lang.Object

Constructor Details

AzureServersSetting

public AzureServersSetting()

Creates an instance of AzureServersSetting class.

Method Details

fromJson

public static AzureServersSetting fromJson(JsonReader jsonReader)

Reads an instance of AzureServersSetting from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of AzureServersSetting 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:

AzureServersSetting.id()

Returns:

the id value.

kind

public ServerVulnerabilityAssessmentsSettingKind kind()

Get the kind property: The kind of the server vulnerability assessments setting.

Overrides:

AzureServersSetting.kind()

Returns:

the kind value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

AzureServersSetting.name()

Returns:

the name value.

selectedProvider

public ServerVulnerabilityAssessmentsAzureSettingSelectedProvider selectedProvider()

Get the selectedProvider property: The selected vulnerability assessments provider on Azure servers in the defined scope.

Returns:

the selectedProvider value.

systemData

public SystemData systemData()

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

Overrides:

AzureServersSetting.systemData()

Returns:

the systemData value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

AzureServersSetting.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

AzureServersSetting.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

Overrides:

AzureServersSetting.validate()

withProperties

public AzureServersSetting withProperties(ServerVulnerabilityAssessmentsSettingProperties properties)

Set the properties property: The resource-specific properties for this resource.

Overrides:

AzureServersSetting.withProperties(ServerVulnerabilityAssessmentsSettingProperties properties)

Parameters:

properties

withSelectedProvider

public AzureServersSetting withSelectedProvider(ServerVulnerabilityAssessmentsAzureSettingSelectedProvider selectedProvider)

Set the selectedProvider property: The selected vulnerability assessments provider on Azure servers in the defined scope.

Parameters:

selectedProvider - the selectedProvider value to set.

Returns:

the AzureServersSetting object itself.

Applies to