Package com.vmware.nsx_policy.model
Class IdsRuleStatistics.Builder
- java.lang.Object
-
- com.vmware.nsx_policy.model.IdsRuleStatistics.Builder
-
- Enclosing class:
- IdsRuleStatistics
public static final class IdsRuleStatistics.Builder extends java.lang.Object
Builder class forIdsRuleStatistics
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Constructor with parameters for the required properties ofIdsRuleStatistics
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IdsRuleStatistics
build()
IdsRuleStatistics.Builder
setByteCount(java.lang.Long byteCount)
Aggregated number of bytes processed by the rule.IdsRuleStatistics.Builder
setHitCount(java.lang.Long hitCount)
Aggregated number of hits received by the rule.IdsRuleStatistics.Builder
setInternalRuleId(java.lang.String internalRuleId)
Realized id of the rule on NSX MP.IdsRuleStatistics.Builder
setL7AcceptCount(java.lang.Long l7AcceptCount)
Aggregated number of L7 Profile Accepted counters received by the rule.IdsRuleStatistics.Builder
setL7RejectCount(java.lang.Long l7RejectCount)
Aggregated number of L7 Profile Rejected counters received by the rule.IdsRuleStatistics.Builder
setL7RejectWithResponseCount(java.lang.Long l7RejectWithResponseCount)
Aggregated number of L7 Profile Rejected with Response counters received by the rule.IdsRuleStatistics.Builder
setLinks(java.util.List<ResourceLink> links)
The server will populate this field when returing the resource.IdsRuleStatistics.Builder
setLrPath(java.lang.String lrPath)
Path of the LR on which the section is applied in case of Edge FW.IdsRuleStatistics.Builder
setMaxPopularityIndex(java.lang.Long maxPopularityIndex)
Maximum value of popularity index of all rules of the type.IdsRuleStatistics.Builder
setMaxSessionCount(java.lang.Long maxSessionCount)
Maximum value of sessions count of all rules of the type.IdsRuleStatistics.Builder
setPacketCount(java.lang.Long packetCount)
Aggregated number of packets processed by the rule.IdsRuleStatistics.Builder
setPopularityIndex(java.lang.Long popularityIndex)
This is calculated by sessions count divided by age of the rule.IdsRuleStatistics.Builder
setRule(java.lang.String rule)
Path of the rule.IdsRuleStatistics.Builder
setSchema(java.lang.String schema)
Schema for this resource This property may be present in responses from the server, but if it is present in a request to server it will be ignored.IdsRuleStatistics.Builder
setSelf(SelfResourceLink self)
IdsRuleStatistics.Builder
setSessionCount(java.lang.Long sessionCount)
Aggregated number of sessions processed by the rule.IdsRuleStatistics.Builder
setTotalSessionCount(java.lang.Long totalSessionCount)
Aggregated number of sessions processed by all the rules This is aggregated statistic which are computed with lower frequency compared to individual generic rule statistics.
-
-
-
Constructor Detail
-
Builder
public Builder()
Constructor with parameters for the required properties ofIdsRuleStatistics
.
-
-
Method Detail
-
setLinks
public IdsRuleStatistics.Builder setLinks(java.util.List<ResourceLink> links)
The server will populate this field when returing the resource. Ignored on PUT and POST. 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:
links
- New value for the property.
-
setSchema
public IdsRuleStatistics.Builder setSchema(java.lang.String schema)
Schema for this resource 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:
schema
- New value for the property.
-
setSelf
public IdsRuleStatistics.Builder setSelf(SelfResourceLink self)
- Parameters:
self
- New value for the property.
-
setByteCount
public IdsRuleStatistics.Builder setByteCount(java.lang.Long byteCount)
Aggregated number of bytes processed by the rule. 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:
byteCount
- New value for the property.
-
setHitCount
public IdsRuleStatistics.Builder setHitCount(java.lang.Long hitCount)
Aggregated number of hits received by the rule. 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:
hitCount
- New value for the property.
-
setInternalRuleId
public IdsRuleStatistics.Builder setInternalRuleId(java.lang.String internalRuleId)
Realized id of the rule on NSX MP. Policy Manager can create more than one rule per policy rule, in which case this identifier helps to distinguish between the multple rules created. 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:
internalRuleId
- New value for the property.
-
setL7AcceptCount
public IdsRuleStatistics.Builder setL7AcceptCount(java.lang.Long l7AcceptCount)
Aggregated number of L7 Profile Accepted counters received by the rule. 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:
l7AcceptCount
- New value for the property.
-
setL7RejectCount
public IdsRuleStatistics.Builder setL7RejectCount(java.lang.Long l7RejectCount)
Aggregated number of L7 Profile Rejected counters received by the rule. 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:
l7RejectCount
- New value for the property.
-
setL7RejectWithResponseCount
public IdsRuleStatistics.Builder setL7RejectWithResponseCount(java.lang.Long l7RejectWithResponseCount)
Aggregated number of L7 Profile Rejected with Response counters received by the rule. 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:
l7RejectWithResponseCount
- New value for the property.
-
setLrPath
public IdsRuleStatistics.Builder setLrPath(java.lang.String lrPath)
Path of the LR on which the section is applied in case of Edge FW. 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:
lrPath
- New value for the property.
-
setMaxPopularityIndex
public IdsRuleStatistics.Builder setMaxPopularityIndex(java.lang.Long maxPopularityIndex)
Maximum value of popularity index of all rules of the type. This is aggregated statistic which are computed with lower frequency compared to individual generic rule statistics. It may have a computation delay up to 15 minutes in response to this API. 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:
maxPopularityIndex
- New value for the property.
-
setMaxSessionCount
public IdsRuleStatistics.Builder setMaxSessionCount(java.lang.Long maxSessionCount)
Maximum value of sessions count of all rules of the type. This is aggregated statistic which are computed with lower frequency compared to generic rule statistics. It may have a computation delay up to 15 minutes in response to this API. 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:
maxSessionCount
- New value for the property.
-
setPacketCount
public IdsRuleStatistics.Builder setPacketCount(java.lang.Long packetCount)
Aggregated number of packets processed by the rule. 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:
packetCount
- New value for the property.
-
setPopularityIndex
public IdsRuleStatistics.Builder setPopularityIndex(java.lang.Long popularityIndex)
This is calculated by sessions count divided by age of the rule. 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:
popularityIndex
- New value for the property.
-
setRule
public IdsRuleStatistics.Builder setRule(java.lang.String rule)
Path of the rule. 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:
rule
- New value for the property.
-
setSessionCount
public IdsRuleStatistics.Builder setSessionCount(java.lang.Long sessionCount)
Aggregated number of sessions processed by the rule. 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:
sessionCount
- New value for the property.
-
setTotalSessionCount
public IdsRuleStatistics.Builder setTotalSessionCount(java.lang.Long totalSessionCount)
Aggregated number of sessions processed by all the rules This is aggregated statistic which are computed with lower frequency compared to individual generic rule statistics. It may have a computation delay up to 15 minutes in response to this API. 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:
totalSessionCount
- New value for the property.
-
build
public IdsRuleStatistics build()
-
-