|
| 1 | +// This file is auto-generated, don't edit it. Thanks. |
| 2 | +package com.aliyun.sdk.service.polardb20170801.models; |
| 3 | + |
| 4 | +import com.aliyun.sdk.gateway.pop.*; |
| 5 | +import darabonba.core.*; |
| 6 | +import darabonba.core.async.*; |
| 7 | +import darabonba.core.sync.*; |
| 8 | +import darabonba.core.client.*; |
| 9 | +import darabonba.core.RequestModel; |
| 10 | +import darabonba.core.TeaModel; |
| 11 | +import com.aliyun.sdk.gateway.pop.models.*; |
| 12 | + |
| 13 | +/** |
| 14 | + * |
| 15 | + * {@link DescribeHALogsRequest} extends {@link RequestModel} |
| 16 | + * |
| 17 | + * <p>DescribeHALogsRequest</p> |
| 18 | + */ |
| 19 | +public class DescribeHALogsRequest extends Request { |
| 20 | + @com.aliyun.core.annotation.Query |
| 21 | + @com.aliyun.core.annotation.NameInMap("DBClusterId") |
| 22 | + @com.aliyun.core.annotation.Validation(required = true) |
| 23 | + private String DBClusterId; |
| 24 | + |
| 25 | + @com.aliyun.core.annotation.Query |
| 26 | + @com.aliyun.core.annotation.NameInMap("DBNodeId") |
| 27 | + private String DBNodeId; |
| 28 | + |
| 29 | + @com.aliyun.core.annotation.Query |
| 30 | + @com.aliyun.core.annotation.NameInMap("EndTime") |
| 31 | + private String endTime; |
| 32 | + |
| 33 | + @com.aliyun.core.annotation.Query |
| 34 | + @com.aliyun.core.annotation.NameInMap("LogType") |
| 35 | + @com.aliyun.core.annotation.Validation(required = true) |
| 36 | + private String logType; |
| 37 | + |
| 38 | + @com.aliyun.core.annotation.Query |
| 39 | + @com.aliyun.core.annotation.NameInMap("PageNumber") |
| 40 | + private Integer pageNumber; |
| 41 | + |
| 42 | + @com.aliyun.core.annotation.Query |
| 43 | + @com.aliyun.core.annotation.NameInMap("PageSize") |
| 44 | + private Integer pageSize; |
| 45 | + |
| 46 | + @com.aliyun.core.annotation.Query |
| 47 | + @com.aliyun.core.annotation.NameInMap("StartTime") |
| 48 | + private String startTime; |
| 49 | + |
| 50 | + private DescribeHALogsRequest(Builder builder) { |
| 51 | + super(builder); |
| 52 | + this.DBClusterId = builder.DBClusterId; |
| 53 | + this.DBNodeId = builder.DBNodeId; |
| 54 | + this.endTime = builder.endTime; |
| 55 | + this.logType = builder.logType; |
| 56 | + this.pageNumber = builder.pageNumber; |
| 57 | + this.pageSize = builder.pageSize; |
| 58 | + this.startTime = builder.startTime; |
| 59 | + } |
| 60 | + |
| 61 | + public static Builder builder() { |
| 62 | + return new Builder(); |
| 63 | + } |
| 64 | + |
| 65 | + public static DescribeHALogsRequest create() { |
| 66 | + return builder().build(); |
| 67 | + } |
| 68 | + |
| 69 | +@Override |
| 70 | + public Builder toBuilder() { |
| 71 | + return new Builder(this); |
| 72 | + } |
| 73 | + |
| 74 | + /** |
| 75 | + * @return DBClusterId |
| 76 | + */ |
| 77 | + public String getDBClusterId() { |
| 78 | + return this.DBClusterId; |
| 79 | + } |
| 80 | + |
| 81 | + /** |
| 82 | + * @return DBNodeId |
| 83 | + */ |
| 84 | + public String getDBNodeId() { |
| 85 | + return this.DBNodeId; |
| 86 | + } |
| 87 | + |
| 88 | + /** |
| 89 | + * @return endTime |
| 90 | + */ |
| 91 | + public String getEndTime() { |
| 92 | + return this.endTime; |
| 93 | + } |
| 94 | + |
| 95 | + /** |
| 96 | + * @return logType |
| 97 | + */ |
| 98 | + public String getLogType() { |
| 99 | + return this.logType; |
| 100 | + } |
| 101 | + |
| 102 | + /** |
| 103 | + * @return pageNumber |
| 104 | + */ |
| 105 | + public Integer getPageNumber() { |
| 106 | + return this.pageNumber; |
| 107 | + } |
| 108 | + |
| 109 | + /** |
| 110 | + * @return pageSize |
| 111 | + */ |
| 112 | + public Integer getPageSize() { |
| 113 | + return this.pageSize; |
| 114 | + } |
| 115 | + |
| 116 | + /** |
| 117 | + * @return startTime |
| 118 | + */ |
| 119 | + public String getStartTime() { |
| 120 | + return this.startTime; |
| 121 | + } |
| 122 | + |
| 123 | + public static final class Builder extends Request.Builder<DescribeHALogsRequest, Builder> { |
| 124 | + private String DBClusterId; |
| 125 | + private String DBNodeId; |
| 126 | + private String endTime; |
| 127 | + private String logType; |
| 128 | + private Integer pageNumber; |
| 129 | + private Integer pageSize; |
| 130 | + private String startTime; |
| 131 | + |
| 132 | + private Builder() { |
| 133 | + super(); |
| 134 | + } |
| 135 | + |
| 136 | + private Builder(DescribeHALogsRequest request) { |
| 137 | + super(request); |
| 138 | + this.DBClusterId = request.DBClusterId; |
| 139 | + this.DBNodeId = request.DBNodeId; |
| 140 | + this.endTime = request.endTime; |
| 141 | + this.logType = request.logType; |
| 142 | + this.pageNumber = request.pageNumber; |
| 143 | + this.pageSize = request.pageSize; |
| 144 | + this.startTime = request.startTime; |
| 145 | + } |
| 146 | + |
| 147 | + /** |
| 148 | + * <p>This parameter is required.</p> |
| 149 | + * |
| 150 | + * <strong>example:</strong> |
| 151 | + * <p>pc-****************</p> |
| 152 | + */ |
| 153 | + public Builder DBClusterId(String DBClusterId) { |
| 154 | + this.putQueryParameter("DBClusterId", DBClusterId); |
| 155 | + this.DBClusterId = DBClusterId; |
| 156 | + return this; |
| 157 | + } |
| 158 | + |
| 159 | + /** |
| 160 | + * <p>The node ID.</p> |
| 161 | + * <blockquote> |
| 162 | + * <p> Queries the HA failover records of the Node <code>DBNodeId</code> . You can call the <a href="https://help.aliyun.com/document_detail/98094.html">DescribeDBClusters</a> operation to query the details of the clusters that belong to your Alibaba Cloud account, such as node IDs.</p> |
| 163 | + * </blockquote> |
| 164 | + * |
| 165 | + * <strong>example:</strong> |
| 166 | + * <p>pi-****************</p> |
| 167 | + */ |
| 168 | + public Builder DBNodeId(String DBNodeId) { |
| 169 | + this.putQueryParameter("DBNodeId", DBNodeId); |
| 170 | + this.DBNodeId = DBNodeId; |
| 171 | + return this; |
| 172 | + } |
| 173 | + |
| 174 | + /** |
| 175 | + * EndTime. |
| 176 | + */ |
| 177 | + public Builder endTime(String endTime) { |
| 178 | + this.putQueryParameter("EndTime", endTime); |
| 179 | + this.endTime = endTime; |
| 180 | + return this; |
| 181 | + } |
| 182 | + |
| 183 | + /** |
| 184 | + * <p>The log type.</p> |
| 185 | + * <p>This parameter is required.</p> |
| 186 | + * |
| 187 | + * <strong>example:</strong> |
| 188 | + * <p>HaSwitchLogList</p> |
| 189 | + */ |
| 190 | + public Builder logType(String logType) { |
| 191 | + this.putQueryParameter("LogType", logType); |
| 192 | + this.logType = logType; |
| 193 | + return this; |
| 194 | + } |
| 195 | + |
| 196 | + /** |
| 197 | + * PageNumber. |
| 198 | + */ |
| 199 | + public Builder pageNumber(Integer pageNumber) { |
| 200 | + this.putQueryParameter("PageNumber", pageNumber); |
| 201 | + this.pageNumber = pageNumber; |
| 202 | + return this; |
| 203 | + } |
| 204 | + |
| 205 | + /** |
| 206 | + * PageSize. |
| 207 | + */ |
| 208 | + public Builder pageSize(Integer pageSize) { |
| 209 | + this.putQueryParameter("PageSize", pageSize); |
| 210 | + this.pageSize = pageSize; |
| 211 | + return this; |
| 212 | + } |
| 213 | + |
| 214 | + /** |
| 215 | + * StartTime. |
| 216 | + */ |
| 217 | + public Builder startTime(String startTime) { |
| 218 | + this.putQueryParameter("StartTime", startTime); |
| 219 | + this.startTime = startTime; |
| 220 | + return this; |
| 221 | + } |
| 222 | + |
| 223 | + @Override |
| 224 | + public DescribeHALogsRequest build() { |
| 225 | + return new DescribeHALogsRequest(this); |
| 226 | + } |
| 227 | + |
| 228 | + } |
| 229 | + |
| 230 | +} |
0 commit comments