public class ChangeSqlSwitchBody extends Object
| Constructor and Description |
|---|
ChangeSqlSwitchBody() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
String |
getDatastoreType()
数据库类型。当前全量SQL支持的数据库类型包括MySQL和GaussDB(for MySQL),慢SQL支持的类型:MySQL、GaussDB(for MySQL)、PostgreSQL。
|
Long |
getRetentionDays()
SQL数据保存时长(天)。默认为7天,最长可保留30天,到期后数据自动删除。如果要保留30天以上,请到DAS页面进行操作。
|
Integer |
getStatus()
开关状态,取值0和1,分别代表要关闭和开启。
|
String |
getType()
开关类型。取值DAS SQL Explorer和DAS Slow Query Log,分别表示DAS收集全量SQL开关和DAS收集慢SQL开关。
|
int |
hashCode() |
void |
setDatastoreType(String datastoreType) |
void |
setRetentionDays(Long retentionDays) |
void |
setStatus(Integer status) |
void |
setType(String type) |
String |
toString() |
ChangeSqlSwitchBody |
withDatastoreType(String datastoreType) |
ChangeSqlSwitchBody |
withRetentionDays(Long retentionDays) |
ChangeSqlSwitchBody |
withStatus(Integer status) |
ChangeSqlSwitchBody |
withType(String type) |
public ChangeSqlSwitchBody withType(String type)
public String getType()
public void setType(String type)
public ChangeSqlSwitchBody withStatus(Integer status)
public Integer getStatus()
public void setStatus(Integer status)
public ChangeSqlSwitchBody withDatastoreType(String datastoreType)
public String getDatastoreType()
public void setDatastoreType(String datastoreType)
public ChangeSqlSwitchBody withRetentionDays(Long retentionDays)
public Long getRetentionDays()
public void setRetentionDays(Long retentionDays)
Copyright © 2022. All rights reserved.