Package com.vmware.nsx_policy.model
Class PolicyIdsEventsBySignature.Builder
- java.lang.Object
-
- com.vmware.nsx_policy.model.PolicyIdsEventsBySignature.Builder
-
- Enclosing class:
- PolicyIdsEventsBySignature
public static final class PolicyIdsEventsBySignature.Builder extends java.lang.Object
Builder class forPolicyIdsEventsBySignature
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Constructor with parameters for the required properties ofPolicyIdsEventsBySignature
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PolicyIdsEventsBySignature
build()
PolicyIdsEventsBySignature.Builder
setCount(java.lang.Long count)
Number of times this particular signature was detected.PolicyIdsEventsBySignature.Builder
setFirstOccurence(java.lang.Long firstOccurence)
First occurence of the intrusion, in epoch milliseconds.PolicyIdsEventsBySignature.Builder
setFirstOccurrenceSite(java.lang.String firstOccurrenceSite)
The site at which the intrusion first occurred.PolicyIdsEventsBySignature.Builder
setIsOngoing(java.lang.Boolean isOngoing)
Flag indicating an ongoing intrusion.PolicyIdsEventsBySignature.Builder
setProjectId(java.lang.String projectId)
Project Identifier This property may be present in responses from the server, but if it is present in a request to server it will be ignored.PolicyIdsEventsBySignature.Builder
setProjectPath(java.lang.String projectPath)
Project path This property may be present in responses from the server, but if it is present in a request to server it will be ignored.PolicyIdsEventsBySignature.Builder
setResourceType(java.lang.String resourceType)
IDSEvent resource type.PolicyIdsEventsBySignature.Builder
setSeverity(java.lang.String severity)
Severity of the threat covered by the signature, can be Critical, High, Medium, or Low.PolicyIdsEventsBySignature.Builder
setSignatureId(java.lang.Long signatureId)
Signature ID pertaining to the detected intrusion.PolicyIdsEventsBySignature.Builder
setSignatureName(java.lang.String signatureName)
Name of the signature pertaining to the detected intrusion.PolicyIdsEventsBySignature.Builder
setSitesOccurred(java.util.List<java.lang.String> sitesOccurred)
The sites at which the intrusion occurred.PolicyIdsEventsBySignature.Builder
setTrafficType(java.lang.String trafficType)
Possible values are:PolicyIdsEventsBySignature.TRAFFIC_TYPE_GATEWAY
PolicyIdsEventsBySignature.TRAFFIC_TYPE_HOST
The source where the intrusion was detected.
-
-
-
Constructor Detail
-
Builder
public Builder()
Constructor with parameters for the required properties ofPolicyIdsEventsBySignature
.
-
-
Method Detail
-
setCount
public PolicyIdsEventsBySignature.Builder setCount(java.lang.Long count)
Number of times this particular signature was detected. format: int64 This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
count
- New value for the property.
-
setFirstOccurence
public PolicyIdsEventsBySignature.Builder setFirstOccurence(java.lang.Long firstOccurence)
First occurence of the intrusion, in epoch milliseconds. format: int64 This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
firstOccurence
- New value for the property.
-
setFirstOccurrenceSite
public PolicyIdsEventsBySignature.Builder setFirstOccurrenceSite(java.lang.String firstOccurrenceSite)
The site at which the intrusion first occurred. This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
firstOccurrenceSite
- New value for the property.
-
setIsOngoing
public PolicyIdsEventsBySignature.Builder setIsOngoing(java.lang.Boolean isOngoing)
Flag indicating an ongoing intrusion. This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
isOngoing
- New value for the property.
-
setProjectId
public PolicyIdsEventsBySignature.Builder setProjectId(java.lang.String projectId)
Project Identifier This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
projectId
- New value for the property.
-
setProjectPath
public PolicyIdsEventsBySignature.Builder setProjectPath(java.lang.String projectPath)
Project path This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
projectPath
- New value for the property.
-
setResourceType
public PolicyIdsEventsBySignature.Builder setResourceType(java.lang.String resourceType)
IDSEvent resource type. This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
resourceType
- New value for the property.
-
setSeverity
public PolicyIdsEventsBySignature.Builder setSeverity(java.lang.String severity)
Severity of the threat covered by the signature, can be Critical, High, Medium, or Low. This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
severity
- New value for the property.
-
setSignatureId
public PolicyIdsEventsBySignature.Builder setSignatureId(java.lang.Long signatureId)
Signature ID pertaining to the detected intrusion. format: int64 This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
signatureId
- New value for the property.
-
setSignatureName
public PolicyIdsEventsBySignature.Builder setSignatureName(java.lang.String signatureName)
Name of the signature pertaining to the detected intrusion. This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
signatureName
- New value for the property.
-
setSitesOccurred
public PolicyIdsEventsBySignature.Builder setSitesOccurred(java.util.List<java.lang.String> sitesOccurred)
The sites at which the intrusion occurred. This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
sitesOccurred
- New value for the property.
-
setTrafficType
public PolicyIdsEventsBySignature.Builder setTrafficType(java.lang.String trafficType)
Possible values are: The source where the intrusion was detected. Possible values are GATEWAY and HOST. This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
trafficType
- New value for the property.
-
build
public PolicyIdsEventsBySignature build()
-
-