Class SecurityPostureReference

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

public final class SecurityPostureReference extends Object
Specifies the security posture to be used for all virtual machines in the scale set. Minimum api-version: 2023-03-01.
  • Constructor Details

    • SecurityPostureReference

      public SecurityPostureReference()
      Creates an instance of SecurityPostureReference class.
  • Method Details

    • 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}|{major.*}|latest.
      Returns:
      the id value.
    • 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}|{major.*}|latest.
      Parameters:
      id - the id value to set.
      Returns:
      the SecurityPostureReference object itself.
    • excludeExtensions

      public List<VirtualMachineExtensionInner> 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.