com.aliyun.sdk.service.cloud_siem20220616.models.SaveQuickQueryRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of alibabacloud-cloud_siem20220616 Show documentation
Show all versions of alibabacloud-cloud_siem20220616 Show documentation
Alibaba Cloud cloud-siem (20220616) Async SDK for Java
The newest version!
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.cloud_siem20220616.models;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
* {@link SaveQuickQueryRequest} extends {@link RequestModel}
*
* SaveQuickQueryRequest
*/
public class SaveQuickQueryRequest extends Request {
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("DisplayName")
@com.aliyun.core.annotation.Validation(required = true)
private String displayName;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("Query")
@com.aliyun.core.annotation.Validation(required = true)
private String query;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
private SaveQuickQueryRequest(Builder builder) {
super(builder);
this.displayName = builder.displayName;
this.query = builder.query;
this.regionId = builder.regionId;
}
public static Builder builder() {
return new Builder();
}
public static SaveQuickQueryRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return displayName
*/
public String getDisplayName() {
return this.displayName;
}
/**
* @return query
*/
public String getQuery() {
return this.query;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
public static final class Builder extends Request.Builder {
private String displayName;
private String query;
private String regionId;
private Builder() {
super();
}
private Builder(SaveQuickQueryRequest request) {
super(request);
this.displayName = request.displayName;
this.query = request.query;
this.regionId = request.regionId;
}
/**
* The name of the saved search.
*/
public Builder displayName(String displayName) {
this.putBodyParameter("DisplayName", displayName);
this.displayName = displayName;
return this;
}
/**
* The query statement.
*/
public Builder query(String query) {
this.putBodyParameter("Query", query);
this.query = query;
return this;
}
/**
* The data management center of the threat analysis feature. Specify this parameter based on the region where your assets reside. Valid values:
*
*
* * cn-hangzhou: Your assets reside in regions in the Chinese mainland or in the China (Hong Kong) region.
* * ap-southeast-1: Your assets reside in regions outside the Chinese mainland, excluding the China (Hong Kong) region.
*/
public Builder regionId(String regionId) {
this.putBodyParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
@Override
public SaveQuickQueryRequest build() {
return new SaveQuickQueryRequest(this);
}
}
}