Class SecurityPostureReference
java.lang.Object
com.azure.resourcemanager.compute.models.SecurityPostureReference
Specifies the security posture to be used for all virtual machines in the scale set. Minimum api-version:
2023-03-01.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of SecurityPostureReference class. -
Method Summary
Modifier and TypeMethodDescriptionGet the excludeExtensions property: List of virtual machine extensions to exclude when applying the Security Posture.id()Get the id property: The security posture reference id in the form of /CommunityGalleries/{communityGalleryName}/securityPostures/{securityPostureName}/versions/{major.minor.patch}|{major.*}|latest.voidvalidate()Validates the instance.withExcludeExtensions(List<VirtualMachineExtensionInner> excludeExtensions) Set the excludeExtensions property: List of virtual machine extensions to exclude when applying the Security Posture.Set the id property: The security posture reference id in the form of /CommunityGalleries/{communityGalleryName}/securityPostures/{securityPostureName}/versions/{major.minor.patch}|{major.*}|latest.
-
Constructor Details
-
SecurityPostureReference
public SecurityPostureReference()Creates an instance of SecurityPostureReference class.
-
-
Method Details
-
id
Get the id property: The security posture reference id in the form of /CommunityGalleries/{communityGalleryName}/securityPostures/{securityPostureName}/versions/{major.minor.patch}|{major.*}|latest.- Returns:
- the id value.
-
withId
Set the id property: The security posture reference id in the form of /CommunityGalleries/{communityGalleryName}/securityPostures/{securityPostureName}/versions/{major.minor.patch}|{major.*}|latest.- Parameters:
id- the id value to set.- Returns:
- the SecurityPostureReference object itself.
-
excludeExtensions
Get the excludeExtensions property: List of virtual machine extensions to exclude when applying the Security Posture.- Returns:
- the excludeExtensions value.
-
withExcludeExtensions
public SecurityPostureReference withExcludeExtensions(List<VirtualMachineExtensionInner> excludeExtensions) Set the excludeExtensions property: List of virtual machine extensions to exclude when applying the Security Posture.- Parameters:
excludeExtensions- the excludeExtensions value to set.- Returns:
- the SecurityPostureReference object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-