public static final class GetVulWhitelistResponseBody.VulWhitelist.Builder extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
GetVulWhitelistResponseBody.VulWhitelist.Builder |
aliasName(String aliasName)
The alias of the vulnerability.
|
GetVulWhitelistResponseBody.VulWhitelist |
build() |
GetVulWhitelistResponseBody.VulWhitelist.Builder |
id(Long id)
The ID of the whitelist.
|
GetVulWhitelistResponseBody.VulWhitelist.Builder |
name(String name)
The name of the vulnerability.
|
GetVulWhitelistResponseBody.VulWhitelist.Builder |
reason(String reason)
The reason why the vulnerability is added to the whitelist.
|
GetVulWhitelistResponseBody.VulWhitelist.Builder |
target(String target)
The application scope of the rule.
|
GetVulWhitelistResponseBody.VulWhitelist.Builder |
type(String type)
The type of the vulnerability.
|
GetVulWhitelistResponseBody.VulWhitelist.Builder |
whitelist(String whitelist)
The information about the vulnerability that is added to the whitelist.
|
public GetVulWhitelistResponseBody.VulWhitelist.Builder aliasName(String aliasName)
The alias of the vulnerability.
example:RHSA-2017:3263: curl security update
public GetVulWhitelistResponseBody.VulWhitelist.Builder id(Long id)
The ID of the whitelist.
example:1275
public GetVulWhitelistResponseBody.VulWhitelist.Builder name(String name)
The name of the vulnerability.
example:oval:com.redhat.rhsa:def:20173263
public GetVulWhitelistResponseBody.VulWhitelist.Builder reason(String reason)
The reason why the vulnerability is added to the whitelist.
example:Ignore
public GetVulWhitelistResponseBody.VulWhitelist.Builder target(String target)
The application scope of the rule. The value is a JSON string that contains the following fields:
type: the type of the assets to which the rule is applied. Valid values:
groupIds: the ID of the server group
uuids: the UUID of the server
example:If this parameter is empty, the rule is applied to all types of assets.
{ "type": "GroupId", "uuids": [], "groupIds": [ 10782678 ] }
public GetVulWhitelistResponseBody.VulWhitelist.Builder type(String type)
The type of the vulnerability.
example:cve
public GetVulWhitelistResponseBody.VulWhitelist.Builder whitelist(String whitelist)
The information about the vulnerability that is added to the whitelist. The value is a JSON string that contains the following fields:
Name: the name of the vulnerability.
Type: the type of the vulnerability. Valid values:
AliasName: the alias of the vulnerability.
[ { "Name": "oval:com.redhat.rhsa:def:20173263", "Type": "cve", "AliasName": "RHSA-2017:3263: curl security update" } ]
public GetVulWhitelistResponseBody.VulWhitelist build()
Copyright © 2026. All rights reserved.