public class BashPolicy extends AbstractModel
header, skipSign
Constructor and Description |
---|
BashPolicy() |
BashPolicy(BashPolicy source)
NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
|
Modifier and Type | Method and Description |
---|---|
Long |
getBashAction()
Get 0: alarm; 1: allowlist; 2: intercept
|
Long |
getCategory()
Get Policy type: 0 - system; 1 - user
|
String |
getCreateTime()
Get Creation time
|
Long |
getDealOldEvents()
Get Whether to process old events as allowlisted ones: 0 - no; 1 - yes
Note: This field may return null, indicating that no valid values can be obtained.
|
String |
getDescript()
Get Policy description
Note: This field may return null, indicating that no valid values can be obtained.
|
Long |
getEnable()
Get 1: valid; 0: invalid
|
Long |
getEventId()
Get When it is added to the allowlist, the EventId needs to be passed in.Note: This field may return null, indicating that no valid values can be obtained.
|
Long |
getId()
Get Policy ID
|
Long |
getLevel()
Get Risk level (0: none; 1: high-risk; 2: medium-risk; 3: low-risk)
|
String |
getModifyTime()
Get Modification time
|
String |
getName()
Get Policy name
|
String[] |
getQuuids()
Get A collection of QUUIDs for effective hosts
Note: This field may return null, indicating that no valid values can be obtained.
|
String |
getRule()
Get Regular expression
|
Long |
getScope()
Get Effective scope (0: a group of QUUID; 1: all professional editions (including ultimate edition); 2: all ultimate editions; 3: all hosts)
|
String[] |
getUuids()
Get Compatibility with older versions may be needed.
|
Long |
getWhite()
Get 0: blocklist; 1: allowlist
|
void |
setBashAction(Long BashAction)
Set 0: alarm; 1: allowlist; 2: intercept
|
void |
setCategory(Long Category)
Set Policy type: 0 - system; 1 - user
|
void |
setCreateTime(String CreateTime)
Set Creation time
|
void |
setDealOldEvents(Long DealOldEvents)
Set Whether to process old events as allowlisted ones: 0 - no; 1 - yes
Note: This field may return null, indicating that no valid values can be obtained.
|
void |
setDescript(String Descript)
Set Policy description
Note: This field may return null, indicating that no valid values can be obtained.
|
void |
setEnable(Long Enable)
Set 1: valid; 0: invalid
|
void |
setEventId(Long EventId)
Set When it is added to the allowlist, the EventId needs to be passed in.Note: This field may return null, indicating that no valid values can be obtained.
|
void |
setId(Long Id)
Set Policy ID
|
void |
setLevel(Long Level)
Set Risk level (0: none; 1: high-risk; 2: medium-risk; 3: low-risk)
|
void |
setModifyTime(String ModifyTime)
Set Modification time
|
void |
setName(String Name)
Set Policy name
|
void |
setQuuids(String[] Quuids)
Set A collection of QUUIDs for effective hosts
Note: This field may return null, indicating that no valid values can be obtained.
|
void |
setRule(String Rule)
Set Regular expression
|
void |
setScope(Long Scope)
Set Effective scope (0: a group of QUUID; 1: all professional editions (including ultimate edition); 2: all ultimate editions; 3: all hosts)
|
void |
setUuids(String[] Uuids)
Set Compatibility with older versions may be needed.
|
void |
setWhite(Long White)
Set 0: blocklist; 1: allowlist
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
public BashPolicy()
public BashPolicy(BashPolicy source)
public String getName()
public void setName(String Name)
Name
- Policy namepublic Long getEnable()
public void setEnable(Long Enable)
Enable
- 1: valid; 0: invalidpublic Long getWhite()
public void setWhite(Long White)
White
- 0: blocklist; 1: allowlistpublic Long getBashAction()
public void setBashAction(Long BashAction)
BashAction
- 0: alarm; 1: allowlist; 2: interceptpublic String getRule()
public void setRule(String Rule)
Rule
- Regular expressionpublic Long getLevel()
public void setLevel(Long Level)
Level
- Risk level (0: none; 1: high-risk; 2: medium-risk; 3: low-risk)public Long getScope()
public void setScope(Long Scope)
Scope
- Effective scope (0: a group of QUUID; 1: all professional editions (including ultimate edition); 2: all ultimate editions; 3: all hosts)public Long getId()
public void setId(Long Id)
Id
- Policy IDpublic String getDescript()
public void setDescript(String Descript)
Descript
- Policy description
Note: This field may return null, indicating that no valid values can be obtained.public Long getEventId()
public void setEventId(Long EventId)
EventId
- When it is added to the allowlist, the EventId needs to be passed in.Note: This field may return null, indicating that no valid values can be obtained.public Long getDealOldEvents()
public void setDealOldEvents(Long DealOldEvents)
DealOldEvents
- Whether to process old events as allowlisted ones: 0 - no; 1 - yes
Note: This field may return null, indicating that no valid values can be obtained.public String[] getQuuids()
public void setQuuids(String[] Quuids)
Quuids
- A collection of QUUIDs for effective hosts
Note: This field may return null, indicating that no valid values can be obtained.public Long getCategory()
public void setCategory(Long Category)
Category
- Policy type: 0 - system; 1 - userpublic String getCreateTime()
public void setCreateTime(String CreateTime)
CreateTime
- Creation timepublic String getModifyTime()
public void setModifyTime(String ModifyTime)
ModifyTime
- Modification timepublic String[] getUuids()
public void setUuids(String[] Uuids)
Uuids
- Compatibility with older versions may be needed.Copyright © 2024. All rights reserved.