SecurityPostureReferenceUpdate Class

  • java.lang.Object
    • com.azure.resourcemanager.compute.models.SecurityPostureReferenceUpdate

Implements

public final class SecurityPostureReferenceUpdate
implements JsonSerializable<SecurityPostureReferenceUpdate>

Specifies the security posture to be used in the scale set. Minimum api-version: 2023-03-01.

Constructor Summary

Constructor Description
SecurityPostureReferenceUpdate()

Creates an instance of SecurityPostureReferenceUpdate class.

Method Summary

Modifier and Type Method and Description
List<String> excludeExtensions()

Get the excludeExtensions property: The list of virtual machine extension names to exclude when applying the security posture.

static SecurityPostureReferenceUpdate fromJson(JsonReader jsonReader)

Reads an instance of SecurityPostureReferenceUpdate from the JsonReader.

String id()

Get the id property: The security posture reference id in the form of /CommunityGalleries/{communityGalleryName}/securityPostures/{securityPostureName}/versions/{major.minor.patch}|latest.

Boolean isOverridable()

Get the isOverridable property: Whether the security posture can be overridden by the user.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

SecurityPostureReferenceUpdate withExcludeExtensions(List<String> excludeExtensions)

Set the excludeExtensions property: The list of virtual machine extension names to exclude when applying the security posture.

SecurityPostureReferenceUpdate withId(String id)

Set the id property: The security posture reference id in the form of /CommunityGalleries/{communityGalleryName}/securityPostures/{securityPostureName}/versions/{major.minor.patch}|latest.

SecurityPostureReferenceUpdate withIsOverridable(Boolean isOverridable)

Set the isOverridable property: Whether the security posture can be overridden by the user.

Methods inherited from java.lang.Object

Constructor Details

SecurityPostureReferenceUpdate

public SecurityPostureReferenceUpdate()

Creates an instance of SecurityPostureReferenceUpdate class.

Method Details

excludeExtensions

public List<String> excludeExtensions()

Get the excludeExtensions property: The list of virtual machine extension names to exclude when applying the security posture.

Returns:

the excludeExtensions value.

fromJson

public static SecurityPostureReferenceUpdate fromJson(JsonReader jsonReader)

Reads an instance of SecurityPostureReferenceUpdate from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

id

public String id()

Get the id property: The security posture reference id in the form of /CommunityGalleries/{communityGalleryName}/securityPostures/{securityPostureName}/versions/{major.minor.patch}|latest.

Returns:

the id value.

isOverridable

public Boolean isOverridable()

Get the isOverridable property: Whether the security posture can be overridden by the user.

Returns:

the isOverridable value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withExcludeExtensions

public SecurityPostureReferenceUpdate withExcludeExtensions(List<String> excludeExtensions)

Set the excludeExtensions property: The list of virtual machine extension names to exclude when applying the security posture.

Parameters:

excludeExtensions - the excludeExtensions value to set.

Returns:

the SecurityPostureReferenceUpdate object itself.

withId

public SecurityPostureReferenceUpdate withId(String id)

Set the id property: The security posture reference id in the form of /CommunityGalleries/{communityGalleryName}/securityPostures/{securityPostureName}/versions/{major.minor.patch}|latest.

Parameters:

id - the id value to set.

Returns:

the SecurityPostureReferenceUpdate object itself.

withIsOverridable

public SecurityPostureReferenceUpdate withIsOverridable(Boolean isOverridable)

Set the isOverridable property: Whether the security posture can be overridden by the user.

Parameters:

isOverridable - the isOverridable value to set.

Returns:

the SecurityPostureReferenceUpdate object itself.

Applies to