SecurityPostureReference Class
- java.
lang. Object - com.
azure. resourcemanager. compute. models. SecurityPostureReference
- com.
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 Security |
Method Summary
Modifier and Type | Method and Description |
---|---|
List<String> |
excludeExtensions()
Get the exclude |
static
Security |
fromJson(JsonReader jsonReader)
Reads an instance of Security |
String |
id()
Get the id property: The security posture reference id in the form of /Community |
Boolean |
isOverridable()
Get the is |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Security |
withExcludeExtensions(List<String> excludeExtensions)
Set the exclude |
Security |
withId(String id)
Set the id property: The security posture reference id in the form of /Community |
Security |
withIsOverridable(Boolean isOverridable)
Set the is |
Methods inherited from java.lang.Object
Constructor Details
SecurityPostureReference
public SecurityPostureReference()
Creates an instance of SecurityPostureReference class.
Method Details
excludeExtensions
public List
Get the excludeExtensions property: The list of virtual machine extension names to exclude when applying the security posture.
Returns:
fromJson
public static SecurityPostureReference fromJson(JsonReader jsonReader)
Reads an instance of SecurityPostureReference from the JsonReader.
Parameters:
Returns:
Throws:
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:
isOverridable
public Boolean isOverridable()
Get the isOverridable property: Whether the security posture can be overridden by the user.
Returns:
toJson
validate
public void validate()
Validates the instance.
withExcludeExtensions
public SecurityPostureReference withExcludeExtensions(List
Set the excludeExtensions property: The list of virtual machine extension names to exclude when applying the security posture.
Parameters:
Returns:
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:
Returns:
withIsOverridable
public SecurityPostureReference withIsOverridable(Boolean isOverridable)
Set the isOverridable property: Whether the security posture can be overridden by the user.
Parameters:
Returns:
Applies to
Azure SDK for Java