com.aliyun.dms_enterprise20181101.models.ListInstanceLoginAuditLogResponseBody Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dms_enterprise20181101 Show documentation
Show all versions of dms_enterprise20181101 Show documentation
Alibaba Cloud dms-enterprise (20181101) SDK for Java
The newest version!
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.dms_enterprise20181101.models;
import com.aliyun.tea.*;
public class ListInstanceLoginAuditLogResponseBody extends TeaModel {
/**
* The error code returned.
*
* example:
* InvalidPageSize
*/
@NameInMap("ErrorCode")
public String errorCode;
/**
* The error message returned.
*
* example:
* Specified parameter PageSize is not valid.
*/
@NameInMap("ErrorMessage")
public String errorMessage;
/**
* The logon records of the instance.
*/
@NameInMap("InstanceLoginAuditLogList")
public ListInstanceLoginAuditLogResponseBodyInstanceLoginAuditLogList instanceLoginAuditLogList;
/**
* The ID of the request.
*
* example:
* 074CE7C9-4F9C-5B62-89BC-7B4914A3****
*/
@NameInMap("RequestId")
public String requestId;
/**
* Indicates whether the request was successful. Valid values:
*
* - true: The request was successful.
* - false: The request failed.
*
*
* example:
* true
*/
@NameInMap("Success")
public Boolean success;
/**
* The number of entries returned.
*
* example:
* 1
*/
@NameInMap("TotalCount")
public Long totalCount;
public static ListInstanceLoginAuditLogResponseBody build(java.util.Map map) throws Exception {
ListInstanceLoginAuditLogResponseBody self = new ListInstanceLoginAuditLogResponseBody();
return TeaModel.build(map, self);
}
public ListInstanceLoginAuditLogResponseBody setErrorCode(String errorCode) {
this.errorCode = errorCode;
return this;
}
public String getErrorCode() {
return this.errorCode;
}
public ListInstanceLoginAuditLogResponseBody setErrorMessage(String errorMessage) {
this.errorMessage = errorMessage;
return this;
}
public String getErrorMessage() {
return this.errorMessage;
}
public ListInstanceLoginAuditLogResponseBody setInstanceLoginAuditLogList(ListInstanceLoginAuditLogResponseBodyInstanceLoginAuditLogList instanceLoginAuditLogList) {
this.instanceLoginAuditLogList = instanceLoginAuditLogList;
return this;
}
public ListInstanceLoginAuditLogResponseBodyInstanceLoginAuditLogList getInstanceLoginAuditLogList() {
return this.instanceLoginAuditLogList;
}
public ListInstanceLoginAuditLogResponseBody setRequestId(String requestId) {
this.requestId = requestId;
return this;
}
public String getRequestId() {
return this.requestId;
}
public ListInstanceLoginAuditLogResponseBody setSuccess(Boolean success) {
this.success = success;
return this;
}
public Boolean getSuccess() {
return this.success;
}
public ListInstanceLoginAuditLogResponseBody setTotalCount(Long totalCount) {
this.totalCount = totalCount;
return this;
}
public Long getTotalCount() {
return this.totalCount;
}
public static class ListInstanceLoginAuditLogResponseBodyInstanceLoginAuditLogListInstanceLoginAuditLog extends TeaModel {
/**
* The database account that is used to log on to the instance.
*
* example:
* test_User
*/
@NameInMap("DbUser")
public String dbUser;
/**
* The ID of the instance.
*
* example:
* 177****
*/
@NameInMap("InstanceId")
public Long instanceId;
/**
* The name of the instance.
*
* example:
* rm-bp144d5ky4l4rli0417****.mysql.rds.aliyuncs.com:3306[rm-bp144d5ky4l4r****]
*/
@NameInMap("InstanceName")
public String instanceName;
/**
* The time when the user performed an operation on the instance.
*
* example:
* 2021-11-18 11:13:26
*/
@NameInMap("OpTime")
public String opTime;
/**
* The source IP address of the request.
*
* example:
* 117.36.XX.XX,100.104.XX.XX
*/
@NameInMap("RequestIp")
public String requestIp;
/**
* The ID of the user.
*
* example:
* 12****
*/
@NameInMap("UserId")
public Long userId;
/**
* The alias of the user.
*
* example:
* test_UserName
*/
@NameInMap("UserName")
public String userName;
public static ListInstanceLoginAuditLogResponseBodyInstanceLoginAuditLogListInstanceLoginAuditLog build(java.util.Map map) throws Exception {
ListInstanceLoginAuditLogResponseBodyInstanceLoginAuditLogListInstanceLoginAuditLog self = new ListInstanceLoginAuditLogResponseBodyInstanceLoginAuditLogListInstanceLoginAuditLog();
return TeaModel.build(map, self);
}
public ListInstanceLoginAuditLogResponseBodyInstanceLoginAuditLogListInstanceLoginAuditLog setDbUser(String dbUser) {
this.dbUser = dbUser;
return this;
}
public String getDbUser() {
return this.dbUser;
}
public ListInstanceLoginAuditLogResponseBodyInstanceLoginAuditLogListInstanceLoginAuditLog setInstanceId(Long instanceId) {
this.instanceId = instanceId;
return this;
}
public Long getInstanceId() {
return this.instanceId;
}
public ListInstanceLoginAuditLogResponseBodyInstanceLoginAuditLogListInstanceLoginAuditLog setInstanceName(String instanceName) {
this.instanceName = instanceName;
return this;
}
public String getInstanceName() {
return this.instanceName;
}
public ListInstanceLoginAuditLogResponseBodyInstanceLoginAuditLogListInstanceLoginAuditLog setOpTime(String opTime) {
this.opTime = opTime;
return this;
}
public String getOpTime() {
return this.opTime;
}
public ListInstanceLoginAuditLogResponseBodyInstanceLoginAuditLogListInstanceLoginAuditLog setRequestIp(String requestIp) {
this.requestIp = requestIp;
return this;
}
public String getRequestIp() {
return this.requestIp;
}
public ListInstanceLoginAuditLogResponseBodyInstanceLoginAuditLogListInstanceLoginAuditLog setUserId(Long userId) {
this.userId = userId;
return this;
}
public Long getUserId() {
return this.userId;
}
public ListInstanceLoginAuditLogResponseBodyInstanceLoginAuditLogListInstanceLoginAuditLog setUserName(String userName) {
this.userName = userName;
return this;
}
public String getUserName() {
return this.userName;
}
}
public static class ListInstanceLoginAuditLogResponseBodyInstanceLoginAuditLogList extends TeaModel {
@NameInMap("InstanceLoginAuditLog")
public java.util.List instanceLoginAuditLog;
public static ListInstanceLoginAuditLogResponseBodyInstanceLoginAuditLogList build(java.util.Map map) throws Exception {
ListInstanceLoginAuditLogResponseBodyInstanceLoginAuditLogList self = new ListInstanceLoginAuditLogResponseBodyInstanceLoginAuditLogList();
return TeaModel.build(map, self);
}
public ListInstanceLoginAuditLogResponseBodyInstanceLoginAuditLogList setInstanceLoginAuditLog(java.util.List instanceLoginAuditLog) {
this.instanceLoginAuditLog = instanceLoginAuditLog;
return this;
}
public java.util.List getInstanceLoginAuditLog() {
return this.instanceLoginAuditLog;
}
}
}