SecurityPostureReference Class

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

Implements

public final class SecurityPostureReference
implements JsonSerializable<SecurityPostureReference>

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

Constructor Summary

Constructor Description
SecurityPostureReference()

Creates an instance of SecurityPostureReference 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 SecurityPostureReference fromJson(JsonReader jsonReader)

Reads an instance of SecurityPostureReference 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.

SecurityPostureReference withExcludeExtensions(List<String> excludeExtensions)

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

SecurityPostureReference 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.

SecurityPostureReference 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

SecurityPostureReference

public SecurityPostureReference()

Creates an instance of SecurityPostureReference class.

Method Details

excludeExtensions

public List 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 SecurityPostureReference fromJson(JsonReader jsonReader)

Reads an instance of SecurityPostureReference from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of SecurityPostureReference 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: 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 SecurityPostureReference withExcludeExtensions(List 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 SecurityPostureReference object itself.

withId

public SecurityPostureReference 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 SecurityPostureReference object itself.

withIsOverridable

public SecurityPostureReference 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 SecurityPostureReference object itself.

Applies to