com.tencentcloudapi.cdb.v20170320.models.DescribeErrorLogDataRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tencentcloud-sdk-java-intl-en Show documentation
Show all versions of tencentcloud-sdk-java-intl-en Show documentation
Tencent Cloud API SDK for Java
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.tencentcloudapi.cdb.v20170320.models;
import com.tencentcloudapi.common.AbstractModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class DescribeErrorLogDataRequest extends AbstractModel{
/**
* Instance ID.
*/
@SerializedName("InstanceId")
@Expose
private String InstanceId;
/**
* Start timestamp.
*/
@SerializedName("StartTime")
@Expose
private Long StartTime;
/**
* End timestamp.
*/
@SerializedName("EndTime")
@Expose
private Long EndTime;
/**
* List of keywords to match. Up to 15 keywords are supported.
*/
@SerializedName("KeyWords")
@Expose
private String [] KeyWords;
/**
* The number of results per page in paginated queries. Default value: 100. Maximum value: 400.
*/
@SerializedName("Limit")
@Expose
private Long Limit;
/**
* Offset. Default value: 0.
*/
@SerializedName("Offset")
@Expose
private Long Offset;
/**
* This parameter is valid only for source or disaster recovery instances. Valid value: `slave`, which indicates pulling logs from the replica.
*/
@SerializedName("InstType")
@Expose
private String InstType;
/**
* Get Instance ID.
* @return InstanceId Instance ID.
*/
public String getInstanceId() {
return this.InstanceId;
}
/**
* Set Instance ID.
* @param InstanceId Instance ID.
*/
public void setInstanceId(String InstanceId) {
this.InstanceId = InstanceId;
}
/**
* Get Start timestamp.
* @return StartTime Start timestamp.
*/
public Long getStartTime() {
return this.StartTime;
}
/**
* Set Start timestamp.
* @param StartTime Start timestamp.
*/
public void setStartTime(Long StartTime) {
this.StartTime = StartTime;
}
/**
* Get End timestamp.
* @return EndTime End timestamp.
*/
public Long getEndTime() {
return this.EndTime;
}
/**
* Set End timestamp.
* @param EndTime End timestamp.
*/
public void setEndTime(Long EndTime) {
this.EndTime = EndTime;
}
/**
* Get List of keywords to match. Up to 15 keywords are supported.
* @return KeyWords List of keywords to match. Up to 15 keywords are supported.
*/
public String [] getKeyWords() {
return this.KeyWords;
}
/**
* Set List of keywords to match. Up to 15 keywords are supported.
* @param KeyWords List of keywords to match. Up to 15 keywords are supported.
*/
public void setKeyWords(String [] KeyWords) {
this.KeyWords = KeyWords;
}
/**
* Get The number of results per page in paginated queries. Default value: 100. Maximum value: 400.
* @return Limit The number of results per page in paginated queries. Default value: 100. Maximum value: 400.
*/
public Long getLimit() {
return this.Limit;
}
/**
* Set The number of results per page in paginated queries. Default value: 100. Maximum value: 400.
* @param Limit The number of results per page in paginated queries. Default value: 100. Maximum value: 400.
*/
public void setLimit(Long Limit) {
this.Limit = Limit;
}
/**
* Get Offset. Default value: 0.
* @return Offset Offset. Default value: 0.
*/
public Long getOffset() {
return this.Offset;
}
/**
* Set Offset. Default value: 0.
* @param Offset Offset. Default value: 0.
*/
public void setOffset(Long Offset) {
this.Offset = Offset;
}
/**
* Get This parameter is valid only for source or disaster recovery instances. Valid value: `slave`, which indicates pulling logs from the replica.
* @return InstType This parameter is valid only for source or disaster recovery instances. Valid value: `slave`, which indicates pulling logs from the replica.
*/
public String getInstType() {
return this.InstType;
}
/**
* Set This parameter is valid only for source or disaster recovery instances. Valid value: `slave`, which indicates pulling logs from the replica.
* @param InstType This parameter is valid only for source or disaster recovery instances. Valid value: `slave`, which indicates pulling logs from the replica.
*/
public void setInstType(String InstType) {
this.InstType = InstType;
}
public DescribeErrorLogDataRequest() {
}
/**
* 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.
*/
public DescribeErrorLogDataRequest(DescribeErrorLogDataRequest source) {
if (source.InstanceId != null) {
this.InstanceId = new String(source.InstanceId);
}
if (source.StartTime != null) {
this.StartTime = new Long(source.StartTime);
}
if (source.EndTime != null) {
this.EndTime = new Long(source.EndTime);
}
if (source.KeyWords != null) {
this.KeyWords = new String[source.KeyWords.length];
for (int i = 0; i < source.KeyWords.length; i++) {
this.KeyWords[i] = new String(source.KeyWords[i]);
}
}
if (source.Limit != null) {
this.Limit = new Long(source.Limit);
}
if (source.Offset != null) {
this.Offset = new Long(source.Offset);
}
if (source.InstType != null) {
this.InstType = new String(source.InstType);
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "InstanceId", this.InstanceId);
this.setParamSimple(map, prefix + "StartTime", this.StartTime);
this.setParamSimple(map, prefix + "EndTime", this.EndTime);
this.setParamArraySimple(map, prefix + "KeyWords.", this.KeyWords);
this.setParamSimple(map, prefix + "Limit", this.Limit);
this.setParamSimple(map, prefix + "Offset", this.Offset);
this.setParamSimple(map, prefix + "InstType", this.InstType);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy