index int64 | repo_id string | file_path string | content string |
|---|---|---|---|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribePropertySoftwareDetailRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribePropertySoftwareDetailRequest} extends {@link RequestModel}
*
* <p>DescribePropertySoftwareDetailRequest</p>
*/
public class DescribePropertySoftwareDetailRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("CurrentPage")
private Integer currentPage;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Extend")
private String extend;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("InstallTimeEnd")
private Long installTimeEnd;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("InstallTimeStart")
private Long installTimeStart;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Name")
private String name;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageSize")
private Integer pageSize;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Path")
private String path;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Remark")
private String remark;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SoftwareVersion")
private String softwareVersion;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Uuid")
private String uuid;
private DescribePropertySoftwareDetailRequest(Builder builder) {
super(builder);
this.currentPage = builder.currentPage;
this.extend = builder.extend;
this.installTimeEnd = builder.installTimeEnd;
this.installTimeStart = builder.installTimeStart;
this.name = builder.name;
this.pageSize = builder.pageSize;
this.path = builder.path;
this.remark = builder.remark;
this.softwareVersion = builder.softwareVersion;
this.uuid = builder.uuid;
}
public static Builder builder() {
return new Builder();
}
public static DescribePropertySoftwareDetailRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return currentPage
*/
public Integer getCurrentPage() {
return this.currentPage;
}
/**
* @return extend
*/
public String getExtend() {
return this.extend;
}
/**
* @return installTimeEnd
*/
public Long getInstallTimeEnd() {
return this.installTimeEnd;
}
/**
* @return installTimeStart
*/
public Long getInstallTimeStart() {
return this.installTimeStart;
}
/**
* @return name
*/
public String getName() {
return this.name;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return path
*/
public String getPath() {
return this.path;
}
/**
* @return remark
*/
public String getRemark() {
return this.remark;
}
/**
* @return softwareVersion
*/
public String getSoftwareVersion() {
return this.softwareVersion;
}
/**
* @return uuid
*/
public String getUuid() {
return this.uuid;
}
public static final class Builder extends Request.Builder<DescribePropertySoftwareDetailRequest, Builder> {
private Integer currentPage;
private String extend;
private Long installTimeEnd;
private Long installTimeStart;
private String name;
private Integer pageSize;
private String path;
private String remark;
private String softwareVersion;
private String uuid;
private Builder() {
super();
}
private Builder(DescribePropertySoftwareDetailRequest request) {
super(request);
this.currentPage = request.currentPage;
this.extend = request.extend;
this.installTimeEnd = request.installTimeEnd;
this.installTimeStart = request.installTimeStart;
this.name = request.name;
this.pageSize = request.pageSize;
this.path = request.path;
this.remark = request.remark;
this.softwareVersion = request.softwareVersion;
this.uuid = request.uuid;
}
/**
* <p>The page number. Default value: <strong>1</strong>.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder currentPage(Integer currentPage) {
this.putQueryParameter("CurrentPage", currentPage);
this.currentPage = currentPage;
return this;
}
/**
* <p>Specifies whether fuzzy search by software name is supported. If you want to use fuzzy search, set the parameter to 1. If you set the parameter to a different value or leave the parameter empty, fuzzy search is not supported.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder extend(String extend) {
this.putQueryParameter("Extend", extend);
this.extend = extend;
return this;
}
/**
* <p>The timestamp generated when the software update ends. Unit: milliseconds.</p>
*
* <strong>example:</strong>
* <p>1650012695000</p>
*/
public Builder installTimeEnd(Long installTimeEnd) {
this.putQueryParameter("InstallTimeEnd", installTimeEnd);
this.installTimeEnd = installTimeEnd;
return this;
}
/**
* <p>The timestamp generated when the software update starts. Unit: milliseconds.</p>
*
* <strong>example:</strong>
* <p>1649321495000</p>
*/
public Builder installTimeStart(Long installTimeStart) {
this.putQueryParameter("InstallTimeStart", installTimeStart);
this.installTimeStart = installTimeStart;
return this;
}
/**
* <p>The name of the software.</p>
*
* <strong>example:</strong>
* <p>kernel</p>
*/
public Builder name(String name) {
this.putQueryParameter("Name", name);
this.name = name;
return this;
}
/**
* <p>The number of entries per page. Default value: <strong>10</strong>.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder pageSize(Integer pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
return this;
}
/**
* <p>The installation path of the software.</p>
*
* <strong>example:</strong>
* <p>/etc/test</p>
*/
public Builder path(String path) {
this.putQueryParameter("Path", path);
this.path = path;
return this;
}
/**
* <p>The name or IP address of the server.</p>
*
* <strong>example:</strong>
* <p>192.168.XX.XX</p>
*/
public Builder remark(String remark) {
this.putQueryParameter("Remark", remark);
this.remark = remark;
return this;
}
/**
* <p>The version of the software.</p>
*
* <strong>example:</strong>
* <p>3.10.0</p>
*/
public Builder softwareVersion(String softwareVersion) {
this.putQueryParameter("SoftwareVersion", softwareVersion);
this.softwareVersion = softwareVersion;
return this;
}
/**
* <p>The UUID of the server.</p>
*
* <strong>example:</strong>
* <p>50d213b4-3a35-427a-b8a5-****</p>
*/
public Builder uuid(String uuid) {
this.putQueryParameter("Uuid", uuid);
this.uuid = uuid;
return this;
}
@Override
public DescribePropertySoftwareDetailRequest build() {
return new DescribePropertySoftwareDetailRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribePropertySoftwareDetailResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribePropertySoftwareDetailResponse} extends {@link TeaModel}
*
* <p>DescribePropertySoftwareDetailResponse</p>
*/
public class DescribePropertySoftwareDetailResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private DescribePropertySoftwareDetailResponseBody body;
private DescribePropertySoftwareDetailResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribePropertySoftwareDetailResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public DescribePropertySoftwareDetailResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribePropertySoftwareDetailResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribePropertySoftwareDetailResponseBody body);
@Override
DescribePropertySoftwareDetailResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribePropertySoftwareDetailResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribePropertySoftwareDetailResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribePropertySoftwareDetailResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(DescribePropertySoftwareDetailResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribePropertySoftwareDetailResponse build() {
return new DescribePropertySoftwareDetailResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribePropertySoftwareDetailResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribePropertySoftwareDetailResponseBody} extends {@link TeaModel}
*
* <p>DescribePropertySoftwareDetailResponseBody</p>
*/
public class DescribePropertySoftwareDetailResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("PageInfo")
private PageInfo pageInfo;
@com.aliyun.core.annotation.NameInMap("Propertys")
private java.util.List<Propertys> propertys;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private DescribePropertySoftwareDetailResponseBody(Builder builder) {
this.pageInfo = builder.pageInfo;
this.propertys = builder.propertys;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static DescribePropertySoftwareDetailResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return pageInfo
*/
public PageInfo getPageInfo() {
return this.pageInfo;
}
/**
* @return propertys
*/
public java.util.List<Propertys> getPropertys() {
return this.propertys;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private PageInfo pageInfo;
private java.util.List<Propertys> propertys;
private String requestId;
private Builder() {
}
private Builder(DescribePropertySoftwareDetailResponseBody model) {
this.pageInfo = model.pageInfo;
this.propertys = model.propertys;
this.requestId = model.requestId;
}
/**
* <p>The pagination information.</p>
*/
public Builder pageInfo(PageInfo pageInfo) {
this.pageInfo = pageInfo;
return this;
}
/**
* <p>The details of the software asset.</p>
*/
public Builder propertys(java.util.List<Propertys> propertys) {
this.propertys = propertys;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>6AEE7412-0065-1135-B790-AE2C38BA68FB</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public DescribePropertySoftwareDetailResponseBody build() {
return new DescribePropertySoftwareDetailResponseBody(this);
}
}
/**
*
* {@link DescribePropertySoftwareDetailResponseBody} extends {@link TeaModel}
*
* <p>DescribePropertySoftwareDetailResponseBody</p>
*/
public static class PageInfo extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Count")
private Integer count;
@com.aliyun.core.annotation.NameInMap("CurrentPage")
private Integer currentPage;
@com.aliyun.core.annotation.NameInMap("PageSize")
private Integer pageSize;
@com.aliyun.core.annotation.NameInMap("TotalCount")
private Integer totalCount;
private PageInfo(Builder builder) {
this.count = builder.count;
this.currentPage = builder.currentPage;
this.pageSize = builder.pageSize;
this.totalCount = builder.totalCount;
}
public static Builder builder() {
return new Builder();
}
public static PageInfo create() {
return builder().build();
}
/**
* @return count
*/
public Integer getCount() {
return this.count;
}
/**
* @return currentPage
*/
public Integer getCurrentPage() {
return this.currentPage;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return totalCount
*/
public Integer getTotalCount() {
return this.totalCount;
}
public static final class Builder {
private Integer count;
private Integer currentPage;
private Integer pageSize;
private Integer totalCount;
private Builder() {
}
private Builder(PageInfo model) {
this.count = model.count;
this.currentPage = model.currentPage;
this.pageSize = model.pageSize;
this.totalCount = model.totalCount;
}
/**
* <p>The number of entries returned on the current page.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder count(Integer count) {
this.count = count;
return this;
}
/**
* <p>The page number.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder currentPage(Integer currentPage) {
this.currentPage = currentPage;
return this;
}
/**
* <p>The number of entries per page. Default value: <strong>10</strong>.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder pageSize(Integer pageSize) {
this.pageSize = pageSize;
return this;
}
/**
* <p>The total number of entries returned.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder totalCount(Integer totalCount) {
this.totalCount = totalCount;
return this;
}
public PageInfo build() {
return new PageInfo(this);
}
}
}
/**
*
* {@link DescribePropertySoftwareDetailResponseBody} extends {@link TeaModel}
*
* <p>DescribePropertySoftwareDetailResponseBody</p>
*/
public static class Propertys extends TeaModel {
@com.aliyun.core.annotation.NameInMap("CreateTimestamp")
private Long createTimestamp;
@com.aliyun.core.annotation.NameInMap("InstallTime")
private String installTime;
@com.aliyun.core.annotation.NameInMap("InstallTimeDt")
private Long installTimeDt;
@com.aliyun.core.annotation.NameInMap("InstanceId")
private String instanceId;
@com.aliyun.core.annotation.NameInMap("InstanceName")
private String instanceName;
@com.aliyun.core.annotation.NameInMap("InternetIp")
private String internetIp;
@com.aliyun.core.annotation.NameInMap("IntranetIp")
private String intranetIp;
@com.aliyun.core.annotation.NameInMap("Ip")
private String ip;
@com.aliyun.core.annotation.NameInMap("Name")
private String name;
@com.aliyun.core.annotation.NameInMap("Path")
private String path;
@com.aliyun.core.annotation.NameInMap("Uuid")
private String uuid;
@com.aliyun.core.annotation.NameInMap("Version")
private String version;
private Propertys(Builder builder) {
this.createTimestamp = builder.createTimestamp;
this.installTime = builder.installTime;
this.installTimeDt = builder.installTimeDt;
this.instanceId = builder.instanceId;
this.instanceName = builder.instanceName;
this.internetIp = builder.internetIp;
this.intranetIp = builder.intranetIp;
this.ip = builder.ip;
this.name = builder.name;
this.path = builder.path;
this.uuid = builder.uuid;
this.version = builder.version;
}
public static Builder builder() {
return new Builder();
}
public static Propertys create() {
return builder().build();
}
/**
* @return createTimestamp
*/
public Long getCreateTimestamp() {
return this.createTimestamp;
}
/**
* @return installTime
*/
public String getInstallTime() {
return this.installTime;
}
/**
* @return installTimeDt
*/
public Long getInstallTimeDt() {
return this.installTimeDt;
}
/**
* @return instanceId
*/
public String getInstanceId() {
return this.instanceId;
}
/**
* @return instanceName
*/
public String getInstanceName() {
return this.instanceName;
}
/**
* @return internetIp
*/
public String getInternetIp() {
return this.internetIp;
}
/**
* @return intranetIp
*/
public String getIntranetIp() {
return this.intranetIp;
}
/**
* @return ip
*/
public String getIp() {
return this.ip;
}
/**
* @return name
*/
public String getName() {
return this.name;
}
/**
* @return path
*/
public String getPath() {
return this.path;
}
/**
* @return uuid
*/
public String getUuid() {
return this.uuid;
}
/**
* @return version
*/
public String getVersion() {
return this.version;
}
public static final class Builder {
private Long createTimestamp;
private String installTime;
private Long installTimeDt;
private String instanceId;
private String instanceName;
private String internetIp;
private String intranetIp;
private String ip;
private String name;
private String path;
private String uuid;
private String version;
private Builder() {
}
private Builder(Propertys model) {
this.createTimestamp = model.createTimestamp;
this.installTime = model.installTime;
this.installTimeDt = model.installTimeDt;
this.instanceId = model.instanceId;
this.instanceName = model.instanceName;
this.internetIp = model.internetIp;
this.intranetIp = model.intranetIp;
this.ip = model.ip;
this.name = model.name;
this.path = model.path;
this.uuid = model.uuid;
this.version = model.version;
}
/**
* <p>The timestamp generated when the last asset fingerprint collection is performed. Unit: milliseconds.</p>
*
* <strong>example:</strong>
* <p>1649149566000</p>
*/
public Builder createTimestamp(Long createTimestamp) {
this.createTimestamp = createTimestamp;
return this;
}
/**
* <p>The time at which the software is installed.</p>
*
* <strong>example:</strong>
* <p>2022-04-07 10:54:49</p>
*/
public Builder installTime(String installTime) {
this.installTime = installTime;
return this;
}
/**
* <p>The timestamp generated when the software is installed. Unit: milliseconds.</p>
*
* <strong>example:</strong>
* <p>1649066826000</p>
*/
public Builder installTimeDt(Long installTimeDt) {
this.installTimeDt = installTimeDt;
return this;
}
/**
* <p>The ID of the server.</p>
*
* <strong>example:</strong>
* <p>i-hp35tftuh52wbp1g****</p>
*/
public Builder instanceId(String instanceId) {
this.instanceId = instanceId;
return this;
}
/**
* <p>The name of the server.</p>
*
* <strong>example:</strong>
* <p>hc-host-****</p>
*/
public Builder instanceName(String instanceName) {
this.instanceName = instanceName;
return this;
}
/**
* <p>The public IP address of the server.</p>
*
* <strong>example:</strong>
* <p>192.168.XX.XX</p>
*/
public Builder internetIp(String internetIp) {
this.internetIp = internetIp;
return this;
}
/**
* <p>The private IP address of the server.</p>
*
* <strong>example:</strong>
* <p>100.104.XX.XX</p>
*/
public Builder intranetIp(String intranetIp) {
this.intranetIp = intranetIp;
return this;
}
/**
* <p>The IP addresses of the server.</p>
*
* <strong>example:</strong>
* <p>192.168.XX.XX</p>
*/
public Builder ip(String ip) {
this.ip = ip;
return this;
}
/**
* <p>The name of the software.</p>
*
* <strong>example:</strong>
* <p>aaa_base</p>
*/
public Builder name(String name) {
this.name = name;
return this;
}
/**
* <p>The installation path of the software.</p>
*
* <strong>example:</strong>
* <p>/etc/test</p>
*/
public Builder path(String path) {
this.path = path;
return this;
}
/**
* <p>The UUID of the server.</p>
*
* <strong>example:</strong>
* <p>162eb349-c2d9-4f8b-805c-75b43d4c****</p>
*/
public Builder uuid(String uuid) {
this.uuid = uuid;
return this;
}
/**
* <p>The version of the software.</p>
*
* <strong>example:</strong>
* <p>3.10.0</p>
*/
public Builder version(String version) {
this.version = version;
return this;
}
public Propertys build() {
return new Propertys(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribePropertySoftwareItemRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribePropertySoftwareItemRequest} extends {@link RequestModel}
*
* <p>DescribePropertySoftwareItemRequest</p>
*/
public class DescribePropertySoftwareItemRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("CurrentPage")
private Integer currentPage;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ForceFlush")
private Boolean forceFlush;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Name")
private String name;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageSize")
private Integer pageSize;
private DescribePropertySoftwareItemRequest(Builder builder) {
super(builder);
this.currentPage = builder.currentPage;
this.forceFlush = builder.forceFlush;
this.name = builder.name;
this.pageSize = builder.pageSize;
}
public static Builder builder() {
return new Builder();
}
public static DescribePropertySoftwareItemRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return currentPage
*/
public Integer getCurrentPage() {
return this.currentPage;
}
/**
* @return forceFlush
*/
public Boolean getForceFlush() {
return this.forceFlush;
}
/**
* @return name
*/
public String getName() {
return this.name;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
public static final class Builder extends Request.Builder<DescribePropertySoftwareItemRequest, Builder> {
private Integer currentPage;
private Boolean forceFlush;
private String name;
private Integer pageSize;
private Builder() {
super();
}
private Builder(DescribePropertySoftwareItemRequest request) {
super(request);
this.currentPage = request.currentPage;
this.forceFlush = request.forceFlush;
this.name = request.name;
this.pageSize = request.pageSize;
}
/**
* <p>The number of the page to return.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder currentPage(Integer currentPage) {
this.putQueryParameter("CurrentPage", currentPage);
this.currentPage = currentPage;
return this;
}
/**
* <p>Specifies whether to forcefully refresh the data that you want to query.</p>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder forceFlush(Boolean forceFlush) {
this.putQueryParameter("ForceFlush", forceFlush);
this.forceFlush = forceFlush;
return this;
}
/**
* <p>The name of the software that you want to query.</p>
*
* <strong>example:</strong>
* <p>test</p>
*/
public Builder name(String name) {
this.putQueryParameter("Name", name);
this.name = name;
return this;
}
/**
* <p>The number of entries to return on each page.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder pageSize(Integer pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
return this;
}
@Override
public DescribePropertySoftwareItemRequest build() {
return new DescribePropertySoftwareItemRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribePropertySoftwareItemResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribePropertySoftwareItemResponse} extends {@link TeaModel}
*
* <p>DescribePropertySoftwareItemResponse</p>
*/
public class DescribePropertySoftwareItemResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private DescribePropertySoftwareItemResponseBody body;
private DescribePropertySoftwareItemResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribePropertySoftwareItemResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public DescribePropertySoftwareItemResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribePropertySoftwareItemResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribePropertySoftwareItemResponseBody body);
@Override
DescribePropertySoftwareItemResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribePropertySoftwareItemResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribePropertySoftwareItemResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribePropertySoftwareItemResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(DescribePropertySoftwareItemResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribePropertySoftwareItemResponse build() {
return new DescribePropertySoftwareItemResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribePropertySoftwareItemResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribePropertySoftwareItemResponseBody} extends {@link TeaModel}
*
* <p>DescribePropertySoftwareItemResponseBody</p>
*/
public class DescribePropertySoftwareItemResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("PageInfo")
private PageInfo pageInfo;
@com.aliyun.core.annotation.NameInMap("PropertyItems")
private java.util.List<PropertyItems> propertyItems;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private DescribePropertySoftwareItemResponseBody(Builder builder) {
this.pageInfo = builder.pageInfo;
this.propertyItems = builder.propertyItems;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static DescribePropertySoftwareItemResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return pageInfo
*/
public PageInfo getPageInfo() {
return this.pageInfo;
}
/**
* @return propertyItems
*/
public java.util.List<PropertyItems> getPropertyItems() {
return this.propertyItems;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private PageInfo pageInfo;
private java.util.List<PropertyItems> propertyItems;
private String requestId;
private Builder() {
}
private Builder(DescribePropertySoftwareItemResponseBody model) {
this.pageInfo = model.pageInfo;
this.propertyItems = model.propertyItems;
this.requestId = model.requestId;
}
/**
* <p>The pagination information.</p>
*/
public Builder pageInfo(PageInfo pageInfo) {
this.pageInfo = pageInfo;
return this;
}
/**
* <p>An array that consists of the software assets returned.</p>
*/
public Builder propertyItems(java.util.List<PropertyItems> propertyItems) {
this.propertyItems = propertyItems;
return this;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>3A85CFCF-05C8-451A-9E41-C0D5E96BA407</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public DescribePropertySoftwareItemResponseBody build() {
return new DescribePropertySoftwareItemResponseBody(this);
}
}
/**
*
* {@link DescribePropertySoftwareItemResponseBody} extends {@link TeaModel}
*
* <p>DescribePropertySoftwareItemResponseBody</p>
*/
public static class PageInfo extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Count")
private Integer count;
@com.aliyun.core.annotation.NameInMap("CurrentPage")
private Integer currentPage;
@com.aliyun.core.annotation.NameInMap("PageSize")
private Integer pageSize;
@com.aliyun.core.annotation.NameInMap("TotalCount")
private Integer totalCount;
private PageInfo(Builder builder) {
this.count = builder.count;
this.currentPage = builder.currentPage;
this.pageSize = builder.pageSize;
this.totalCount = builder.totalCount;
}
public static Builder builder() {
return new Builder();
}
public static PageInfo create() {
return builder().build();
}
/**
* @return count
*/
public Integer getCount() {
return this.count;
}
/**
* @return currentPage
*/
public Integer getCurrentPage() {
return this.currentPage;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return totalCount
*/
public Integer getTotalCount() {
return this.totalCount;
}
public static final class Builder {
private Integer count;
private Integer currentPage;
private Integer pageSize;
private Integer totalCount;
private Builder() {
}
private Builder(PageInfo model) {
this.count = model.count;
this.currentPage = model.currentPage;
this.pageSize = model.pageSize;
this.totalCount = model.totalCount;
}
/**
* <p>The number of entries returned on the current page.</p>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder count(Integer count) {
this.count = count;
return this;
}
/**
* <p>The page number of the returned page.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder currentPage(Integer currentPage) {
this.currentPage = currentPage;
return this;
}
/**
* <p>The number of entries returned per page.</p>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder pageSize(Integer pageSize) {
this.pageSize = pageSize;
return this;
}
/**
* <p>The total number of entries returned.</p>
*
* <strong>example:</strong>
* <p>5037</p>
*/
public Builder totalCount(Integer totalCount) {
this.totalCount = totalCount;
return this;
}
public PageInfo build() {
return new PageInfo(this);
}
}
}
/**
*
* {@link DescribePropertySoftwareItemResponseBody} extends {@link TeaModel}
*
* <p>DescribePropertySoftwareItemResponseBody</p>
*/
public static class PropertyItems extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Count")
private Integer count;
@com.aliyun.core.annotation.NameInMap("Name")
private String name;
private PropertyItems(Builder builder) {
this.count = builder.count;
this.name = builder.name;
}
public static Builder builder() {
return new Builder();
}
public static PropertyItems create() {
return builder().build();
}
/**
* @return count
*/
public Integer getCount() {
return this.count;
}
/**
* @return name
*/
public String getName() {
return this.name;
}
public static final class Builder {
private Integer count;
private String name;
private Builder() {
}
private Builder(PropertyItems model) {
this.count = model.count;
this.name = model.name;
}
/**
* <p>The number of servers on which the software is installed.</p>
*
* <strong>example:</strong>
* <p>23</p>
*/
public Builder count(Integer count) {
this.count = count;
return this;
}
/**
* <p>The name of the software.</p>
*
* <strong>example:</strong>
* <p>aaa_base</p>
*/
public Builder name(String name) {
this.name = name;
return this;
}
public PropertyItems build() {
return new PropertyItems(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribePropertyTypeScaItemRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribePropertyTypeScaItemRequest} extends {@link RequestModel}
*
* <p>DescribePropertyTypeScaItemRequest</p>
*/
public class DescribePropertyTypeScaItemRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("CurrentPage")
private Integer currentPage;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Lang")
private String lang;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageSize")
private Integer pageSize;
private DescribePropertyTypeScaItemRequest(Builder builder) {
super(builder);
this.currentPage = builder.currentPage;
this.lang = builder.lang;
this.pageSize = builder.pageSize;
}
public static Builder builder() {
return new Builder();
}
public static DescribePropertyTypeScaItemRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return currentPage
*/
public Integer getCurrentPage() {
return this.currentPage;
}
/**
* @return lang
*/
public String getLang() {
return this.lang;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
public static final class Builder extends Request.Builder<DescribePropertyTypeScaItemRequest, Builder> {
private Integer currentPage;
private String lang;
private Integer pageSize;
private Builder() {
super();
}
private Builder(DescribePropertyTypeScaItemRequest request) {
super(request);
this.currentPage = request.currentPage;
this.lang = request.lang;
this.pageSize = request.pageSize;
}
/**
* <p>The number of the page to return. Default value: 1.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder currentPage(Integer currentPage) {
this.putQueryParameter("CurrentPage", currentPage);
this.currentPage = currentPage;
return this;
}
/**
* <p>The language of the content within the request and response. Valid values:</p>
* <ul>
* <li><strong>zh</strong>: Chinese</li>
* <li><strong>en</strong>: English</li>
* </ul>
*
* <strong>example:</strong>
* <p>en</p>
*/
public Builder lang(String lang) {
this.putQueryParameter("Lang", lang);
this.lang = lang;
return this;
}
/**
* <p>The number of entries to return on each page. Default value: 20. If you leave this parameter empty, 20 entries are returned on each page.</p>
* <blockquote>
* <p> We recommend that you do not leave this parameter empty.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>20</p>
*/
public Builder pageSize(Integer pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
return this;
}
@Override
public DescribePropertyTypeScaItemRequest build() {
return new DescribePropertyTypeScaItemRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribePropertyTypeScaItemResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribePropertyTypeScaItemResponse} extends {@link TeaModel}
*
* <p>DescribePropertyTypeScaItemResponse</p>
*/
public class DescribePropertyTypeScaItemResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private DescribePropertyTypeScaItemResponseBody body;
private DescribePropertyTypeScaItemResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribePropertyTypeScaItemResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public DescribePropertyTypeScaItemResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribePropertyTypeScaItemResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribePropertyTypeScaItemResponseBody body);
@Override
DescribePropertyTypeScaItemResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribePropertyTypeScaItemResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribePropertyTypeScaItemResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribePropertyTypeScaItemResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(DescribePropertyTypeScaItemResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribePropertyTypeScaItemResponse build() {
return new DescribePropertyTypeScaItemResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribePropertyTypeScaItemResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribePropertyTypeScaItemResponseBody} extends {@link TeaModel}
*
* <p>DescribePropertyTypeScaItemResponseBody</p>
*/
public class DescribePropertyTypeScaItemResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("PageInfo")
private PageInfo pageInfo;
@com.aliyun.core.annotation.NameInMap("PropertyTypeItems")
private java.util.List<PropertyTypeItems> propertyTypeItems;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private DescribePropertyTypeScaItemResponseBody(Builder builder) {
this.pageInfo = builder.pageInfo;
this.propertyTypeItems = builder.propertyTypeItems;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static DescribePropertyTypeScaItemResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return pageInfo
*/
public PageInfo getPageInfo() {
return this.pageInfo;
}
/**
* @return propertyTypeItems
*/
public java.util.List<PropertyTypeItems> getPropertyTypeItems() {
return this.propertyTypeItems;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private PageInfo pageInfo;
private java.util.List<PropertyTypeItems> propertyTypeItems;
private String requestId;
private Builder() {
}
private Builder(DescribePropertyTypeScaItemResponseBody model) {
this.pageInfo = model.pageInfo;
this.propertyTypeItems = model.propertyTypeItems;
this.requestId = model.requestId;
}
/**
* <p>The pagination information.</p>
*/
public Builder pageInfo(PageInfo pageInfo) {
this.pageInfo = pageInfo;
return this;
}
/**
* <p>An array that consists of the middleware types.</p>
*/
public Builder propertyTypeItems(java.util.List<PropertyTypeItems> propertyTypeItems) {
this.propertyTypeItems = propertyTypeItems;
return this;
}
/**
* <p>The ID of the request, which is used to locate and troubleshoot issues.</p>
*
* <strong>example:</strong>
* <p>B7A839E8-70AE-591D-8D9E-C5419A22****</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public DescribePropertyTypeScaItemResponseBody build() {
return new DescribePropertyTypeScaItemResponseBody(this);
}
}
/**
*
* {@link DescribePropertyTypeScaItemResponseBody} extends {@link TeaModel}
*
* <p>DescribePropertyTypeScaItemResponseBody</p>
*/
public static class PageInfo extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Count")
private Integer count;
@com.aliyun.core.annotation.NameInMap("CurrentPage")
private Integer currentPage;
@com.aliyun.core.annotation.NameInMap("PageSize")
private Integer pageSize;
@com.aliyun.core.annotation.NameInMap("TotalCount")
private Integer totalCount;
private PageInfo(Builder builder) {
this.count = builder.count;
this.currentPage = builder.currentPage;
this.pageSize = builder.pageSize;
this.totalCount = builder.totalCount;
}
public static Builder builder() {
return new Builder();
}
public static PageInfo create() {
return builder().build();
}
/**
* @return count
*/
public Integer getCount() {
return this.count;
}
/**
* @return currentPage
*/
public Integer getCurrentPage() {
return this.currentPage;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return totalCount
*/
public Integer getTotalCount() {
return this.totalCount;
}
public static final class Builder {
private Integer count;
private Integer currentPage;
private Integer pageSize;
private Integer totalCount;
private Builder() {
}
private Builder(PageInfo model) {
this.count = model.count;
this.currentPage = model.currentPage;
this.pageSize = model.pageSize;
this.totalCount = model.totalCount;
}
/**
* <p>The number of entries returned on the current page.</p>
*
* <strong>example:</strong>
* <p>20</p>
*/
public Builder count(Integer count) {
this.count = count;
return this;
}
/**
* <p>The page number of the returned page.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder currentPage(Integer currentPage) {
this.currentPage = currentPage;
return this;
}
/**
* <p>The number of entries returned per page.</p>
*
* <strong>example:</strong>
* <p>20</p>
*/
public Builder pageSize(Integer pageSize) {
this.pageSize = pageSize;
return this;
}
/**
* <p>The total number of entries returned.</p>
*
* <strong>example:</strong>
* <p>69</p>
*/
public Builder totalCount(Integer totalCount) {
this.totalCount = totalCount;
return this;
}
public PageInfo build() {
return new PageInfo(this);
}
}
}
/**
*
* {@link DescribePropertyTypeScaItemResponseBody} extends {@link TeaModel}
*
* <p>DescribePropertyTypeScaItemResponseBody</p>
*/
public static class PropertyTypeItems extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Name")
private String name;
@com.aliyun.core.annotation.NameInMap("Type")
private String type;
private PropertyTypeItems(Builder builder) {
this.name = builder.name;
this.type = builder.type;
}
public static Builder builder() {
return new Builder();
}
public static PropertyTypeItems create() {
return builder().build();
}
/**
* @return name
*/
public String getName() {
return this.name;
}
/**
* @return type
*/
public String getType() {
return this.type;
}
public static final class Builder {
private String name;
private String type;
private Builder() {
}
private Builder(PropertyTypeItems model) {
this.name = model.name;
this.type = model.type;
}
/**
* <p>The name of the middleware type.</p>
*
* <strong>example:</strong>
* <p>Docker Component</p>
*/
public Builder name(String name) {
this.name = name;
return this;
}
/**
* <p>The type of the middleware. Valid values:</p>
* <ul>
* <li><strong>system_service</strong>: system service</li>
* <li><strong>software_library</strong>: software library</li>
* <li><strong>docker_component</strong>: container component</li>
* <li><strong>database</strong>: database</li>
* <li><strong>web_container</strong>: web container</li>
* <li><strong>jar</strong>: JAR package</li>
* <li><strong>web_framework</strong>: web framework</li>
* </ul>
*
* <strong>example:</strong>
* <p>docker_component</p>
*/
public Builder type(String type) {
this.type = type;
return this;
}
public PropertyTypeItems build() {
return new PropertyTypeItems(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribePropertyUsageTopRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribePropertyUsageTopRequest} extends {@link RequestModel}
*
* <p>DescribePropertyUsageTopRequest</p>
*/
public class DescribePropertyUsageTopRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Type")
@com.aliyun.core.annotation.Validation(required = true)
private String type;
private DescribePropertyUsageTopRequest(Builder builder) {
super(builder);
this.type = builder.type;
}
public static Builder builder() {
return new Builder();
}
public static DescribePropertyUsageTopRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return type
*/
public String getType() {
return this.type;
}
public static final class Builder extends Request.Builder<DescribePropertyUsageTopRequest, Builder> {
private String type;
private Builder() {
super();
}
private Builder(DescribePropertyUsageTopRequest request) {
super(request);
this.type = request.type;
}
/**
* <p>The type of the asset fingerprint. Valid value:</p>
* <ul>
* <li><strong>port</strong>: port</li>
* <li><strong>process</strong>: process</li>
* <li><strong>software</strong>: software</li>
* <li><strong>user</strong>: account</li>
* <li><strong>sca</strong>: middleware</li>
* </ul>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>port</p>
*/
public Builder type(String type) {
this.putQueryParameter("Type", type);
this.type = type;
return this;
}
@Override
public DescribePropertyUsageTopRequest build() {
return new DescribePropertyUsageTopRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribePropertyUsageTopResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribePropertyUsageTopResponse} extends {@link TeaModel}
*
* <p>DescribePropertyUsageTopResponse</p>
*/
public class DescribePropertyUsageTopResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private DescribePropertyUsageTopResponseBody body;
private DescribePropertyUsageTopResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribePropertyUsageTopResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public DescribePropertyUsageTopResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribePropertyUsageTopResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribePropertyUsageTopResponseBody body);
@Override
DescribePropertyUsageTopResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribePropertyUsageTopResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribePropertyUsageTopResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribePropertyUsageTopResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(DescribePropertyUsageTopResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribePropertyUsageTopResponse build() {
return new DescribePropertyUsageTopResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribePropertyUsageTopResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribePropertyUsageTopResponseBody} extends {@link TeaModel}
*
* <p>DescribePropertyUsageTopResponseBody</p>
*/
public class DescribePropertyUsageTopResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ItemCount")
private Integer itemCount;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("TopStatisticItems")
private java.util.List<TopStatisticItems> topStatisticItems;
@com.aliyun.core.annotation.NameInMap("Type")
private String type;
private DescribePropertyUsageTopResponseBody(Builder builder) {
this.itemCount = builder.itemCount;
this.requestId = builder.requestId;
this.topStatisticItems = builder.topStatisticItems;
this.type = builder.type;
}
public static Builder builder() {
return new Builder();
}
public static DescribePropertyUsageTopResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return itemCount
*/
public Integer getItemCount() {
return this.itemCount;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return topStatisticItems
*/
public java.util.List<TopStatisticItems> getTopStatisticItems() {
return this.topStatisticItems;
}
/**
* @return type
*/
public String getType() {
return this.type;
}
public static final class Builder {
private Integer itemCount;
private String requestId;
private java.util.List<TopStatisticItems> topStatisticItems;
private String type;
private Builder() {
}
private Builder(DescribePropertyUsageTopResponseBody model) {
this.itemCount = model.itemCount;
this.requestId = model.requestId;
this.topStatisticItems = model.topStatisticItems;
this.type = model.type;
}
/**
* <p>The number of fingerprints.</p>
*
* <strong>example:</strong>
* <p>5</p>
*/
public Builder itemCount(Integer itemCount) {
this.itemCount = itemCount;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>16AA5B62-A3C1-520B-B289-4BD971CC17AB</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The statistical results.</p>
*/
public Builder topStatisticItems(java.util.List<TopStatisticItems> topStatisticItems) {
this.topStatisticItems = topStatisticItems;
return this;
}
/**
* <p>The type of the asset fingerprint. Valid value:</p>
* <ul>
* <li><strong>port</strong>: port</li>
* <li><strong>process</strong>: process</li>
* <li><strong>software</strong>: software</li>
* <li><strong>user</strong>: account</li>
* <li><strong>sca</strong>: middleware</li>
* </ul>
*
* <strong>example:</strong>
* <p>sca</p>
*/
public Builder type(String type) {
this.type = type;
return this;
}
public DescribePropertyUsageTopResponseBody build() {
return new DescribePropertyUsageTopResponseBody(this);
}
}
/**
*
* {@link DescribePropertyUsageTopResponseBody} extends {@link TeaModel}
*
* <p>DescribePropertyUsageTopResponseBody</p>
*/
public static class TopStatisticItems extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Count")
private Integer count;
@com.aliyun.core.annotation.NameInMap("Name")
private String name;
private TopStatisticItems(Builder builder) {
this.count = builder.count;
this.name = builder.name;
}
public static Builder builder() {
return new Builder();
}
public static TopStatisticItems create() {
return builder().build();
}
/**
* @return count
*/
public Integer getCount() {
return this.count;
}
/**
* @return name
*/
public String getName() {
return this.name;
}
public static final class Builder {
private Integer count;
private String name;
private Builder() {
}
private Builder(TopStatisticItems model) {
this.count = model.count;
this.name = model.name;
}
/**
* <p>The quantity.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder count(Integer count) {
this.count = count;
return this;
}
/**
* <p>The statistical item.</p>
*
* <strong>example:</strong>
* <p>openssl</p>
*/
public Builder name(String name) {
this.name = name;
return this;
}
public TopStatisticItems build() {
return new TopStatisticItems(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribePropertyUserDetailRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribePropertyUserDetailRequest} extends {@link RequestModel}
*
* <p>DescribePropertyUserDetailRequest</p>
*/
public class DescribePropertyUserDetailRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("CurrentPage")
private Integer currentPage;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Extend")
private String extend;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("IsRoot")
private String isRoot;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("LastLoginTimeEnd")
private Long lastLoginTimeEnd;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("LastLoginTimeStart")
private Long lastLoginTimeStart;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageSize")
private Integer pageSize;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Remark")
private String remark;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("User")
private String user;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Uuid")
private String uuid;
private DescribePropertyUserDetailRequest(Builder builder) {
super(builder);
this.currentPage = builder.currentPage;
this.extend = builder.extend;
this.isRoot = builder.isRoot;
this.lastLoginTimeEnd = builder.lastLoginTimeEnd;
this.lastLoginTimeStart = builder.lastLoginTimeStart;
this.pageSize = builder.pageSize;
this.remark = builder.remark;
this.user = builder.user;
this.uuid = builder.uuid;
}
public static Builder builder() {
return new Builder();
}
public static DescribePropertyUserDetailRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return currentPage
*/
public Integer getCurrentPage() {
return this.currentPage;
}
/**
* @return extend
*/
public String getExtend() {
return this.extend;
}
/**
* @return isRoot
*/
public String getIsRoot() {
return this.isRoot;
}
/**
* @return lastLoginTimeEnd
*/
public Long getLastLoginTimeEnd() {
return this.lastLoginTimeEnd;
}
/**
* @return lastLoginTimeStart
*/
public Long getLastLoginTimeStart() {
return this.lastLoginTimeStart;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return remark
*/
public String getRemark() {
return this.remark;
}
/**
* @return user
*/
public String getUser() {
return this.user;
}
/**
* @return uuid
*/
public String getUuid() {
return this.uuid;
}
public static final class Builder extends Request.Builder<DescribePropertyUserDetailRequest, Builder> {
private Integer currentPage;
private String extend;
private String isRoot;
private Long lastLoginTimeEnd;
private Long lastLoginTimeStart;
private Integer pageSize;
private String remark;
private String user;
private String uuid;
private Builder() {
super();
}
private Builder(DescribePropertyUserDetailRequest request) {
super(request);
this.currentPage = request.currentPage;
this.extend = request.extend;
this.isRoot = request.isRoot;
this.lastLoginTimeEnd = request.lastLoginTimeEnd;
this.lastLoginTimeStart = request.lastLoginTimeStart;
this.pageSize = request.pageSize;
this.remark = request.remark;
this.user = request.user;
this.uuid = request.uuid;
}
/**
* <p>The number of the page to return. Default value: <strong>1</strong>.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder currentPage(Integer currentPage) {
this.putQueryParameter("CurrentPage", currentPage);
this.currentPage = currentPage;
return this;
}
/**
* <p>Specifies whether the fuzzy search by account name is supported. If you want to use fuzzy search, set the parameter to <strong>1</strong>. If you set the parameter to a different value or leave the parameter empty, fuzzy search is not supported.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder extend(String extend) {
this.putQueryParameter("Extend", extend);
this.extend = extend;
return this;
}
/**
* <p>Specifies whether the account has root permissions. Valid values:</p>
* <ul>
* <li><strong>0</strong>: no</li>
* <li><strong>1</strong>: yes</li>
* </ul>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder isRoot(String isRoot) {
this.putQueryParameter("IsRoot", isRoot);
this.isRoot = isRoot;
return this;
}
/**
* <p>The timestamp of the last logoff from the account. Unit: milliseconds.</p>
*
* <strong>example:</strong>
* <p>164922523600</p>
*/
public Builder lastLoginTimeEnd(Long lastLoginTimeEnd) {
this.putQueryParameter("LastLoginTimeEnd", lastLoginTimeEnd);
this.lastLoginTimeEnd = lastLoginTimeEnd;
return this;
}
/**
* <p>The timestamp of the last logon to the account. Unit: milliseconds.</p>
*
* <strong>example:</strong>
* <p>164922523600</p>
*/
public Builder lastLoginTimeStart(Long lastLoginTimeStart) {
this.putQueryParameter("LastLoginTimeStart", lastLoginTimeStart);
this.lastLoginTimeStart = lastLoginTimeStart;
return this;
}
/**
* <p>The number of entries to return on each page. Default value: <strong>10</strong>.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder pageSize(Integer pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
return this;
}
/**
* <p>The name or IP address of the server.</p>
*
* <strong>example:</strong>
* <p>192.168.XX.XX</p>
*/
public Builder remark(String remark) {
this.putQueryParameter("Remark", remark);
this.remark = remark;
return this;
}
/**
* <p>The name of the account to which the server belongs.</p>
*
* <strong>example:</strong>
* <p>bin</p>
*/
public Builder user(String user) {
this.putQueryParameter("User", user);
this.user = user;
return this;
}
/**
* <p>The UUID of the server.</p>
*
* <strong>example:</strong>
* <p>50d213b4-3a35-427a-b8a5-04b0c7e1****</p>
*/
public Builder uuid(String uuid) {
this.putQueryParameter("Uuid", uuid);
this.uuid = uuid;
return this;
}
@Override
public DescribePropertyUserDetailRequest build() {
return new DescribePropertyUserDetailRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribePropertyUserDetailResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribePropertyUserDetailResponse} extends {@link TeaModel}
*
* <p>DescribePropertyUserDetailResponse</p>
*/
public class DescribePropertyUserDetailResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private DescribePropertyUserDetailResponseBody body;
private DescribePropertyUserDetailResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribePropertyUserDetailResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public DescribePropertyUserDetailResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribePropertyUserDetailResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribePropertyUserDetailResponseBody body);
@Override
DescribePropertyUserDetailResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribePropertyUserDetailResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribePropertyUserDetailResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribePropertyUserDetailResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(DescribePropertyUserDetailResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribePropertyUserDetailResponse build() {
return new DescribePropertyUserDetailResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribePropertyUserDetailResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribePropertyUserDetailResponseBody} extends {@link TeaModel}
*
* <p>DescribePropertyUserDetailResponseBody</p>
*/
public class DescribePropertyUserDetailResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("PageInfo")
private PageInfo pageInfo;
@com.aliyun.core.annotation.NameInMap("Propertys")
private java.util.List<Propertys> propertys;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private DescribePropertyUserDetailResponseBody(Builder builder) {
this.pageInfo = builder.pageInfo;
this.propertys = builder.propertys;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static DescribePropertyUserDetailResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return pageInfo
*/
public PageInfo getPageInfo() {
return this.pageInfo;
}
/**
* @return propertys
*/
public java.util.List<Propertys> getPropertys() {
return this.propertys;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private PageInfo pageInfo;
private java.util.List<Propertys> propertys;
private String requestId;
private Builder() {
}
private Builder(DescribePropertyUserDetailResponseBody model) {
this.pageInfo = model.pageInfo;
this.propertys = model.propertys;
this.requestId = model.requestId;
}
/**
* <p>The pagination information.</p>
*/
public Builder pageInfo(PageInfo pageInfo) {
this.pageInfo = pageInfo;
return this;
}
/**
* <p>The details of asset fingerprints for the account.</p>
*/
public Builder propertys(java.util.List<Propertys> propertys) {
this.propertys = propertys;
return this;
}
/**
* <p>The ID of the request, which is used to locate and troubleshoot issues.</p>
*
* <strong>example:</strong>
* <p>33A71BE3-2CC2-14CB-B460-33A1DD82953A</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public DescribePropertyUserDetailResponseBody build() {
return new DescribePropertyUserDetailResponseBody(this);
}
}
/**
*
* {@link DescribePropertyUserDetailResponseBody} extends {@link TeaModel}
*
* <p>DescribePropertyUserDetailResponseBody</p>
*/
public static class PageInfo extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Count")
private Integer count;
@com.aliyun.core.annotation.NameInMap("CurrentPage")
private Integer currentPage;
@com.aliyun.core.annotation.NameInMap("PageSize")
private Integer pageSize;
@com.aliyun.core.annotation.NameInMap("TotalCount")
private Integer totalCount;
private PageInfo(Builder builder) {
this.count = builder.count;
this.currentPage = builder.currentPage;
this.pageSize = builder.pageSize;
this.totalCount = builder.totalCount;
}
public static Builder builder() {
return new Builder();
}
public static PageInfo create() {
return builder().build();
}
/**
* @return count
*/
public Integer getCount() {
return this.count;
}
/**
* @return currentPage
*/
public Integer getCurrentPage() {
return this.currentPage;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return totalCount
*/
public Integer getTotalCount() {
return this.totalCount;
}
public static final class Builder {
private Integer count;
private Integer currentPage;
private Integer pageSize;
private Integer totalCount;
private Builder() {
}
private Builder(PageInfo model) {
this.count = model.count;
this.currentPage = model.currentPage;
this.pageSize = model.pageSize;
this.totalCount = model.totalCount;
}
/**
* <p>The number of entries returned on the current page.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder count(Integer count) {
this.count = count;
return this;
}
/**
* <p>The page number of the returned page.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder currentPage(Integer currentPage) {
this.currentPage = currentPage;
return this;
}
/**
* <p>The number of entries returned per page. Default value: <strong>10</strong>.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder pageSize(Integer pageSize) {
this.pageSize = pageSize;
return this;
}
/**
* <p>The total number of entries returned.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder totalCount(Integer totalCount) {
this.totalCount = totalCount;
return this;
}
public PageInfo build() {
return new PageInfo(this);
}
}
}
/**
*
* {@link DescribePropertyUserDetailResponseBody} extends {@link TeaModel}
*
* <p>DescribePropertyUserDetailResponseBody</p>
*/
public static class Propertys extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AccountsExpirationDate")
private String accountsExpirationDate;
@com.aliyun.core.annotation.NameInMap("CreateTimestamp")
private Long createTimestamp;
@com.aliyun.core.annotation.NameInMap("GroupNames")
private java.util.List<String> groupNames;
@com.aliyun.core.annotation.NameInMap("InstanceId")
private String instanceId;
@com.aliyun.core.annotation.NameInMap("InstanceName")
private String instanceName;
@com.aliyun.core.annotation.NameInMap("InternetIp")
private String internetIp;
@com.aliyun.core.annotation.NameInMap("IntranetIp")
private String intranetIp;
@com.aliyun.core.annotation.NameInMap("Ip")
private String ip;
@com.aliyun.core.annotation.NameInMap("IsCouldLogin")
private Integer isCouldLogin;
@com.aliyun.core.annotation.NameInMap("IsPasswdExpired")
private Integer isPasswdExpired;
@com.aliyun.core.annotation.NameInMap("IsPasswdLocked")
private Integer isPasswdLocked;
@com.aliyun.core.annotation.NameInMap("IsRoot")
private String isRoot;
@com.aliyun.core.annotation.NameInMap("IsSudoer")
private Integer isSudoer;
@com.aliyun.core.annotation.NameInMap("IsUserExpired")
private Integer isUserExpired;
@com.aliyun.core.annotation.NameInMap("LastLoginIp")
private String lastLoginIp;
@com.aliyun.core.annotation.NameInMap("LastLoginTime")
private String lastLoginTime;
@com.aliyun.core.annotation.NameInMap("LastLoginTimeDt")
private Long lastLoginTimeDt;
@com.aliyun.core.annotation.NameInMap("LastLoginTimestamp")
private Long lastLoginTimestamp;
@com.aliyun.core.annotation.NameInMap("PasswordExpirationDate")
private String passwordExpirationDate;
@com.aliyun.core.annotation.NameInMap("Status")
private String status;
@com.aliyun.core.annotation.NameInMap("User")
private String user;
@com.aliyun.core.annotation.NameInMap("Uuid")
private String uuid;
private Propertys(Builder builder) {
this.accountsExpirationDate = builder.accountsExpirationDate;
this.createTimestamp = builder.createTimestamp;
this.groupNames = builder.groupNames;
this.instanceId = builder.instanceId;
this.instanceName = builder.instanceName;
this.internetIp = builder.internetIp;
this.intranetIp = builder.intranetIp;
this.ip = builder.ip;
this.isCouldLogin = builder.isCouldLogin;
this.isPasswdExpired = builder.isPasswdExpired;
this.isPasswdLocked = builder.isPasswdLocked;
this.isRoot = builder.isRoot;
this.isSudoer = builder.isSudoer;
this.isUserExpired = builder.isUserExpired;
this.lastLoginIp = builder.lastLoginIp;
this.lastLoginTime = builder.lastLoginTime;
this.lastLoginTimeDt = builder.lastLoginTimeDt;
this.lastLoginTimestamp = builder.lastLoginTimestamp;
this.passwordExpirationDate = builder.passwordExpirationDate;
this.status = builder.status;
this.user = builder.user;
this.uuid = builder.uuid;
}
public static Builder builder() {
return new Builder();
}
public static Propertys create() {
return builder().build();
}
/**
* @return accountsExpirationDate
*/
public String getAccountsExpirationDate() {
return this.accountsExpirationDate;
}
/**
* @return createTimestamp
*/
public Long getCreateTimestamp() {
return this.createTimestamp;
}
/**
* @return groupNames
*/
public java.util.List<String> getGroupNames() {
return this.groupNames;
}
/**
* @return instanceId
*/
public String getInstanceId() {
return this.instanceId;
}
/**
* @return instanceName
*/
public String getInstanceName() {
return this.instanceName;
}
/**
* @return internetIp
*/
public String getInternetIp() {
return this.internetIp;
}
/**
* @return intranetIp
*/
public String getIntranetIp() {
return this.intranetIp;
}
/**
* @return ip
*/
public String getIp() {
return this.ip;
}
/**
* @return isCouldLogin
*/
public Integer getIsCouldLogin() {
return this.isCouldLogin;
}
/**
* @return isPasswdExpired
*/
public Integer getIsPasswdExpired() {
return this.isPasswdExpired;
}
/**
* @return isPasswdLocked
*/
public Integer getIsPasswdLocked() {
return this.isPasswdLocked;
}
/**
* @return isRoot
*/
public String getIsRoot() {
return this.isRoot;
}
/**
* @return isSudoer
*/
public Integer getIsSudoer() {
return this.isSudoer;
}
/**
* @return isUserExpired
*/
public Integer getIsUserExpired() {
return this.isUserExpired;
}
/**
* @return lastLoginIp
*/
public String getLastLoginIp() {
return this.lastLoginIp;
}
/**
* @return lastLoginTime
*/
public String getLastLoginTime() {
return this.lastLoginTime;
}
/**
* @return lastLoginTimeDt
*/
public Long getLastLoginTimeDt() {
return this.lastLoginTimeDt;
}
/**
* @return lastLoginTimestamp
*/
public Long getLastLoginTimestamp() {
return this.lastLoginTimestamp;
}
/**
* @return passwordExpirationDate
*/
public String getPasswordExpirationDate() {
return this.passwordExpirationDate;
}
/**
* @return status
*/
public String getStatus() {
return this.status;
}
/**
* @return user
*/
public String getUser() {
return this.user;
}
/**
* @return uuid
*/
public String getUuid() {
return this.uuid;
}
public static final class Builder {
private String accountsExpirationDate;
private Long createTimestamp;
private java.util.List<String> groupNames;
private String instanceId;
private String instanceName;
private String internetIp;
private String intranetIp;
private String ip;
private Integer isCouldLogin;
private Integer isPasswdExpired;
private Integer isPasswdLocked;
private String isRoot;
private Integer isSudoer;
private Integer isUserExpired;
private String lastLoginIp;
private String lastLoginTime;
private Long lastLoginTimeDt;
private Long lastLoginTimestamp;
private String passwordExpirationDate;
private String status;
private String user;
private String uuid;
private Builder() {
}
private Builder(Propertys model) {
this.accountsExpirationDate = model.accountsExpirationDate;
this.createTimestamp = model.createTimestamp;
this.groupNames = model.groupNames;
this.instanceId = model.instanceId;
this.instanceName = model.instanceName;
this.internetIp = model.internetIp;
this.intranetIp = model.intranetIp;
this.ip = model.ip;
this.isCouldLogin = model.isCouldLogin;
this.isPasswdExpired = model.isPasswdExpired;
this.isPasswdLocked = model.isPasswdLocked;
this.isRoot = model.isRoot;
this.isSudoer = model.isSudoer;
this.isUserExpired = model.isUserExpired;
this.lastLoginIp = model.lastLoginIp;
this.lastLoginTime = model.lastLoginTime;
this.lastLoginTimeDt = model.lastLoginTimeDt;
this.lastLoginTimestamp = model.lastLoginTimestamp;
this.passwordExpirationDate = model.passwordExpirationDate;
this.status = model.status;
this.user = model.user;
this.uuid = model.uuid;
}
/**
* <p>The date on which the account expires.</p>
*
* <strong>example:</strong>
* <p>never</p>
*/
public Builder accountsExpirationDate(String accountsExpirationDate) {
this.accountsExpirationDate = accountsExpirationDate;
return this;
}
/**
* <p>The timestamp at which the last asset fingerprint collection is performed. Unit: milliseconds.</p>
*
* <strong>example:</strong>
* <p>1649149566000</p>
*/
public Builder createTimestamp(Long createTimestamp) {
this.createTimestamp = createTimestamp;
return this;
}
/**
* <p>The details of the user groups to which the account belongs.</p>
*/
public Builder groupNames(java.util.List<String> groupNames) {
this.groupNames = groupNames;
return this;
}
/**
* <p>The ID of the server.</p>
*
* <strong>example:</strong>
* <p>i-hp35tftuh52wbp1g****</p>
*/
public Builder instanceId(String instanceId) {
this.instanceId = instanceId;
return this;
}
/**
* <p>The name of the server.</p>
*
* <strong>example:</strong>
* <p>hc-host-****</p>
*/
public Builder instanceName(String instanceName) {
this.instanceName = instanceName;
return this;
}
/**
* <p>The public IP address of the server.</p>
*
* <strong>example:</strong>
* <p>192.168.XX.XX</p>
*/
public Builder internetIp(String internetIp) {
this.internetIp = internetIp;
return this;
}
/**
* <p>The private IP address of the server.</p>
*
* <strong>example:</strong>
* <p>100.104.XX.XX</p>
*/
public Builder intranetIp(String intranetIp) {
this.intranetIp = intranetIp;
return this;
}
/**
* <p>The IP addresses of the server.</p>
*
* <strong>example:</strong>
* <p>192.168.XX.XX</p>
*/
public Builder ip(String ip) {
this.ip = ip;
return this;
}
/**
* <p>Indicates whether the account is an interactive logon account. Valid values:</p>
* <ul>
* <li><strong>0</strong>: no</li>
* <li><strong>1</strong>: yes</li>
* </ul>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder isCouldLogin(Integer isCouldLogin) {
this.isCouldLogin = isCouldLogin;
return this;
}
/**
* <p>Indicates whether the password expires. Valid values:</p>
* <ul>
* <li><strong>0</strong>: yes</li>
* <li><strong>1</strong>: no</li>
* </ul>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder isPasswdExpired(Integer isPasswdExpired) {
this.isPasswdExpired = isPasswdExpired;
return this;
}
/**
* <p>Indicates whether the password is locked. Valid values:</p>
* <ul>
* <li><strong>0</strong>: yes</li>
* <li><strong>1</strong>: no</li>
* </ul>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder isPasswdLocked(Integer isPasswdLocked) {
this.isPasswdLocked = isPasswdLocked;
return this;
}
/**
* <p>Indicates whether the account has root permissions. Valid values:</p>
* <ul>
* <li><strong>0</strong>: no</li>
* <li><strong>1</strong>: yes</li>
* </ul>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder isRoot(String isRoot) {
this.isRoot = isRoot;
return this;
}
/**
* <p>Indicates whether the account is a sudo account. Valid values:</p>
* <ul>
* <li><strong>0</strong>: no</li>
* <li><strong>1</strong>: yes</li>
* </ul>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder isSudoer(Integer isSudoer) {
this.isSudoer = isSudoer;
return this;
}
/**
* <p>Indicates whether the account expires. Valid values:</p>
* <ul>
* <li><strong>0</strong>: yes</li>
* <li><strong>1</strong>: no</li>
* </ul>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder isUserExpired(Integer isUserExpired) {
this.isUserExpired = isUserExpired;
return this;
}
/**
* <p>The source IP address of the last logon to the account.</p>
*
* <strong>example:</strong>
* <p>192.168.XX.XX</p>
*/
public Builder lastLoginIp(String lastLoginIp) {
this.lastLoginIp = lastLoginIp;
return this;
}
/**
* <p>The last logon time of the account.</p>
*
* <strong>example:</strong>
* <p>2022-04-04 18:07:06</p>
*/
public Builder lastLoginTime(String lastLoginTime) {
this.lastLoginTime = lastLoginTime;
return this;
}
/**
* <p>The timestamp of the last logon to the account. Unit: milliseconds.</p>
*
* <strong>example:</strong>
* <p>1649066826000</p>
*/
public Builder lastLoginTimeDt(Long lastLoginTimeDt) {
this.lastLoginTimeDt = lastLoginTimeDt;
return this;
}
/**
* <p>The timestamp of the last logon to the account. Unit: milliseconds.</p>
*
* <strong>example:</strong>
* <p>1649066826000</p>
*/
public Builder lastLoginTimestamp(Long lastLoginTimestamp) {
this.lastLoginTimestamp = lastLoginTimestamp;
return this;
}
/**
* <p>The date on which the password of the account expires.</p>
*
* <strong>example:</strong>
* <p>never</p>
*/
public Builder passwordExpirationDate(String passwordExpirationDate) {
this.passwordExpirationDate = passwordExpirationDate;
return this;
}
/**
* <p>This parameter is deprecated. You can ignore it.</p>
*
* <strong>example:</strong>
* <p>**</p>
*/
public Builder status(String status) {
this.status = status;
return this;
}
/**
* <p>The name of the account.</p>
*
* <strong>example:</strong>
* <p>bin</p>
*/
public Builder user(String user) {
this.user = user;
return this;
}
/**
* <p>The UUID of the server.</p>
*
* <strong>example:</strong>
* <p>162eb349-c2d9-4f8b-805c-75b43d4c****</p>
*/
public Builder uuid(String uuid) {
this.uuid = uuid;
return this;
}
public Propertys build() {
return new Propertys(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribePropertyUserItemRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribePropertyUserItemRequest} extends {@link RequestModel}
*
* <p>DescribePropertyUserItemRequest</p>
*/
public class DescribePropertyUserItemRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("CurrentPage")
private Integer currentPage;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ForceFlush")
private Boolean forceFlush;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageSize")
private Integer pageSize;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("User")
private String user;
private DescribePropertyUserItemRequest(Builder builder) {
super(builder);
this.currentPage = builder.currentPage;
this.forceFlush = builder.forceFlush;
this.pageSize = builder.pageSize;
this.user = builder.user;
}
public static Builder builder() {
return new Builder();
}
public static DescribePropertyUserItemRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return currentPage
*/
public Integer getCurrentPage() {
return this.currentPage;
}
/**
* @return forceFlush
*/
public Boolean getForceFlush() {
return this.forceFlush;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return user
*/
public String getUser() {
return this.user;
}
public static final class Builder extends Request.Builder<DescribePropertyUserItemRequest, Builder> {
private Integer currentPage;
private Boolean forceFlush;
private Integer pageSize;
private String user;
private Builder() {
super();
}
private Builder(DescribePropertyUserItemRequest request) {
super(request);
this.currentPage = request.currentPage;
this.forceFlush = request.forceFlush;
this.pageSize = request.pageSize;
this.user = request.user;
}
/**
* <p>The number of the page to return.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder currentPage(Integer currentPage) {
this.putQueryParameter("CurrentPage", currentPage);
this.currentPage = currentPage;
return this;
}
/**
* <p>Specifies whether to forcefully refresh the data that you want to query. Valid values:</p>
* <ul>
* <li><strong>true</strong>: yes</li>
* <li><strong>false</strong>: no</li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder forceFlush(Boolean forceFlush) {
this.putQueryParameter("ForceFlush", forceFlush);
this.forceFlush = forceFlush;
return this;
}
/**
* <p>The number of entries to return on each page.</p>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder pageSize(Integer pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
return this;
}
/**
* <p>The information about the account.</p>
*
* <strong>example:</strong>
* <p>adm</p>
*/
public Builder user(String user) {
this.putQueryParameter("User", user);
this.user = user;
return this;
}
@Override
public DescribePropertyUserItemRequest build() {
return new DescribePropertyUserItemRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribePropertyUserItemResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribePropertyUserItemResponse} extends {@link TeaModel}
*
* <p>DescribePropertyUserItemResponse</p>
*/
public class DescribePropertyUserItemResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private DescribePropertyUserItemResponseBody body;
private DescribePropertyUserItemResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribePropertyUserItemResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public DescribePropertyUserItemResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribePropertyUserItemResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribePropertyUserItemResponseBody body);
@Override
DescribePropertyUserItemResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribePropertyUserItemResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribePropertyUserItemResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribePropertyUserItemResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(DescribePropertyUserItemResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribePropertyUserItemResponse build() {
return new DescribePropertyUserItemResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribePropertyUserItemResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribePropertyUserItemResponseBody} extends {@link TeaModel}
*
* <p>DescribePropertyUserItemResponseBody</p>
*/
public class DescribePropertyUserItemResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("PageInfo")
private PageInfo pageInfo;
@com.aliyun.core.annotation.NameInMap("PropertyItems")
private java.util.List<PropertyItems> propertyItems;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private DescribePropertyUserItemResponseBody(Builder builder) {
this.pageInfo = builder.pageInfo;
this.propertyItems = builder.propertyItems;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static DescribePropertyUserItemResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return pageInfo
*/
public PageInfo getPageInfo() {
return this.pageInfo;
}
/**
* @return propertyItems
*/
public java.util.List<PropertyItems> getPropertyItems() {
return this.propertyItems;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private PageInfo pageInfo;
private java.util.List<PropertyItems> propertyItems;
private String requestId;
private Builder() {
}
private Builder(DescribePropertyUserItemResponseBody model) {
this.pageInfo = model.pageInfo;
this.propertyItems = model.propertyItems;
this.requestId = model.requestId;
}
/**
* <p>The pagination information.</p>
*/
public Builder pageInfo(PageInfo pageInfo) {
this.pageInfo = pageInfo;
return this;
}
/**
* <p>An array that consists of the account information returned.</p>
*/
public Builder propertyItems(java.util.List<PropertyItems> propertyItems) {
this.propertyItems = propertyItems;
return this;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>76068BE2-F9C4-4EDD-967B-F503B8CCDD3D</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public DescribePropertyUserItemResponseBody build() {
return new DescribePropertyUserItemResponseBody(this);
}
}
/**
*
* {@link DescribePropertyUserItemResponseBody} extends {@link TeaModel}
*
* <p>DescribePropertyUserItemResponseBody</p>
*/
public static class PageInfo extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Count")
private Integer count;
@com.aliyun.core.annotation.NameInMap("CurrentPage")
private Integer currentPage;
@com.aliyun.core.annotation.NameInMap("PageSize")
private Integer pageSize;
@com.aliyun.core.annotation.NameInMap("TotalCount")
private Integer totalCount;
private PageInfo(Builder builder) {
this.count = builder.count;
this.currentPage = builder.currentPage;
this.pageSize = builder.pageSize;
this.totalCount = builder.totalCount;
}
public static Builder builder() {
return new Builder();
}
public static PageInfo create() {
return builder().build();
}
/**
* @return count
*/
public Integer getCount() {
return this.count;
}
/**
* @return currentPage
*/
public Integer getCurrentPage() {
return this.currentPage;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return totalCount
*/
public Integer getTotalCount() {
return this.totalCount;
}
public static final class Builder {
private Integer count;
private Integer currentPage;
private Integer pageSize;
private Integer totalCount;
private Builder() {
}
private Builder(PageInfo model) {
this.count = model.count;
this.currentPage = model.currentPage;
this.pageSize = model.pageSize;
this.totalCount = model.totalCount;
}
/**
* <p>The number of entries returned on the current page.</p>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder count(Integer count) {
this.count = count;
return this;
}
/**
* <p>The page number of the returned page.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder currentPage(Integer currentPage) {
this.currentPage = currentPage;
return this;
}
/**
* <p>The number of entries returned per page.</p>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder pageSize(Integer pageSize) {
this.pageSize = pageSize;
return this;
}
/**
* <p>The total number of entries returned.</p>
*
* <strong>example:</strong>
* <p>114</p>
*/
public Builder totalCount(Integer totalCount) {
this.totalCount = totalCount;
return this;
}
public PageInfo build() {
return new PageInfo(this);
}
}
}
/**
*
* {@link DescribePropertyUserItemResponseBody} extends {@link TeaModel}
*
* <p>DescribePropertyUserItemResponseBody</p>
*/
public static class PropertyItems extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Count")
private Integer count;
@com.aliyun.core.annotation.NameInMap("User")
private String user;
private PropertyItems(Builder builder) {
this.count = builder.count;
this.user = builder.user;
}
public static Builder builder() {
return new Builder();
}
public static PropertyItems create() {
return builder().build();
}
/**
* @return count
*/
public Integer getCount() {
return this.count;
}
/**
* @return user
*/
public String getUser() {
return this.user;
}
public static final class Builder {
private Integer count;
private String user;
private Builder() {
}
private Builder(PropertyItems model) {
this.count = model.count;
this.user = model.user;
}
/**
* <p>The number of servers that belong to the account.</p>
*
* <strong>example:</strong>
* <p>384</p>
*/
public Builder count(Integer count) {
this.count = count;
return this;
}
/**
* <p>The name of the account.</p>
*
* <strong>example:</strong>
* <p>adm</p>
*/
public Builder user(String user) {
this.user = user;
return this;
}
public PropertyItems build() {
return new PropertyItems(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeQuaraFileDownloadInfoRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeQuaraFileDownloadInfoRequest} extends {@link RequestModel}
*
* <p>DescribeQuaraFileDownloadInfoRequest</p>
*/
public class DescribeQuaraFileDownloadInfoRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("From")
private String from;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("QuaraFileId")
private Integer quaraFileId;
private DescribeQuaraFileDownloadInfoRequest(Builder builder) {
super(builder);
this.from = builder.from;
this.quaraFileId = builder.quaraFileId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeQuaraFileDownloadInfoRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return from
*/
public String getFrom() {
return this.from;
}
/**
* @return quaraFileId
*/
public Integer getQuaraFileId() {
return this.quaraFileId;
}
public static final class Builder extends Request.Builder<DescribeQuaraFileDownloadInfoRequest, Builder> {
private String from;
private Integer quaraFileId;
private Builder() {
super();
}
private Builder(DescribeQuaraFileDownloadInfoRequest request) {
super(request);
this.from = request.from;
this.quaraFileId = request.quaraFileId;
}
/**
* <p>The ID of the request source. Set the value to sas.</p>
*
* <strong>example:</strong>
* <p>sas</p>
*/
public Builder from(String from) {
this.putQueryParameter("From", from);
this.from = from;
return this;
}
/**
* <p>The ID of the quarantined file.</p>
* <blockquote>
* <p>If you do not specify this parameter, you cannot call the RollbackSuspEventQuaraFile operation to restore a quarantined file. You can call the <a href="~~DescribeSuspEventQuaraFiles~~">DescribeSuspEventQuaraFiles</a> operation to query the IDs of quarantined files.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>123</p>
*/
public Builder quaraFileId(Integer quaraFileId) {
this.putQueryParameter("QuaraFileId", quaraFileId);
this.quaraFileId = quaraFileId;
return this;
}
@Override
public DescribeQuaraFileDownloadInfoRequest build() {
return new DescribeQuaraFileDownloadInfoRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeQuaraFileDownloadInfoResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeQuaraFileDownloadInfoResponse} extends {@link TeaModel}
*
* <p>DescribeQuaraFileDownloadInfoResponse</p>
*/
public class DescribeQuaraFileDownloadInfoResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private DescribeQuaraFileDownloadInfoResponseBody body;
private DescribeQuaraFileDownloadInfoResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeQuaraFileDownloadInfoResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public DescribeQuaraFileDownloadInfoResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeQuaraFileDownloadInfoResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeQuaraFileDownloadInfoResponseBody body);
@Override
DescribeQuaraFileDownloadInfoResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeQuaraFileDownloadInfoResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeQuaraFileDownloadInfoResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeQuaraFileDownloadInfoResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(DescribeQuaraFileDownloadInfoResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeQuaraFileDownloadInfoResponse build() {
return new DescribeQuaraFileDownloadInfoResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeQuaraFileDownloadInfoResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeQuaraFileDownloadInfoResponseBody} extends {@link TeaModel}
*
* <p>DescribeQuaraFileDownloadInfoResponseBody</p>
*/
public class DescribeQuaraFileDownloadInfoResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("DownloadUrl")
private String downloadUrl;
@com.aliyun.core.annotation.NameInMap("Md5")
private String md5;
@com.aliyun.core.annotation.NameInMap("Path")
private String path;
@com.aliyun.core.annotation.NameInMap("QuaraFileId")
private Integer quaraFileId;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("Tag")
private String tag;
@com.aliyun.core.annotation.NameInMap("Uuid")
private String uuid;
private DescribeQuaraFileDownloadInfoResponseBody(Builder builder) {
this.downloadUrl = builder.downloadUrl;
this.md5 = builder.md5;
this.path = builder.path;
this.quaraFileId = builder.quaraFileId;
this.requestId = builder.requestId;
this.tag = builder.tag;
this.uuid = builder.uuid;
}
public static Builder builder() {
return new Builder();
}
public static DescribeQuaraFileDownloadInfoResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return downloadUrl
*/
public String getDownloadUrl() {
return this.downloadUrl;
}
/**
* @return md5
*/
public String getMd5() {
return this.md5;
}
/**
* @return path
*/
public String getPath() {
return this.path;
}
/**
* @return quaraFileId
*/
public Integer getQuaraFileId() {
return this.quaraFileId;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return tag
*/
public String getTag() {
return this.tag;
}
/**
* @return uuid
*/
public String getUuid() {
return this.uuid;
}
public static final class Builder {
private String downloadUrl;
private String md5;
private String path;
private Integer quaraFileId;
private String requestId;
private String tag;
private String uuid;
private Builder() {
}
private Builder(DescribeQuaraFileDownloadInfoResponseBody model) {
this.downloadUrl = model.downloadUrl;
this.md5 = model.md5;
this.path = model.path;
this.quaraFileId = model.quaraFileId;
this.requestId = model.requestId;
this.tag = model.tag;
this.uuid = model.uuid;
}
/**
* <p>The URL that is used to download the file. The URL is valid for five minutes.</p>
*
* <strong>example:</strong>
* <p><a href="https://xxxxxxxx.oss-cn-hangzhou-1.aliyuncs.com/xxxxx/xxxxxxxxxxxxxx?Expires=1671448125&OSSAccessKeyId=xxx">https://xxxxxxxx.oss-cn-hangzhou-1.aliyuncs.com/xxxxx/xxxxxxxxxxxxxx?Expires=1671448125&OSSAccessKeyId=xxx</a></p>
*/
public Builder downloadUrl(String downloadUrl) {
this.downloadUrl = downloadUrl;
return this;
}
/**
* <p>The MD5 hash value of the quarantined file.</p>
*
* <strong>example:</strong>
* <p>bb62ef1311bc564377a0378d3axxxxxx</p>
*/
public Builder md5(String md5) {
this.md5 = md5;
return this;
}
/**
* <p>The file path.</p>
*
* <strong>example:</strong>
* <p>/etc/test</p>
*/
public Builder path(String path) {
this.path = path;
return this;
}
/**
* <p>The ID of the quarantined file.</p>
*
* <strong>example:</strong>
* <p>123</p>
*/
public Builder quaraFileId(Integer quaraFileId) {
this.quaraFileId = quaraFileId;
return this;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>29874225-EAAC-5415-8501-32DD20FXXXXX</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The tag that is added to the related alert.</p>
*
* <strong>example:</strong>
* <p>6d4ff40a22b15c86adecf2aa48xxxxx</p>
*/
public Builder tag(String tag) {
this.tag = tag;
return this;
}
/**
* <p>The UUID of the server.</p>
*
* <strong>example:</strong>
* <p>4fe8e1cd-3c37-4851-b9de-124da32c****</p>
*/
public Builder uuid(String uuid) {
this.uuid = uuid;
return this;
}
public DescribeQuaraFileDownloadInfoResponseBody build() {
return new DescribeQuaraFileDownloadInfoResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeReportExportRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeReportExportRequest} extends {@link RequestModel}
*
* <p>DescribeReportExportRequest</p>
*/
public class DescribeReportExportRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ExportId")
@com.aliyun.core.annotation.Validation(required = true)
private Long exportId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Lang")
private String lang;
private DescribeReportExportRequest(Builder builder) {
super(builder);
this.exportId = builder.exportId;
this.lang = builder.lang;
}
public static Builder builder() {
return new Builder();
}
public static DescribeReportExportRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return exportId
*/
public Long getExportId() {
return this.exportId;
}
/**
* @return lang
*/
public String getLang() {
return this.lang;
}
public static final class Builder extends Request.Builder<DescribeReportExportRequest, Builder> {
private Long exportId;
private String lang;
private Builder() {
super();
}
private Builder(DescribeReportExportRequest request) {
super(request);
this.exportId = request.exportId;
this.lang = request.lang;
}
/**
* <p>The ID of the export task.</p>
* <blockquote>
* <p> You can call the <a href="https://help.aliyun.com/document_detail/2842677.html">ExportCustomizeReport</a> operation to query the ID.</p>
* </blockquote>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder exportId(Long exportId) {
this.putQueryParameter("ExportId", exportId);
this.exportId = exportId;
return this;
}
/**
* <p>The language of the content within the request and response. Default value: <strong>zh</strong>. Valid values:</p>
* <ul>
* <li><strong>zh</strong>: Chinese</li>
* <li><strong>en</strong>: English</li>
* </ul>
*
* <strong>example:</strong>
* <p>zh</p>
*/
public Builder lang(String lang) {
this.putQueryParameter("Lang", lang);
this.lang = lang;
return this;
}
@Override
public DescribeReportExportRequest build() {
return new DescribeReportExportRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeReportExportResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeReportExportResponse} extends {@link TeaModel}
*
* <p>DescribeReportExportResponse</p>
*/
public class DescribeReportExportResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private DescribeReportExportResponseBody body;
private DescribeReportExportResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeReportExportResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public DescribeReportExportResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeReportExportResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeReportExportResponseBody body);
@Override
DescribeReportExportResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeReportExportResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeReportExportResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeReportExportResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(DescribeReportExportResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeReportExportResponse build() {
return new DescribeReportExportResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeReportExportResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeReportExportResponseBody} extends {@link TeaModel}
*
* <p>DescribeReportExportResponseBody</p>
*/
public class DescribeReportExportResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("DownloadUrl")
private String downloadUrl;
@com.aliyun.core.annotation.NameInMap("ExportDate")
private String exportDate;
@com.aliyun.core.annotation.NameInMap("ExportId")
private Long exportId;
@com.aliyun.core.annotation.NameInMap("ExportStatus")
private String exportStatus;
@com.aliyun.core.annotation.NameInMap("ReportId")
private Long reportId;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("UrlExpiredTime")
private Long urlExpiredTime;
private DescribeReportExportResponseBody(Builder builder) {
this.downloadUrl = builder.downloadUrl;
this.exportDate = builder.exportDate;
this.exportId = builder.exportId;
this.exportStatus = builder.exportStatus;
this.reportId = builder.reportId;
this.requestId = builder.requestId;
this.urlExpiredTime = builder.urlExpiredTime;
}
public static Builder builder() {
return new Builder();
}
public static DescribeReportExportResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return downloadUrl
*/
public String getDownloadUrl() {
return this.downloadUrl;
}
/**
* @return exportDate
*/
public String getExportDate() {
return this.exportDate;
}
/**
* @return exportId
*/
public Long getExportId() {
return this.exportId;
}
/**
* @return exportStatus
*/
public String getExportStatus() {
return this.exportStatus;
}
/**
* @return reportId
*/
public Long getReportId() {
return this.reportId;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return urlExpiredTime
*/
public Long getUrlExpiredTime() {
return this.urlExpiredTime;
}
public static final class Builder {
private String downloadUrl;
private String exportDate;
private Long exportId;
private String exportStatus;
private Long reportId;
private String requestId;
private Long urlExpiredTime;
private Builder() {
}
private Builder(DescribeReportExportResponseBody model) {
this.downloadUrl = model.downloadUrl;
this.exportDate = model.exportDate;
this.exportId = model.exportId;
this.exportStatus = model.exportStatus;
this.reportId = model.reportId;
this.requestId = model.requestId;
this.urlExpiredTime = model.urlExpiredTime;
}
/**
* <p>The download URL of the report.</p>
*
* <strong>example:</strong>
* <p><a href="https://xxxxxxxx.oss-cn-hangzhou-1.aliyuncs.com/xxxxx/xxxxxxxxxxxxxx?Expires=1671448125&OSSAccessKeyId=xxx">https://xxxxxxxx.oss-cn-hangzhou-1.aliyuncs.com/xxxxx/xxxxxxxxxxxxxx?Expires=1671448125&OSSAccessKeyId=xxx</a></p>
*/
public Builder downloadUrl(String downloadUrl) {
this.downloadUrl = downloadUrl;
return this;
}
/**
* <p>The time when the report was exported.</p>
*
* <strong>example:</strong>
* <p>2022-12-15</p>
*/
public Builder exportDate(String exportDate) {
this.exportDate = exportDate;
return this;
}
/**
* <p>The ID of the export task.</p>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder exportId(Long exportId) {
this.exportId = exportId;
return this;
}
/**
* <p>The status of the export task. Valid values:</p>
* <ul>
* <li><strong>-1</strong>: The export task fails.</li>
* <li><strong>0</strong>: The export task is being initialized.</li>
* <li><strong>1</strong>: The export task is being executed.</li>
* <li><strong>2</strong>: The export task is successful.</li>
* </ul>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder exportStatus(String exportStatus) {
this.exportStatus = exportStatus;
return this;
}
/**
* <p>The ID of the report.</p>
*
* <strong>example:</strong>
* <p>377665</p>
*/
public Builder reportId(Long reportId) {
this.reportId = reportId;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>79CFF74D-E967-5407-8A78-EE03B925FDAA</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The timestamp when the download URL expires. Unit: milliseconds.</p>
*
* <strong>example:</strong>
* <p>1660113647000</p>
*/
public Builder urlExpiredTime(Long urlExpiredTime) {
this.urlExpiredTime = urlExpiredTime;
return this;
}
public DescribeReportExportResponseBody build() {
return new DescribeReportExportResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeReportRecipientStatusRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeReportRecipientStatusRequest} extends {@link RequestModel}
*
* <p>DescribeReportRecipientStatusRequest</p>
*/
public class DescribeReportRecipientStatusRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Lang")
private String lang;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Recipients")
@com.aliyun.core.annotation.Validation(required = true)
private String recipients;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SourceIp")
private String sourceIp;
private DescribeReportRecipientStatusRequest(Builder builder) {
super(builder);
this.lang = builder.lang;
this.recipients = builder.recipients;
this.sourceIp = builder.sourceIp;
}
public static Builder builder() {
return new Builder();
}
public static DescribeReportRecipientStatusRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return lang
*/
public String getLang() {
return this.lang;
}
/**
* @return recipients
*/
public String getRecipients() {
return this.recipients;
}
/**
* @return sourceIp
*/
public String getSourceIp() {
return this.sourceIp;
}
public static final class Builder extends Request.Builder<DescribeReportRecipientStatusRequest, Builder> {
private String lang;
private String recipients;
private String sourceIp;
private Builder() {
super();
}
private Builder(DescribeReportRecipientStatusRequest request) {
super(request);
this.lang = request.lang;
this.recipients = request.recipients;
this.sourceIp = request.sourceIp;
}
/**
* <p>The language of the content within the request and response. Default value: <strong>zh</strong>. Valid values:</p>
* <ul>
* <li><strong>zh</strong>: Chinese</li>
* <li><strong>en</strong>: English</li>
* </ul>
*
* <strong>example:</strong>
* <p>zh</p>
*/
public Builder lang(String lang) {
this.putQueryParameter("Lang", lang);
this.lang = lang;
return this;
}
/**
* <p>The email address of the recipient. Separate multiple email addresses with commas (,).</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p><a href="mailto:username@example.com">username@example.com</a>,<a href="mailto:username@example.com">username@example.com</a></p>
*/
public Builder recipients(String recipients) {
this.putQueryParameter("Recipients", recipients);
this.recipients = recipients;
return this;
}
/**
* <p>The source IP address of the request.</p>
*
* <strong>example:</strong>
* <p>39.174.xxx.xxx</p>
*/
public Builder sourceIp(String sourceIp) {
this.putQueryParameter("SourceIp", sourceIp);
this.sourceIp = sourceIp;
return this;
}
@Override
public DescribeReportRecipientStatusRequest build() {
return new DescribeReportRecipientStatusRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeReportRecipientStatusResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeReportRecipientStatusResponse} extends {@link TeaModel}
*
* <p>DescribeReportRecipientStatusResponse</p>
*/
public class DescribeReportRecipientStatusResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private DescribeReportRecipientStatusResponseBody body;
private DescribeReportRecipientStatusResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeReportRecipientStatusResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public DescribeReportRecipientStatusResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeReportRecipientStatusResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeReportRecipientStatusResponseBody body);
@Override
DescribeReportRecipientStatusResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeReportRecipientStatusResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeReportRecipientStatusResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeReportRecipientStatusResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(DescribeReportRecipientStatusResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeReportRecipientStatusResponse build() {
return new DescribeReportRecipientStatusResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeReportRecipientStatusResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeReportRecipientStatusResponseBody} extends {@link TeaModel}
*
* <p>DescribeReportRecipientStatusResponseBody</p>
*/
public class DescribeReportRecipientStatusResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ReportRecipientList")
private java.util.List<ReportRecipientList> reportRecipientList;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private DescribeReportRecipientStatusResponseBody(Builder builder) {
this.reportRecipientList = builder.reportRecipientList;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeReportRecipientStatusResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return reportRecipientList
*/
public java.util.List<ReportRecipientList> getReportRecipientList() {
return this.reportRecipientList;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private java.util.List<ReportRecipientList> reportRecipientList;
private String requestId;
private Builder() {
}
private Builder(DescribeReportRecipientStatusResponseBody model) {
this.reportRecipientList = model.reportRecipientList;
this.requestId = model.requestId;
}
/**
* <p>The report recipients.</p>
*/
public Builder reportRecipientList(java.util.List<ReportRecipientList> reportRecipientList) {
this.reportRecipientList = reportRecipientList;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>D65AADFC-1D20-5A6A-8F6A-9FA53C0DC1F8</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public DescribeReportRecipientStatusResponseBody build() {
return new DescribeReportRecipientStatusResponseBody(this);
}
}
/**
*
* {@link DescribeReportRecipientStatusResponseBody} extends {@link TeaModel}
*
* <p>DescribeReportRecipientStatusResponseBody</p>
*/
public static class ReportRecipientList extends TeaModel {
@com.aliyun.core.annotation.NameInMap("IsVerify")
private Integer isVerify;
@com.aliyun.core.annotation.NameInMap("Recipient")
private String recipient;
private ReportRecipientList(Builder builder) {
this.isVerify = builder.isVerify;
this.recipient = builder.recipient;
}
public static Builder builder() {
return new Builder();
}
public static ReportRecipientList create() {
return builder().build();
}
/**
* @return isVerify
*/
public Integer getIsVerify() {
return this.isVerify;
}
/**
* @return recipient
*/
public String getRecipient() {
return this.recipient;
}
public static final class Builder {
private Integer isVerify;
private String recipient;
private Builder() {
}
private Builder(ReportRecipientList model) {
this.isVerify = model.isVerify;
this.recipient = model.recipient;
}
/**
* <p>Indicates whether the email address is verified. Valid values:</p>
* <ul>
* <li>0: no</li>
* <li>1: yes</li>
* </ul>
* <blockquote>
* <p> If no email is specified when you create a report, the value of this parameter is empty.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder isVerify(Integer isVerify) {
this.isVerify = isVerify;
return this;
}
/**
* <p>The email address of the report recipient.</p>
* <blockquote>
* <p> If no email is specified when you create a report, the value of this parameter is empty.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p><a href="mailto:username@example.com">username@example.com</a></p>
*/
public Builder recipient(String recipient) {
this.recipient = recipient;
return this;
}
public ReportRecipientList build() {
return new ReportRecipientList(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeRestoreJobsRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeRestoreJobsRequest} extends {@link RequestModel}
*
* <p>DescribeRestoreJobsRequest</p>
*/
public class DescribeRestoreJobsRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("CurrentPage")
@com.aliyun.core.annotation.Validation(required = true)
private Integer currentPage;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("MachineRemark")
private String machineRemark;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageSize")
@com.aliyun.core.annotation.Validation(required = true)
private Integer pageSize;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Status")
private String status;
private DescribeRestoreJobsRequest(Builder builder) {
super(builder);
this.currentPage = builder.currentPage;
this.machineRemark = builder.machineRemark;
this.pageSize = builder.pageSize;
this.status = builder.status;
}
public static Builder builder() {
return new Builder();
}
public static DescribeRestoreJobsRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return currentPage
*/
public Integer getCurrentPage() {
return this.currentPage;
}
/**
* @return machineRemark
*/
public String getMachineRemark() {
return this.machineRemark;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return status
*/
public String getStatus() {
return this.status;
}
public static final class Builder extends Request.Builder<DescribeRestoreJobsRequest, Builder> {
private Integer currentPage;
private String machineRemark;
private Integer pageSize;
private String status;
private Builder() {
super();
}
private Builder(DescribeRestoreJobsRequest request) {
super(request);
this.currentPage = request.currentPage;
this.machineRemark = request.machineRemark;
this.pageSize = request.pageSize;
this.status = request.status;
}
/**
* <p>The number of the page to return. Default value: <strong>1</strong>.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder currentPage(Integer currentPage) {
this.putQueryParameter("CurrentPage", currentPage);
this.currentPage = currentPage;
return this;
}
/**
* <p>The unique identifier of the server on which the restoration task is run. For example, you can use the IP address or the name of the server.</p>
*
* <strong>example:</strong>
* <p>1.1.XX.XX</p>
*/
public Builder machineRemark(String machineRemark) {
this.putQueryParameter("MachineRemark", machineRemark);
this.machineRemark = machineRemark;
return this;
}
/**
* <p>The number of entries to return on each page. Default value: <strong>10</strong>.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder pageSize(Integer pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
return this;
}
/**
* <p>The status of the restoration task. Valid values:</p>
* <ul>
* <li><strong>RUNNING</strong>: The task is running.</li>
* <li><strong>COMPLETE</strong>: The task is complete.</li>
* <li><strong>FAILED</strong>: The task fails.</li>
* <li><strong>CANCELING</strong>: The task is being canceled.</li>
* <li><strong>CANCELED</strong>: The task is canceled.</li>
* <li><strong>PARTIAL_COMPLETE</strong>: The task is partially successful.</li>
* <li><strong>CREATED</strong>: The task is created but is not run.</li>
* <li><strong>EXPIRED</strong>: The task is not updated.</li>
* <li><strong>QUEUED</strong>: The task is waiting to be run.</li>
* <li><strong>CLIENT_DELETED</strong>: The task fails because the anti-ransomware agent is uninstalled.</li>
* </ul>
*
* <strong>example:</strong>
* <p>RUNNING</p>
*/
public Builder status(String status) {
this.putQueryParameter("Status", status);
this.status = status;
return this;
}
@Override
public DescribeRestoreJobsRequest build() {
return new DescribeRestoreJobsRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeRestoreJobsResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeRestoreJobsResponse} extends {@link TeaModel}
*
* <p>DescribeRestoreJobsResponse</p>
*/
public class DescribeRestoreJobsResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private DescribeRestoreJobsResponseBody body;
private DescribeRestoreJobsResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeRestoreJobsResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public DescribeRestoreJobsResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeRestoreJobsResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeRestoreJobsResponseBody body);
@Override
DescribeRestoreJobsResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeRestoreJobsResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeRestoreJobsResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeRestoreJobsResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(DescribeRestoreJobsResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeRestoreJobsResponse build() {
return new DescribeRestoreJobsResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeRestoreJobsResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeRestoreJobsResponseBody} extends {@link TeaModel}
*
* <p>DescribeRestoreJobsResponseBody</p>
*/
public class DescribeRestoreJobsResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("PageInfo")
private PageInfo pageInfo;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("RestoreJobs")
private java.util.List<RestoreJobs> restoreJobs;
private DescribeRestoreJobsResponseBody(Builder builder) {
this.pageInfo = builder.pageInfo;
this.requestId = builder.requestId;
this.restoreJobs = builder.restoreJobs;
}
public static Builder builder() {
return new Builder();
}
public static DescribeRestoreJobsResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return pageInfo
*/
public PageInfo getPageInfo() {
return this.pageInfo;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return restoreJobs
*/
public java.util.List<RestoreJobs> getRestoreJobs() {
return this.restoreJobs;
}
public static final class Builder {
private PageInfo pageInfo;
private String requestId;
private java.util.List<RestoreJobs> restoreJobs;
private Builder() {
}
private Builder(DescribeRestoreJobsResponseBody model) {
this.pageInfo = model.pageInfo;
this.requestId = model.requestId;
this.restoreJobs = model.restoreJobs;
}
/**
* <p>The pagination information.</p>
*/
public Builder pageInfo(PageInfo pageInfo) {
this.pageInfo = pageInfo;
return this;
}
/**
* <p>The ID of the request, which is used to locate and troubleshoot issues.</p>
*
* <strong>example:</strong>
* <p>0ED92280-4363-57D3-A4D3-4D3FBC99B29F</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The details about the restoration tasks.</p>
*/
public Builder restoreJobs(java.util.List<RestoreJobs> restoreJobs) {
this.restoreJobs = restoreJobs;
return this;
}
public DescribeRestoreJobsResponseBody build() {
return new DescribeRestoreJobsResponseBody(this);
}
}
/**
*
* {@link DescribeRestoreJobsResponseBody} extends {@link TeaModel}
*
* <p>DescribeRestoreJobsResponseBody</p>
*/
public static class PageInfo extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Count")
private Integer count;
@com.aliyun.core.annotation.NameInMap("CurrentPage")
private Integer currentPage;
@com.aliyun.core.annotation.NameInMap("PageSize")
private Integer pageSize;
@com.aliyun.core.annotation.NameInMap("TotalCount")
private Integer totalCount;
private PageInfo(Builder builder) {
this.count = builder.count;
this.currentPage = builder.currentPage;
this.pageSize = builder.pageSize;
this.totalCount = builder.totalCount;
}
public static Builder builder() {
return new Builder();
}
public static PageInfo create() {
return builder().build();
}
/**
* @return count
*/
public Integer getCount() {
return this.count;
}
/**
* @return currentPage
*/
public Integer getCurrentPage() {
return this.currentPage;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return totalCount
*/
public Integer getTotalCount() {
return this.totalCount;
}
public static final class Builder {
private Integer count;
private Integer currentPage;
private Integer pageSize;
private Integer totalCount;
private Builder() {
}
private Builder(PageInfo model) {
this.count = model.count;
this.currentPage = model.currentPage;
this.pageSize = model.pageSize;
this.totalCount = model.totalCount;
}
/**
* <p>The number of restoration tasks returned on the current page.</p>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder count(Integer count) {
this.count = count;
return this;
}
/**
* <p>The page number of the returned page.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder currentPage(Integer currentPage) {
this.currentPage = currentPage;
return this;
}
/**
* <p>The number of entries returned per page. Default value: <strong>10</strong>.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder pageSize(Integer pageSize) {
this.pageSize = pageSize;
return this;
}
/**
* <p>The total number of restoration tasks returned.</p>
*
* <strong>example:</strong>
* <p>69</p>
*/
public Builder totalCount(Integer totalCount) {
this.totalCount = totalCount;
return this;
}
public PageInfo build() {
return new PageInfo(this);
}
}
}
/**
*
* {@link DescribeRestoreJobsResponseBody} extends {@link TeaModel}
*
* <p>DescribeRestoreJobsResponseBody</p>
*/
public static class RestoreJobs extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ActualBytes")
private Long actualBytes;
@com.aliyun.core.annotation.NameInMap("BytesDone")
private Long bytesDone;
@com.aliyun.core.annotation.NameInMap("BytesTotal")
private Long bytesTotal;
@com.aliyun.core.annotation.NameInMap("ClientId")
private String clientId;
@com.aliyun.core.annotation.NameInMap("CompleteTime")
private Long completeTime;
@com.aliyun.core.annotation.NameInMap("CreatedTime")
private Long createdTime;
@com.aliyun.core.annotation.NameInMap("Duration")
private Long duration;
@com.aliyun.core.annotation.NameInMap("ErrorCount")
private Long errorCount;
@com.aliyun.core.annotation.NameInMap("ErrorFile")
private String errorFile;
@com.aliyun.core.annotation.NameInMap("ErrorFileUrl")
private String errorFileUrl;
@com.aliyun.core.annotation.NameInMap("ErrorType")
private String errorType;
@com.aliyun.core.annotation.NameInMap("Eta")
private Long eta;
@com.aliyun.core.annotation.NameInMap("Excludes")
private String excludes;
@com.aliyun.core.annotation.NameInMap("ExitCode")
private String exitCode;
@com.aliyun.core.annotation.NameInMap("GmtCreate")
private String gmtCreate;
@com.aliyun.core.annotation.NameInMap("GmtModified")
private String gmtModified;
@com.aliyun.core.annotation.NameInMap("Includes")
private String includes;
@com.aliyun.core.annotation.NameInMap("InstanceId")
private String instanceId;
@com.aliyun.core.annotation.NameInMap("InstanceName")
private String instanceName;
@com.aliyun.core.annotation.NameInMap("InternetIp")
private String internetIp;
@com.aliyun.core.annotation.NameInMap("IntranetIp")
private String intranetIp;
@com.aliyun.core.annotation.NameInMap("ItemsDone")
private Long itemsDone;
@com.aliyun.core.annotation.NameInMap("ItemsTotal")
private Long itemsTotal;
@com.aliyun.core.annotation.NameInMap("Message")
private String message;
@com.aliyun.core.annotation.NameInMap("Percentage")
private Integer percentage;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("RestoreId")
private String restoreId;
@com.aliyun.core.annotation.NameInMap("RestoreName")
private String restoreName;
@com.aliyun.core.annotation.NameInMap("RestoreType")
private String restoreType;
@com.aliyun.core.annotation.NameInMap("SnapshotHash")
private String snapshotHash;
@com.aliyun.core.annotation.NameInMap("SnapshotId")
private String snapshotId;
@com.aliyun.core.annotation.NameInMap("SnapshotVersion")
private String snapshotVersion;
@com.aliyun.core.annotation.NameInMap("Source")
private String source;
@com.aliyun.core.annotation.NameInMap("SourceClientId")
private String sourceClientId;
@com.aliyun.core.annotation.NameInMap("Speed")
private Long speed;
@com.aliyun.core.annotation.NameInMap("Status")
private String status;
@com.aliyun.core.annotation.NameInMap("Target")
private String target;
@com.aliyun.core.annotation.NameInMap("UpdatedTime")
private Long updatedTime;
@com.aliyun.core.annotation.NameInMap("Uuid")
private String uuid;
@com.aliyun.core.annotation.NameInMap("VaultId")
private String vaultId;
@com.aliyun.core.annotation.NameInMap("VaultRegionId")
private String vaultRegionId;
private RestoreJobs(Builder builder) {
this.actualBytes = builder.actualBytes;
this.bytesDone = builder.bytesDone;
this.bytesTotal = builder.bytesTotal;
this.clientId = builder.clientId;
this.completeTime = builder.completeTime;
this.createdTime = builder.createdTime;
this.duration = builder.duration;
this.errorCount = builder.errorCount;
this.errorFile = builder.errorFile;
this.errorFileUrl = builder.errorFileUrl;
this.errorType = builder.errorType;
this.eta = builder.eta;
this.excludes = builder.excludes;
this.exitCode = builder.exitCode;
this.gmtCreate = builder.gmtCreate;
this.gmtModified = builder.gmtModified;
this.includes = builder.includes;
this.instanceId = builder.instanceId;
this.instanceName = builder.instanceName;
this.internetIp = builder.internetIp;
this.intranetIp = builder.intranetIp;
this.itemsDone = builder.itemsDone;
this.itemsTotal = builder.itemsTotal;
this.message = builder.message;
this.percentage = builder.percentage;
this.requestId = builder.requestId;
this.restoreId = builder.restoreId;
this.restoreName = builder.restoreName;
this.restoreType = builder.restoreType;
this.snapshotHash = builder.snapshotHash;
this.snapshotId = builder.snapshotId;
this.snapshotVersion = builder.snapshotVersion;
this.source = builder.source;
this.sourceClientId = builder.sourceClientId;
this.speed = builder.speed;
this.status = builder.status;
this.target = builder.target;
this.updatedTime = builder.updatedTime;
this.uuid = builder.uuid;
this.vaultId = builder.vaultId;
this.vaultRegionId = builder.vaultRegionId;
}
public static Builder builder() {
return new Builder();
}
public static RestoreJobs create() {
return builder().build();
}
/**
* @return actualBytes
*/
public Long getActualBytes() {
return this.actualBytes;
}
/**
* @return bytesDone
*/
public Long getBytesDone() {
return this.bytesDone;
}
/**
* @return bytesTotal
*/
public Long getBytesTotal() {
return this.bytesTotal;
}
/**
* @return clientId
*/
public String getClientId() {
return this.clientId;
}
/**
* @return completeTime
*/
public Long getCompleteTime() {
return this.completeTime;
}
/**
* @return createdTime
*/
public Long getCreatedTime() {
return this.createdTime;
}
/**
* @return duration
*/
public Long getDuration() {
return this.duration;
}
/**
* @return errorCount
*/
public Long getErrorCount() {
return this.errorCount;
}
/**
* @return errorFile
*/
public String getErrorFile() {
return this.errorFile;
}
/**
* @return errorFileUrl
*/
public String getErrorFileUrl() {
return this.errorFileUrl;
}
/**
* @return errorType
*/
public String getErrorType() {
return this.errorType;
}
/**
* @return eta
*/
public Long getEta() {
return this.eta;
}
/**
* @return excludes
*/
public String getExcludes() {
return this.excludes;
}
/**
* @return exitCode
*/
public String getExitCode() {
return this.exitCode;
}
/**
* @return gmtCreate
*/
public String getGmtCreate() {
return this.gmtCreate;
}
/**
* @return gmtModified
*/
public String getGmtModified() {
return this.gmtModified;
}
/**
* @return includes
*/
public String getIncludes() {
return this.includes;
}
/**
* @return instanceId
*/
public String getInstanceId() {
return this.instanceId;
}
/**
* @return instanceName
*/
public String getInstanceName() {
return this.instanceName;
}
/**
* @return internetIp
*/
public String getInternetIp() {
return this.internetIp;
}
/**
* @return intranetIp
*/
public String getIntranetIp() {
return this.intranetIp;
}
/**
* @return itemsDone
*/
public Long getItemsDone() {
return this.itemsDone;
}
/**
* @return itemsTotal
*/
public Long getItemsTotal() {
return this.itemsTotal;
}
/**
* @return message
*/
public String getMessage() {
return this.message;
}
/**
* @return percentage
*/
public Integer getPercentage() {
return this.percentage;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return restoreId
*/
public String getRestoreId() {
return this.restoreId;
}
/**
* @return restoreName
*/
public String getRestoreName() {
return this.restoreName;
}
/**
* @return restoreType
*/
public String getRestoreType() {
return this.restoreType;
}
/**
* @return snapshotHash
*/
public String getSnapshotHash() {
return this.snapshotHash;
}
/**
* @return snapshotId
*/
public String getSnapshotId() {
return this.snapshotId;
}
/**
* @return snapshotVersion
*/
public String getSnapshotVersion() {
return this.snapshotVersion;
}
/**
* @return source
*/
public String getSource() {
return this.source;
}
/**
* @return sourceClientId
*/
public String getSourceClientId() {
return this.sourceClientId;
}
/**
* @return speed
*/
public Long getSpeed() {
return this.speed;
}
/**
* @return status
*/
public String getStatus() {
return this.status;
}
/**
* @return target
*/
public String getTarget() {
return this.target;
}
/**
* @return updatedTime
*/
public Long getUpdatedTime() {
return this.updatedTime;
}
/**
* @return uuid
*/
public String getUuid() {
return this.uuid;
}
/**
* @return vaultId
*/
public String getVaultId() {
return this.vaultId;
}
/**
* @return vaultRegionId
*/
public String getVaultRegionId() {
return this.vaultRegionId;
}
public static final class Builder {
private Long actualBytes;
private Long bytesDone;
private Long bytesTotal;
private String clientId;
private Long completeTime;
private Long createdTime;
private Long duration;
private Long errorCount;
private String errorFile;
private String errorFileUrl;
private String errorType;
private Long eta;
private String excludes;
private String exitCode;
private String gmtCreate;
private String gmtModified;
private String includes;
private String instanceId;
private String instanceName;
private String internetIp;
private String intranetIp;
private Long itemsDone;
private Long itemsTotal;
private String message;
private Integer percentage;
private String requestId;
private String restoreId;
private String restoreName;
private String restoreType;
private String snapshotHash;
private String snapshotId;
private String snapshotVersion;
private String source;
private String sourceClientId;
private Long speed;
private String status;
private String target;
private Long updatedTime;
private String uuid;
private String vaultId;
private String vaultRegionId;
private Builder() {
}
private Builder(RestoreJobs model) {
this.actualBytes = model.actualBytes;
this.bytesDone = model.bytesDone;
this.bytesTotal = model.bytesTotal;
this.clientId = model.clientId;
this.completeTime = model.completeTime;
this.createdTime = model.createdTime;
this.duration = model.duration;
this.errorCount = model.errorCount;
this.errorFile = model.errorFile;
this.errorFileUrl = model.errorFileUrl;
this.errorType = model.errorType;
this.eta = model.eta;
this.excludes = model.excludes;
this.exitCode = model.exitCode;
this.gmtCreate = model.gmtCreate;
this.gmtModified = model.gmtModified;
this.includes = model.includes;
this.instanceId = model.instanceId;
this.instanceName = model.instanceName;
this.internetIp = model.internetIp;
this.intranetIp = model.intranetIp;
this.itemsDone = model.itemsDone;
this.itemsTotal = model.itemsTotal;
this.message = model.message;
this.percentage = model.percentage;
this.requestId = model.requestId;
this.restoreId = model.restoreId;
this.restoreName = model.restoreName;
this.restoreType = model.restoreType;
this.snapshotHash = model.snapshotHash;
this.snapshotId = model.snapshotId;
this.snapshotVersion = model.snapshotVersion;
this.source = model.source;
this.sourceClientId = model.sourceClientId;
this.speed = model.speed;
this.status = model.status;
this.target = model.target;
this.updatedTime = model.updatedTime;
this.uuid = model.uuid;
this.vaultId = model.vaultId;
this.vaultRegionId = model.vaultRegionId;
}
/**
* <p>The size of backup data. Unit: bytes.</p>
*
* <strong>example:</strong>
* <p>20</p>
*/
public Builder actualBytes(Long actualBytes) {
this.actualBytes = actualBytes;
return this;
}
/**
* <p>The total size of data that is restored. Unit: bytes.</p>
*
* <strong>example:</strong>
* <p>20</p>
*/
public Builder bytesDone(Long bytesDone) {
this.bytesDone = bytesDone;
return this;
}
/**
* <p>The total size of data that you want to restore. Unit: bytes.</p>
*
* <strong>example:</strong>
* <p>20</p>
*/
public Builder bytesTotal(Long bytesTotal) {
this.bytesTotal = bytesTotal;
return this;
}
/**
* <p>The ID of the anti-ransomware agent that is used to perform the restoration task.</p>
*
* <strong>example:</strong>
* <p>c-000frxwusjauhp9ajpu6</p>
*/
public Builder clientId(String clientId) {
this.clientId = clientId;
return this;
}
/**
* <p>The timestamp when the restoration task is complete. Unit: milliseconds.</p>
*
* <strong>example:</strong>
* <p>1583289054000</p>
*/
public Builder completeTime(Long completeTime) {
this.completeTime = completeTime;
return this;
}
/**
* <p>The timestamp when the restoration task is created. Unit: milliseconds.</p>
*
* <strong>example:</strong>
* <p>1583289052000</p>
*/
public Builder createdTime(Long createdTime) {
this.createdTime = createdTime;
return this;
}
/**
* <p>The duration of the restoration task. Unit: seconds.</p>
*
* <strong>example:</strong>
* <p>100</p>
*/
public Builder duration(Long duration) {
this.duration = duration;
return this;
}
/**
* <p>The number of the restoration tasks on which errors occur.</p>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder errorCount(Long errorCount) {
this.errorCount = errorCount;
return this;
}
/**
* <p>The name of the CSV file. The CSV file contains the files that fail to be restored.</p>
*
* <strong>example:</strong>
* <p>s-000f4wxm8f7gur6g2otm.csv</p>
*/
public Builder errorFile(String errorFile) {
this.errorFile = errorFile;
return this;
}
/**
* <p>The URL to download the CSV file. The CSV file contains the files that fail to be restored.</p>
*
* <strong>example:</strong>
* <p>["/home/user"]</p>
*/
public Builder errorFileUrl(String errorFileUrl) {
this.errorFileUrl = errorFileUrl;
return this;
}
/**
* <p>The error code that is returned for the restoration task.</p>
*
* <strong>example:</strong>
* <p>NONE</p>
*/
public Builder errorType(String errorType) {
this.errorType = errorType;
return this;
}
/**
* <p>The timestamp when the in-progress restoration task is expected to be complete. Unit: seconds.</p>
*
* <strong>example:</strong>
* <p>1583299054</p>
*/
public Builder eta(Long eta) {
this.eta = eta;
return this;
}
/**
* <p>The directory excluded from the anti-ransomware policy. The value is the directory that you specify to skip protection when you create the anti-ransomware policy.</p>
*
* <strong>example:</strong>
* <p>["/home/user"]</p>
*/
public Builder excludes(String excludes) {
this.excludes = excludes;
return this;
}
/**
* <p>The return value of the restoration task.</p>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder exitCode(String exitCode) {
this.exitCode = exitCode;
return this;
}
/**
* <p>The time when the restoration task is created.</p>
*
* <strong>example:</strong>
* <p>2021-04-25T19:11Z</p>
*/
public Builder gmtCreate(String gmtCreate) {
this.gmtCreate = gmtCreate;
return this;
}
/**
* <p>The time when the restoration task is updated.</p>
*
* <strong>example:</strong>
* <p>2021-04-25T19:11Z</p>
*/
public Builder gmtModified(String gmtModified) {
this.gmtModified = gmtModified;
return this;
}
/**
* <p>The directory in which the restored file is stored. The value is the directory that you specify for protection when you create the anti-ransomware policy</p>
*
* <strong>example:</strong>
* <p>["/root/disk-uuid-test","/root/install.sh"]</p>
*/
public Builder includes(String includes) {
this.includes = includes;
return this;
}
/**
* <p>The ID of the server whose data you want to restore.</p>
*
* <strong>example:</strong>
* <p>i-bp12xnvdax6307gw****</p>
*/
public Builder instanceId(String instanceId) {
this.instanceId = instanceId;
return this;
}
/**
* <p>The name of the server whose data you want to restore.</p>
*
* <strong>example:</strong>
* <p>win2012-01</p>
*/
public Builder instanceName(String instanceName) {
this.instanceName = instanceName;
return this;
}
/**
* <p>The public IP address of the server whose data you want to restore.</p>
*
* <strong>example:</strong>
* <p>1.1.XX.XX</p>
*/
public Builder internetIp(String internetIp) {
this.internetIp = internetIp;
return this;
}
/**
* <p>The internal IP address of the server whose data you want to restore.</p>
*
* <strong>example:</strong>
* <p>2.1.XX.XX</p>
*/
public Builder intranetIp(String intranetIp) {
this.intranetIp = intranetIp;
return this;
}
/**
* <p>The number of files that are restored.</p>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder itemsDone(Long itemsDone) {
this.itemsDone = itemsDone;
return this;
}
/**
* <p>The total number of files that need to be restored.</p>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder itemsTotal(Long itemsTotal) {
this.itemsTotal = itemsTotal;
return this;
}
/**
* <p>The error message.</p>
*
* <strong>example:</strong>
* <p>successful</p>
*/
public Builder message(String message) {
this.message = message;
return this;
}
/**
* <p>The progress of the restoration task in percentage.</p>
*
* <strong>example:</strong>
* <p>100</p>
*/
public Builder percentage(Integer percentage) {
this.percentage = percentage;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>0ED92280-4363-57D3-A4D3-4D3FBC99B29F</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The ID of the restoration task.</p>
*
* <strong>example:</strong>
* <p>r-000gmcypy5dyf9ey3uv7</p>
*/
public Builder restoreId(String restoreId) {
this.restoreId = restoreId;
return this;
}
/**
* <p>The name of the restoration task.</p>
*
* <strong>example:</strong>
* <p>Restore</p>
*/
public Builder restoreName(String restoreName) {
this.restoreName = restoreName;
return this;
}
/**
* <p>The type of the file that is restored. Valid values:</p>
* <ul>
* <li><strong>ECS_FILE</strong>: files on Elastic Compute Service (ECS) instances</li>
* <li><strong>FILE</strong>: files on servers in data centers</li>
* </ul>
*
* <strong>example:</strong>
* <p>ECS_FILE</p>
*/
public Builder restoreType(String restoreType) {
this.restoreType = restoreType;
return this;
}
/**
* <p>The hash value of the snapshot that stores backup data when the data is backed up.</p>
*
* <strong>example:</strong>
* <p>a3992de83f529b844135fe795d949181735a7d20e0ac8539485c61b7983e618f</p>
*/
public Builder snapshotHash(String snapshotHash) {
this.snapshotHash = snapshotHash;
return this;
}
/**
* <p>The hash value ID of the snapshot that stores backup data when the data is backed up.</p>
*
* <strong>example:</strong>
* <p>s-000gmcypy5dy54e39yny</p>
*/
public Builder snapshotId(String snapshotId) {
this.snapshotId = snapshotId;
return this;
}
/**
* <p>The version of the backup data.</p>
*
* <strong>example:</strong>
* <p>2020-03-03 18:00</p>
*/
public Builder snapshotVersion(String snapshotVersion) {
this.snapshotVersion = snapshotVersion;
return this;
}
/**
* <p>The restored content.</p>
*
* <strong>example:</strong>
* <p>["/home/admin","\\servername\sharename"]</p>
*/
public Builder source(String source) {
this.source = source;
return this;
}
/**
* <p>The ID of the anti-ransomware agent that is used to back up data.</p>
*
* <strong>example:</strong>
* <p>c-000gmcypy5dyf9ey3uv7</p>
*/
public Builder sourceClientId(String sourceClientId) {
this.sourceClientId = sourceClientId;
return this;
}
/**
* <p>The speed at which data is restored. Unit: byte/s.</p>
*
* <strong>example:</strong>
* <p>25766558</p>
*/
public Builder speed(Long speed) {
this.speed = speed;
return this;
}
/**
* <p>The status of the restoration task. Valid values:</p>
* <ul>
* <li><strong>RUNNING</strong>: The task is running.</li>
* <li><strong>COMPLETE</strong>: The task is complete.</li>
* <li><strong>FAILED</strong>: The task fails.</li>
* <li><strong>CANCELING</strong>: The task is being canceled.</li>
* <li><strong>CANCELED</strong>: The task is canceled.</li>
* <li><strong>PARTIAL_COMPLETE</strong>: The task is partially successful.</li>
* <li><strong>CREATED</strong>: The task was created but is not run.</li>
* <li><strong>EXPIRED</strong>: The task is not updated.</li>
* <li><strong>QUEUED</strong>: The task is waiting to be run.</li>
* <li><strong>CLIENT_DELETED</strong>: The task fails because the anti-ransomware agent is uninstalled.</li>
* </ul>
*
* <strong>example:</strong>
* <p>COMPLETE</p>
*/
public Builder status(String status) {
this.status = status;
return this;
}
/**
* <p>The folder to which the backup data is restored. After you create the restoration task, the backup data is restored to the specified folder.</p>
*
* <strong>example:</strong>
* <p>/home</p>
*/
public Builder target(String target) {
this.target = target;
return this;
}
/**
* <p>The timestamp when the restoration task was last updated. Unit: milliseconds.</p>
*
* <strong>example:</strong>
* <p>1583289054000</p>
*/
public Builder updatedTime(Long updatedTime) {
this.updatedTime = updatedTime;
return this;
}
/**
* <p>The UUID of the server whose data you want to restore.</p>
*
* <strong>example:</strong>
* <p>6E3DABB6-3F6A-40DB-9492-2C8B59C****</p>
*/
public Builder uuid(String uuid) {
this.uuid = uuid;
return this;
}
/**
* <p>The ID of the backup vault in which the backup data is stored.</p>
*
* <strong>example:</strong>
* <p>v-000b0v0jqzmse2yz06zw</p>
*/
public Builder vaultId(String vaultId) {
this.vaultId = vaultId;
return this;
}
/**
* <p>The ID of the region where the backup vault resides.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder vaultRegionId(String vaultRegionId) {
this.vaultRegionId = vaultRegionId;
return this;
}
public RestoreJobs build() {
return new RestoreJobs(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeRestorePlansRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeRestorePlansRequest} extends {@link RequestModel}
*
* <p>DescribeRestorePlansRequest</p>
*/
public class DescribeRestorePlansRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("CurrentPage")
private Integer currentPage;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("InstanceName")
private String instanceName;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageSize")
private Integer pageSize;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Status")
private String status;
private DescribeRestorePlansRequest(Builder builder) {
super(builder);
this.currentPage = builder.currentPage;
this.instanceName = builder.instanceName;
this.pageSize = builder.pageSize;
this.status = builder.status;
}
public static Builder builder() {
return new Builder();
}
public static DescribeRestorePlansRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return currentPage
*/
public Integer getCurrentPage() {
return this.currentPage;
}
/**
* @return instanceName
*/
public String getInstanceName() {
return this.instanceName;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return status
*/
public String getStatus() {
return this.status;
}
public static final class Builder extends Request.Builder<DescribeRestorePlansRequest, Builder> {
private Integer currentPage;
private String instanceName;
private Integer pageSize;
private String status;
private Builder() {
super();
}
private Builder(DescribeRestorePlansRequest request) {
super(request);
this.currentPage = request.currentPage;
this.instanceName = request.instanceName;
this.pageSize = request.pageSize;
this.status = request.status;
}
/**
* <p>The number of the page to return. Default value: <strong>1</strong>.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder currentPage(Integer currentPage) {
this.putQueryParameter("CurrentPage", currentPage);
this.currentPage = currentPage;
return this;
}
/**
* <p>The name of the server.</p>
*
* <strong>example:</strong>
* <p>sql-test-001</p>
*/
public Builder instanceName(String instanceName) {
this.putQueryParameter("InstanceName", instanceName);
this.instanceName = instanceName;
return this;
}
/**
* <p>The number of entries to return on each page. Default value: 20. If you leave this parameter empty, 20 entries are returned on each page.</p>
* <blockquote>
* <p> We recommend that you do not leave this parameter empty.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>20</p>
*/
public Builder pageSize(Integer pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
return this;
}
/**
* <p>The status of the restoration task. Valid values:</p>
* <ul>
* <li><strong>init</strong>: initializing</li>
* <li><strong>created</strong>: creating</li>
* <li><strong>running</strong>: running</li>
* <li><strong>completed</strong>: complete</li>
* <li><strong>error</strong>: failed</li>
* <li><strong>restoring</strong>: restoring</li>
* </ul>
*
* <strong>example:</strong>
* <p>running</p>
*/
public Builder status(String status) {
this.putQueryParameter("Status", status);
this.status = status;
return this;
}
@Override
public DescribeRestorePlansRequest build() {
return new DescribeRestorePlansRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeRestorePlansResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeRestorePlansResponse} extends {@link TeaModel}
*
* <p>DescribeRestorePlansResponse</p>
*/
public class DescribeRestorePlansResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private DescribeRestorePlansResponseBody body;
private DescribeRestorePlansResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeRestorePlansResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public DescribeRestorePlansResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeRestorePlansResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeRestorePlansResponseBody body);
@Override
DescribeRestorePlansResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeRestorePlansResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeRestorePlansResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeRestorePlansResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(DescribeRestorePlansResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeRestorePlansResponse build() {
return new DescribeRestorePlansResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeRestorePlansResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeRestorePlansResponseBody} extends {@link TeaModel}
*
* <p>DescribeRestorePlansResponseBody</p>
*/
public class DescribeRestorePlansResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("PageInfo")
private PageInfo pageInfo;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("RestorePlans")
private java.util.List<RestorePlans> restorePlans;
private DescribeRestorePlansResponseBody(Builder builder) {
this.pageInfo = builder.pageInfo;
this.requestId = builder.requestId;
this.restorePlans = builder.restorePlans;
}
public static Builder builder() {
return new Builder();
}
public static DescribeRestorePlansResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return pageInfo
*/
public PageInfo getPageInfo() {
return this.pageInfo;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return restorePlans
*/
public java.util.List<RestorePlans> getRestorePlans() {
return this.restorePlans;
}
public static final class Builder {
private PageInfo pageInfo;
private String requestId;
private java.util.List<RestorePlans> restorePlans;
private Builder() {
}
private Builder(DescribeRestorePlansResponseBody model) {
this.pageInfo = model.pageInfo;
this.requestId = model.requestId;
this.restorePlans = model.restorePlans;
}
/**
* <p>The pagination information.</p>
*/
public Builder pageInfo(PageInfo pageInfo) {
this.pageInfo = pageInfo;
return this;
}
/**
* <p>The ID of the request, which is used to locate and troubleshoot issues.</p>
*
* <strong>example:</strong>
* <p>BE120DAB-F4E7-4C53-ADC3-A97578AB****</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>An array that consists of the restoration tasks.</p>
*/
public Builder restorePlans(java.util.List<RestorePlans> restorePlans) {
this.restorePlans = restorePlans;
return this;
}
public DescribeRestorePlansResponseBody build() {
return new DescribeRestorePlansResponseBody(this);
}
}
/**
*
* {@link DescribeRestorePlansResponseBody} extends {@link TeaModel}
*
* <p>DescribeRestorePlansResponseBody</p>
*/
public static class PageInfo extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Count")
private Integer count;
@com.aliyun.core.annotation.NameInMap("CurrentPage")
private Integer currentPage;
@com.aliyun.core.annotation.NameInMap("PageSize")
private Integer pageSize;
@com.aliyun.core.annotation.NameInMap("TotalCount")
private Integer totalCount;
private PageInfo(Builder builder) {
this.count = builder.count;
this.currentPage = builder.currentPage;
this.pageSize = builder.pageSize;
this.totalCount = builder.totalCount;
}
public static Builder builder() {
return new Builder();
}
public static PageInfo create() {
return builder().build();
}
/**
* @return count
*/
public Integer getCount() {
return this.count;
}
/**
* @return currentPage
*/
public Integer getCurrentPage() {
return this.currentPage;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return totalCount
*/
public Integer getTotalCount() {
return this.totalCount;
}
public static final class Builder {
private Integer count;
private Integer currentPage;
private Integer pageSize;
private Integer totalCount;
private Builder() {
}
private Builder(PageInfo model) {
this.count = model.count;
this.currentPage = model.currentPage;
this.pageSize = model.pageSize;
this.totalCount = model.totalCount;
}
/**
* <p>The number of entries returned on the current page.</p>
*
* <strong>example:</strong>
* <p>20</p>
*/
public Builder count(Integer count) {
this.count = count;
return this;
}
/**
* <p>The page number of the returned page.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder currentPage(Integer currentPage) {
this.currentPage = currentPage;
return this;
}
/**
* <p>The number of entries returned per page.</p>
*
* <strong>example:</strong>
* <p>20</p>
*/
public Builder pageSize(Integer pageSize) {
this.pageSize = pageSize;
return this;
}
/**
* <p>The total number of entries returned.</p>
*
* <strong>example:</strong>
* <p>33</p>
*/
public Builder totalCount(Integer totalCount) {
this.totalCount = totalCount;
return this;
}
public PageInfo build() {
return new PageInfo(this);
}
}
}
/**
*
* {@link DescribeRestorePlansResponseBody} extends {@link TeaModel}
*
* <p>DescribeRestorePlansResponseBody</p>
*/
public static class RestorePlans extends TeaModel {
@com.aliyun.core.annotation.NameInMap("CreatedTime")
private Long createdTime;
@com.aliyun.core.annotation.NameInMap("DatabaseName")
private String databaseName;
@com.aliyun.core.annotation.NameInMap("InstanceName")
private String instanceName;
@com.aliyun.core.annotation.NameInMap("PolicyId")
private Long policyId;
@com.aliyun.core.annotation.NameInMap("PolicyName")
private String policyName;
@com.aliyun.core.annotation.NameInMap("RestorePoint")
private Long restorePoint;
@com.aliyun.core.annotation.NameInMap("Status")
private String status;
@com.aliyun.core.annotation.NameInMap("TargetDatabaseName")
private String targetDatabaseName;
@com.aliyun.core.annotation.NameInMap("TargetInstanceId")
private String targetInstanceId;
@com.aliyun.core.annotation.NameInMap("TargetInstanceName")
private String targetInstanceName;
@com.aliyun.core.annotation.NameInMap("UpdatedTime")
private Long updatedTime;
private RestorePlans(Builder builder) {
this.createdTime = builder.createdTime;
this.databaseName = builder.databaseName;
this.instanceName = builder.instanceName;
this.policyId = builder.policyId;
this.policyName = builder.policyName;
this.restorePoint = builder.restorePoint;
this.status = builder.status;
this.targetDatabaseName = builder.targetDatabaseName;
this.targetInstanceId = builder.targetInstanceId;
this.targetInstanceName = builder.targetInstanceName;
this.updatedTime = builder.updatedTime;
}
public static Builder builder() {
return new Builder();
}
public static RestorePlans create() {
return builder().build();
}
/**
* @return createdTime
*/
public Long getCreatedTime() {
return this.createdTime;
}
/**
* @return databaseName
*/
public String getDatabaseName() {
return this.databaseName;
}
/**
* @return instanceName
*/
public String getInstanceName() {
return this.instanceName;
}
/**
* @return policyId
*/
public Long getPolicyId() {
return this.policyId;
}
/**
* @return policyName
*/
public String getPolicyName() {
return this.policyName;
}
/**
* @return restorePoint
*/
public Long getRestorePoint() {
return this.restorePoint;
}
/**
* @return status
*/
public String getStatus() {
return this.status;
}
/**
* @return targetDatabaseName
*/
public String getTargetDatabaseName() {
return this.targetDatabaseName;
}
/**
* @return targetInstanceId
*/
public String getTargetInstanceId() {
return this.targetInstanceId;
}
/**
* @return targetInstanceName
*/
public String getTargetInstanceName() {
return this.targetInstanceName;
}
/**
* @return updatedTime
*/
public Long getUpdatedTime() {
return this.updatedTime;
}
public static final class Builder {
private Long createdTime;
private String databaseName;
private String instanceName;
private Long policyId;
private String policyName;
private Long restorePoint;
private String status;
private String targetDatabaseName;
private String targetInstanceId;
private String targetInstanceName;
private Long updatedTime;
private Builder() {
}
private Builder(RestorePlans model) {
this.createdTime = model.createdTime;
this.databaseName = model.databaseName;
this.instanceName = model.instanceName;
this.policyId = model.policyId;
this.policyName = model.policyName;
this.restorePoint = model.restorePoint;
this.status = model.status;
this.targetDatabaseName = model.targetDatabaseName;
this.targetInstanceId = model.targetInstanceId;
this.targetInstanceName = model.targetInstanceName;
this.updatedTime = model.updatedTime;
}
/**
* <p>The timestamp when the restoration task was created. Unit: milliseconds.</p>
*
* <strong>example:</strong>
* <p>1655174753****</p>
*/
public Builder createdTime(Long createdTime) {
this.createdTime = createdTime;
return this;
}
/**
* <p>The name of the database.</p>
*
* <strong>example:</strong>
* <p>Bankup****</p>
*/
public Builder databaseName(String databaseName) {
this.databaseName = databaseName;
return this;
}
/**
* <p>The name of the server on which the database resides.</p>
*
* <strong>example:</strong>
* <p>sql-test-001</p>
*/
public Builder instanceName(String instanceName) {
this.instanceName = instanceName;
return this;
}
/**
* <p>The ID of the anti-ransomware policy.</p>
*
* <strong>example:</strong>
* <p>123</p>
*/
public Builder policyId(Long policyId) {
this.policyId = policyId;
return this;
}
/**
* <p>The name of the anti-ransomware policy.</p>
*
* <strong>example:</strong>
* <p>KtDataBase</p>
*/
public Builder policyName(String policyName) {
this.policyName = policyName;
return this;
}
/**
* <p>The point in time to which data is restored.</p>
*
* <strong>example:</strong>
* <p>165875100****</p>
*/
public Builder restorePoint(Long restorePoint) {
this.restorePoint = restorePoint;
return this;
}
/**
* <p>The status of the restoration task. Valid values:</p>
* <ul>
* <li><strong>init</strong>: initializing</li>
* <li><strong>created</strong>: creating</li>
* <li><strong>running</strong>: running</li>
* <li><strong>completed</strong>: complete</li>
* <li><strong>error</strong>: failed</li>
* <li><strong>restoring</strong>: restoring</li>
* </ul>
*
* <strong>example:</strong>
* <p>running</p>
*/
public Builder status(String status) {
this.status = status;
return this;
}
/**
* <p>The name of the destination database.</p>
*
* <strong>example:</strong>
* <p>OABak</p>
*/
public Builder targetDatabaseName(String targetDatabaseName) {
this.targetDatabaseName = targetDatabaseName;
return this;
}
/**
* <p>The ID of the destination server.</p>
*
* <strong>example:</strong>
* <p>i-2zehqflgbl9ep2he****</p>
*/
public Builder targetInstanceId(String targetInstanceId) {
this.targetInstanceId = targetInstanceId;
return this;
}
/**
* <p>The name of the destination server.</p>
*
* <strong>example:</strong>
* <p>hbr-detection-hh</p>
*/
public Builder targetInstanceName(String targetInstanceName) {
this.targetInstanceName = targetInstanceName;
return this;
}
/**
* <p>The timestamp when the restoration task was last updated. Unit: milliseconds.</p>
*
* <strong>example:</strong>
* <p>166849080****</p>
*/
public Builder updatedTime(Long updatedTime) {
this.updatedTime = updatedTime;
return this;
}
public RestorePlans build() {
return new RestorePlans(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeRiskCheckItemResultRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeRiskCheckItemResultRequest} extends {@link RequestModel}
*
* <p>DescribeRiskCheckItemResultRequest</p>
*/
public class DescribeRiskCheckItemResultRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("CurrentPage")
private Integer currentPage;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ItemId")
@com.aliyun.core.annotation.Validation(required = true)
private Long itemId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Lang")
private String lang;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageSize")
private Integer pageSize;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SourceIp")
private String sourceIp;
private DescribeRiskCheckItemResultRequest(Builder builder) {
super(builder);
this.currentPage = builder.currentPage;
this.itemId = builder.itemId;
this.lang = builder.lang;
this.pageSize = builder.pageSize;
this.resourceOwnerId = builder.resourceOwnerId;
this.sourceIp = builder.sourceIp;
}
public static Builder builder() {
return new Builder();
}
public static DescribeRiskCheckItemResultRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return currentPage
*/
public Integer getCurrentPage() {
return this.currentPage;
}
/**
* @return itemId
*/
public Long getItemId() {
return this.itemId;
}
/**
* @return lang
*/
public String getLang() {
return this.lang;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
/**
* @return sourceIp
*/
public String getSourceIp() {
return this.sourceIp;
}
public static final class Builder extends Request.Builder<DescribeRiskCheckItemResultRequest, Builder> {
private Integer currentPage;
private Long itemId;
private String lang;
private Integer pageSize;
private Long resourceOwnerId;
private String sourceIp;
private Builder() {
super();
}
private Builder(DescribeRiskCheckItemResultRequest request) {
super(request);
this.currentPage = request.currentPage;
this.itemId = request.itemId;
this.lang = request.lang;
this.pageSize = request.pageSize;
this.resourceOwnerId = request.resourceOwnerId;
this.sourceIp = request.sourceIp;
}
/**
* <p>The number of the page to return.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder currentPage(Integer currentPage) {
this.putQueryParameter("CurrentPage", currentPage);
this.currentPage = currentPage;
return this;
}
/**
* <p>The ID of the check item.</p>
* <blockquote>
* <p>For more information about the IDs and details of the check items that can be used in configuration assessment, see <a href="~~DescribeRiskCheckResult~~">DescribeRiskCheckResult</a>.</p>
* </blockquote>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder itemId(Long itemId) {
this.putQueryParameter("ItemId", itemId);
this.itemId = itemId;
return this;
}
/**
* <p>The language of the content within the request and response. Default value: <strong>zh</strong>. Valid values:</p>
* <ul>
* <li><strong>zh</strong>: Chinese</li>
* <li><strong>en</strong>: English</li>
* </ul>
*
* <strong>example:</strong>
* <p>zh</p>
*/
public Builder lang(String lang) {
this.putQueryParameter("Lang", lang);
this.lang = lang;
return this;
}
/**
* <p>The number of entries to return on each page. Default value: 20. If you leave this parameter empty, 20 entries are returned on each page.</p>
* <blockquote>
* <p>We recommend that you do not leave this parameter empty.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>20</p>
*/
public Builder pageSize(Integer pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
return this;
}
/**
* ResourceOwnerId.
*/
public Builder resourceOwnerId(Long resourceOwnerId) {
this.putQueryParameter("ResourceOwnerId", resourceOwnerId);
this.resourceOwnerId = resourceOwnerId;
return this;
}
/**
* <p>The source IP address of the request.</p>
*
* <strong>example:</strong>
* <p>173.128.XX.XX</p>
*/
public Builder sourceIp(String sourceIp) {
this.putQueryParameter("SourceIp", sourceIp);
this.sourceIp = sourceIp;
return this;
}
@Override
public DescribeRiskCheckItemResultRequest build() {
return new DescribeRiskCheckItemResultRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeRiskCheckItemResultResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeRiskCheckItemResultResponse} extends {@link TeaModel}
*
* <p>DescribeRiskCheckItemResultResponse</p>
*/
public class DescribeRiskCheckItemResultResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private DescribeRiskCheckItemResultResponseBody body;
private DescribeRiskCheckItemResultResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeRiskCheckItemResultResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public DescribeRiskCheckItemResultResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeRiskCheckItemResultResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeRiskCheckItemResultResponseBody body);
@Override
DescribeRiskCheckItemResultResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeRiskCheckItemResultResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeRiskCheckItemResultResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeRiskCheckItemResultResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(DescribeRiskCheckItemResultResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeRiskCheckItemResultResponse build() {
return new DescribeRiskCheckItemResultResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeRiskCheckItemResultResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeRiskCheckItemResultResponseBody} extends {@link TeaModel}
*
* <p>DescribeRiskCheckItemResultResponseBody</p>
*/
public class DescribeRiskCheckItemResultResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("PageContentResource")
private PageContentResource pageContentResource;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private DescribeRiskCheckItemResultResponseBody(Builder builder) {
this.pageContentResource = builder.pageContentResource;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeRiskCheckItemResultResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return pageContentResource
*/
public PageContentResource getPageContentResource() {
return this.pageContentResource;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private PageContentResource pageContentResource;
private String requestId;
private Builder() {
}
private Builder(DescribeRiskCheckItemResultResponseBody model) {
this.pageContentResource = model.pageContentResource;
this.requestId = model.requestId;
}
/**
* <p>The pagination information.</p>
*/
public Builder pageContentResource(PageContentResource pageContentResource) {
this.pageContentResource = pageContentResource;
return this;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>3BFB4989-A108-46A4-954E-FF7EF02D1078</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public DescribeRiskCheckItemResultResponseBody build() {
return new DescribeRiskCheckItemResultResponseBody(this);
}
}
/**
*
* {@link DescribeRiskCheckItemResultResponseBody} extends {@link TeaModel}
*
* <p>DescribeRiskCheckItemResultResponseBody</p>
*/
public static class PageContentResource extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ContentResource")
private java.util.Map<String, ?> contentResource;
@com.aliyun.core.annotation.NameInMap("Count")
private Integer count;
@com.aliyun.core.annotation.NameInMap("CurrentPage")
private Integer currentPage;
@com.aliyun.core.annotation.NameInMap("PageCount")
private Integer pageCount;
@com.aliyun.core.annotation.NameInMap("PageSize")
private Integer pageSize;
@com.aliyun.core.annotation.NameInMap("TotalCount")
private Integer totalCount;
private PageContentResource(Builder builder) {
this.contentResource = builder.contentResource;
this.count = builder.count;
this.currentPage = builder.currentPage;
this.pageCount = builder.pageCount;
this.pageSize = builder.pageSize;
this.totalCount = builder.totalCount;
}
public static Builder builder() {
return new Builder();
}
public static PageContentResource create() {
return builder().build();
}
/**
* @return contentResource
*/
public java.util.Map<String, ?> getContentResource() {
return this.contentResource;
}
/**
* @return count
*/
public Integer getCount() {
return this.count;
}
/**
* @return currentPage
*/
public Integer getCurrentPage() {
return this.currentPage;
}
/**
* @return pageCount
*/
public Integer getPageCount() {
return this.pageCount;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return totalCount
*/
public Integer getTotalCount() {
return this.totalCount;
}
public static final class Builder {
private java.util.Map<String, ?> contentResource;
private Integer count;
private Integer currentPage;
private Integer pageCount;
private Integer pageSize;
private Integer totalCount;
private Builder() {
}
private Builder(PageContentResource model) {
this.contentResource = model.contentResource;
this.count = model.count;
this.currentPage = model.currentPage;
this.pageCount = model.pageCount;
this.pageSize = model.pageSize;
this.totalCount = model.totalCount;
}
/**
* <p>The data of the affected assets on each page in a dynamic table.</p>
*/
public Builder contentResource(java.util.Map<String, ?> contentResource) {
this.contentResource = contentResource;
return this;
}
/**
* <p>The number of entries returned on the current page.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder count(Integer count) {
this.count = count;
return this;
}
/**
* <p>The page number of the returned page.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder currentPage(Integer currentPage) {
this.currentPage = currentPage;
return this;
}
/**
* <p>The total number of pages returned.</p>
*
* <strong>example:</strong>
* <p>3</p>
*/
public Builder pageCount(Integer pageCount) {
this.pageCount = pageCount;
return this;
}
/**
* <p>The number of entries returned per page.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder pageSize(Integer pageSize) {
this.pageSize = pageSize;
return this;
}
/**
* <p>The total number of entries returned.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder totalCount(Integer totalCount) {
this.totalCount = totalCount;
return this;
}
public PageContentResource build() {
return new PageContentResource(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeRiskCheckResultRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeRiskCheckResultRequest} extends {@link RequestModel}
*
* <p>DescribeRiskCheckResultRequest</p>
*/
public class DescribeRiskCheckResultRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AssetType")
private String assetType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("CurrentPage")
private Integer currentPage;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("GroupId")
private Long groupId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ItemIds")
private java.util.List<String> itemIds;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Lang")
private String lang;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Name")
private String name;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageSize")
private Integer pageSize;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("QueryFlag")
private String queryFlag;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RiskLevel")
private String riskLevel;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SourceIp")
private String sourceIp;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Status")
private String status;
private DescribeRiskCheckResultRequest(Builder builder) {
super(builder);
this.assetType = builder.assetType;
this.currentPage = builder.currentPage;
this.groupId = builder.groupId;
this.itemIds = builder.itemIds;
this.lang = builder.lang;
this.name = builder.name;
this.pageSize = builder.pageSize;
this.queryFlag = builder.queryFlag;
this.resourceOwnerId = builder.resourceOwnerId;
this.riskLevel = builder.riskLevel;
this.sourceIp = builder.sourceIp;
this.status = builder.status;
}
public static Builder builder() {
return new Builder();
}
public static DescribeRiskCheckResultRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return assetType
*/
public String getAssetType() {
return this.assetType;
}
/**
* @return currentPage
*/
public Integer getCurrentPage() {
return this.currentPage;
}
/**
* @return groupId
*/
public Long getGroupId() {
return this.groupId;
}
/**
* @return itemIds
*/
public java.util.List<String> getItemIds() {
return this.itemIds;
}
/**
* @return lang
*/
public String getLang() {
return this.lang;
}
/**
* @return name
*/
public String getName() {
return this.name;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return queryFlag
*/
public String getQueryFlag() {
return this.queryFlag;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
/**
* @return riskLevel
*/
public String getRiskLevel() {
return this.riskLevel;
}
/**
* @return sourceIp
*/
public String getSourceIp() {
return this.sourceIp;
}
/**
* @return status
*/
public String getStatus() {
return this.status;
}
public static final class Builder extends Request.Builder<DescribeRiskCheckResultRequest, Builder> {
private String assetType;
private Integer currentPage;
private Long groupId;
private java.util.List<String> itemIds;
private String lang;
private String name;
private Integer pageSize;
private String queryFlag;
private Long resourceOwnerId;
private String riskLevel;
private String sourceIp;
private String status;
private Builder() {
super();
}
private Builder(DescribeRiskCheckResultRequest request) {
super(request);
this.assetType = request.assetType;
this.currentPage = request.currentPage;
this.groupId = request.groupId;
this.itemIds = request.itemIds;
this.lang = request.lang;
this.name = request.name;
this.pageSize = request.pageSize;
this.queryFlag = request.queryFlag;
this.resourceOwnerId = request.resourceOwnerId;
this.riskLevel = request.riskLevel;
this.sourceIp = request.sourceIp;
this.status = request.status;
}
/**
* <p>The cloud service whose configuration check results you want to query. For more information about the check items for the cloud service, see the check item table in the "Response parameters" section of this topic.</p>
*
* <strong>example:</strong>
* <p>RDS</p>
*/
public Builder assetType(String assetType) {
this.putQueryParameter("AssetType", assetType);
this.assetType = assetType;
return this;
}
/**
* <p>The number of the page to return. Default value: <strong>1</strong>.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder currentPage(Integer currentPage) {
this.putQueryParameter("CurrentPage", currentPage);
this.currentPage = currentPage;
return this;
}
/**
* <p>The type of the check item that you want to query. Valid values:</p>
* <ul>
* <li><strong>1</strong>: identity authentication and permissions</li>
* <li><strong>2</strong>: network access control</li>
* <li><strong>3</strong>: log audit</li>
* <li><strong>4</strong>: data security</li>
* <li><strong>5</strong>: monitoring and alerting</li>
* <li><strong>6</strong>: basic security protection</li>
* </ul>
* <blockquote>
* <p>If you do not specify this parameter, all types of check items are queried.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder groupId(Long groupId) {
this.putQueryParameter("GroupId", groupId);
this.groupId = groupId;
return this;
}
/**
* <p>An array that consists of the IDs of check items. For more information about the check item, see the check item table in the "Response parameters" section of this topic.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder itemIds(java.util.List<String> itemIds) {
this.putQueryParameter("ItemIds", itemIds);
this.itemIds = itemIds;
return this;
}
/**
* <p>The language of the content within the request and response. Default value: <strong>zh</strong>. Valid values:</p>
* <ul>
* <li><strong>zh</strong>: Chinese</li>
* <li><strong>en</strong>: English</li>
* </ul>
*
* <strong>example:</strong>
* <p>zh</p>
*/
public Builder lang(String lang) {
this.putQueryParameter("Lang", lang);
this.lang = lang;
return this;
}
/**
* <p>The name of the check item. For more information about the check item, see the check item table in the "Response parameters" section of this topic.</p>
*
* <strong>example:</strong>
* <p>ALB_NetWorkAccessControl</p>
*/
public Builder name(String name) {
this.putQueryParameter("Name", name);
this.name = name;
return this;
}
/**
* <p>The number of entries to return on each page. Default value: <strong>20</strong>.</p>
*
* <strong>example:</strong>
* <p>20</p>
*/
public Builder pageSize(Integer pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
return this;
}
/**
* <p>Specifies whether the check item is supported by the edition of Security Center that you purchase. Valid values:</p>
* <ul>
* <li><strong>enabled</strong>: yes</li>
* <li><strong>disabled</strong>: no</li>
* </ul>
*
* <strong>example:</strong>
* <p>enabled</p>
*/
public Builder queryFlag(String queryFlag) {
this.putQueryParameter("QueryFlag", queryFlag);
this.queryFlag = queryFlag;
return this;
}
/**
* ResourceOwnerId.
*/
public Builder resourceOwnerId(Long resourceOwnerId) {
this.putQueryParameter("ResourceOwnerId", resourceOwnerId);
this.resourceOwnerId = resourceOwnerId;
return this;
}
/**
* <p>The risk level of the check item that you want to query. Valid values:</p>
* <ul>
* <li><strong>high</strong></li>
* <li><strong>medium</strong></li>
* <li><strong>low</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>high</p>
*/
public Builder riskLevel(String riskLevel) {
this.putQueryParameter("RiskLevel", riskLevel);
this.riskLevel = riskLevel;
return this;
}
/**
* <p>The source IP address of the request.</p>
*
* <strong>example:</strong>
* <p>1.2.XX.XX</p>
*/
public Builder sourceIp(String sourceIp) {
this.putQueryParameter("SourceIp", sourceIp);
this.sourceIp = sourceIp;
return this;
}
/**
* <p>The status of the check results. Valid values:</p>
* <ul>
* <li><strong>pass</strong></li>
* <li><strong>failed</strong></li>
* <li><strong>running</strong></li>
* <li><strong>waiting</strong></li>
* <li><strong>ignored</strong></li>
* <li><strong>falsePositive</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>pass</p>
*/
public Builder status(String status) {
this.putQueryParameter("Status", status);
this.status = status;
return this;
}
@Override
public DescribeRiskCheckResultRequest build() {
return new DescribeRiskCheckResultRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeRiskCheckResultResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeRiskCheckResultResponse} extends {@link TeaModel}
*
* <p>DescribeRiskCheckResultResponse</p>
*/
public class DescribeRiskCheckResultResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private DescribeRiskCheckResultResponseBody body;
private DescribeRiskCheckResultResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeRiskCheckResultResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public DescribeRiskCheckResultResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeRiskCheckResultResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeRiskCheckResultResponseBody body);
@Override
DescribeRiskCheckResultResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeRiskCheckResultResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeRiskCheckResultResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeRiskCheckResultResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(DescribeRiskCheckResultResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeRiskCheckResultResponse build() {
return new DescribeRiskCheckResultResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeRiskCheckResultResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeRiskCheckResultResponseBody} extends {@link TeaModel}
*
* <p>DescribeRiskCheckResultResponseBody</p>
*/
public class DescribeRiskCheckResultResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Count")
private Integer count;
@com.aliyun.core.annotation.NameInMap("CurrentPage")
private Integer currentPage;
@com.aliyun.core.annotation.NameInMap("List")
private java.util.List<List> list;
@com.aliyun.core.annotation.NameInMap("PageCount")
private Integer pageCount;
@com.aliyun.core.annotation.NameInMap("PageSize")
private Integer pageSize;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("TotalCount")
private Integer totalCount;
private DescribeRiskCheckResultResponseBody(Builder builder) {
this.count = builder.count;
this.currentPage = builder.currentPage;
this.list = builder.list;
this.pageCount = builder.pageCount;
this.pageSize = builder.pageSize;
this.requestId = builder.requestId;
this.totalCount = builder.totalCount;
}
public static Builder builder() {
return new Builder();
}
public static DescribeRiskCheckResultResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return count
*/
public Integer getCount() {
return this.count;
}
/**
* @return currentPage
*/
public Integer getCurrentPage() {
return this.currentPage;
}
/**
* @return list
*/
public java.util.List<List> getList() {
return this.list;
}
/**
* @return pageCount
*/
public Integer getPageCount() {
return this.pageCount;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return totalCount
*/
public Integer getTotalCount() {
return this.totalCount;
}
public static final class Builder {
private Integer count;
private Integer currentPage;
private java.util.List<List> list;
private Integer pageCount;
private Integer pageSize;
private String requestId;
private Integer totalCount;
private Builder() {
}
private Builder(DescribeRiskCheckResultResponseBody model) {
this.count = model.count;
this.currentPage = model.currentPage;
this.list = model.list;
this.pageCount = model.pageCount;
this.pageSize = model.pageSize;
this.requestId = model.requestId;
this.totalCount = model.totalCount;
}
/**
* <p>The number of entries returned on the current page.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder count(Integer count) {
this.count = count;
return this;
}
/**
* <p>The page number of the returned page.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder currentPage(Integer currentPage) {
this.currentPage = currentPage;
return this;
}
/**
* <p>The check items.</p>
*/
public Builder list(java.util.List<List> list) {
this.list = list;
return this;
}
/**
* <p>The total number of pages returned.</p>
*
* <strong>example:</strong>
* <p>20</p>
*/
public Builder pageCount(Integer pageCount) {
this.pageCount = pageCount;
return this;
}
/**
* <p>The number of entries returned per page. Default value: <strong>20</strong>.</p>
*
* <strong>example:</strong>
* <p>20</p>
*/
public Builder pageSize(Integer pageSize) {
this.pageSize = pageSize;
return this;
}
/**
* <p>The ID of the request, which is used to locate and troubleshoot issues.</p>
*
* <strong>example:</strong>
* <p>AD271C07-4ACE-413D-AA9B-F14FD3B7717F</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The total number of entries returned.</p>
*
* <strong>example:</strong>
* <p>12</p>
*/
public Builder totalCount(Integer totalCount) {
this.totalCount = totalCount;
return this;
}
public DescribeRiskCheckResultResponseBody build() {
return new DescribeRiskCheckResultResponseBody(this);
}
}
/**
*
* {@link DescribeRiskCheckResultResponseBody} extends {@link TeaModel}
*
* <p>DescribeRiskCheckResultResponseBody</p>
*/
public static class RiskItemResources extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ContentResource")
private java.util.Map<String, ?> contentResource;
@com.aliyun.core.annotation.NameInMap("ResourceName")
private String resourceName;
private RiskItemResources(Builder builder) {
this.contentResource = builder.contentResource;
this.resourceName = builder.resourceName;
}
public static Builder builder() {
return new Builder();
}
public static RiskItemResources create() {
return builder().build();
}
/**
* @return contentResource
*/
public java.util.Map<String, ?> getContentResource() {
return this.contentResource;
}
/**
* @return resourceName
*/
public String getResourceName() {
return this.resourceName;
}
public static final class Builder {
private java.util.Map<String, ?> contentResource;
private String resourceName;
private Builder() {
}
private Builder(RiskItemResources model) {
this.contentResource = model.contentResource;
this.resourceName = model.resourceName;
}
/**
* <p>The details about the check results.</p>
*/
public Builder contentResource(java.util.Map<String, ?> contentResource) {
this.contentResource = contentResource;
return this;
}
/**
* <p>The title in the details. Valid values:</p>
* <ul>
* <li><strong>bestPractice</strong>: description</li>
* <li><strong>influence</strong>: risk</li>
* <li><strong>suggestion</strong>: solution</li>
* <li><strong>helpResource</strong>: reference</li>
* </ul>
*
* <strong>example:</strong>
* <p>bestPractice</p>
*/
public Builder resourceName(String resourceName) {
this.resourceName = resourceName;
return this;
}
public RiskItemResources build() {
return new RiskItemResources(this);
}
}
}
/**
*
* {@link DescribeRiskCheckResultResponseBody} extends {@link TeaModel}
*
* <p>DescribeRiskCheckResultResponseBody</p>
*/
public static class List extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AffectedCount")
private Integer affectedCount;
@com.aliyun.core.annotation.NameInMap("CheckTime")
private Long checkTime;
@com.aliyun.core.annotation.NameInMap("ItemId")
private Long itemId;
@com.aliyun.core.annotation.NameInMap("RemainingTime")
private Integer remainingTime;
@com.aliyun.core.annotation.NameInMap("RepairStatus")
private String repairStatus;
@com.aliyun.core.annotation.NameInMap("RiskAssertType")
private String riskAssertType;
@com.aliyun.core.annotation.NameInMap("RiskItemResources")
private java.util.List<RiskItemResources> riskItemResources;
@com.aliyun.core.annotation.NameInMap("RiskLevel")
private String riskLevel;
@com.aliyun.core.annotation.NameInMap("Sort")
private Integer sort;
@com.aliyun.core.annotation.NameInMap("StartStatus")
private String startStatus;
@com.aliyun.core.annotation.NameInMap("Status")
private String status;
@com.aliyun.core.annotation.NameInMap("TaskId")
private Long taskId;
@com.aliyun.core.annotation.NameInMap("Title")
private String title;
@com.aliyun.core.annotation.NameInMap("Type")
private String type;
private List(Builder builder) {
this.affectedCount = builder.affectedCount;
this.checkTime = builder.checkTime;
this.itemId = builder.itemId;
this.remainingTime = builder.remainingTime;
this.repairStatus = builder.repairStatus;
this.riskAssertType = builder.riskAssertType;
this.riskItemResources = builder.riskItemResources;
this.riskLevel = builder.riskLevel;
this.sort = builder.sort;
this.startStatus = builder.startStatus;
this.status = builder.status;
this.taskId = builder.taskId;
this.title = builder.title;
this.type = builder.type;
}
public static Builder builder() {
return new Builder();
}
public static List create() {
return builder().build();
}
/**
* @return affectedCount
*/
public Integer getAffectedCount() {
return this.affectedCount;
}
/**
* @return checkTime
*/
public Long getCheckTime() {
return this.checkTime;
}
/**
* @return itemId
*/
public Long getItemId() {
return this.itemId;
}
/**
* @return remainingTime
*/
public Integer getRemainingTime() {
return this.remainingTime;
}
/**
* @return repairStatus
*/
public String getRepairStatus() {
return this.repairStatus;
}
/**
* @return riskAssertType
*/
public String getRiskAssertType() {
return this.riskAssertType;
}
/**
* @return riskItemResources
*/
public java.util.List<RiskItemResources> getRiskItemResources() {
return this.riskItemResources;
}
/**
* @return riskLevel
*/
public String getRiskLevel() {
return this.riskLevel;
}
/**
* @return sort
*/
public Integer getSort() {
return this.sort;
}
/**
* @return startStatus
*/
public String getStartStatus() {
return this.startStatus;
}
/**
* @return status
*/
public String getStatus() {
return this.status;
}
/**
* @return taskId
*/
public Long getTaskId() {
return this.taskId;
}
/**
* @return title
*/
public String getTitle() {
return this.title;
}
/**
* @return type
*/
public String getType() {
return this.type;
}
public static final class Builder {
private Integer affectedCount;
private Long checkTime;
private Long itemId;
private Integer remainingTime;
private String repairStatus;
private String riskAssertType;
private java.util.List<RiskItemResources> riskItemResources;
private String riskLevel;
private Integer sort;
private String startStatus;
private String status;
private Long taskId;
private String title;
private String type;
private Builder() {
}
private Builder(List model) {
this.affectedCount = model.affectedCount;
this.checkTime = model.checkTime;
this.itemId = model.itemId;
this.remainingTime = model.remainingTime;
this.repairStatus = model.repairStatus;
this.riskAssertType = model.riskAssertType;
this.riskItemResources = model.riskItemResources;
this.riskLevel = model.riskLevel;
this.sort = model.sort;
this.startStatus = model.startStatus;
this.status = model.status;
this.taskId = model.taskId;
this.title = model.title;
this.type = model.type;
}
/**
* <p>The number of affected assets.</p>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder affectedCount(Integer affectedCount) {
this.affectedCount = affectedCount;
return this;
}
/**
* <p>The timestamp when the last check was performed. Unit: milliseconds.</p>
*
* <strong>example:</strong>
* <p>1639429164000</p>
*/
public Builder checkTime(Long checkTime) {
this.checkTime = checkTime;
return this;
}
/**
* <p>The ID of the check item. For more information about the check item, see the check item table in the "Response parameters" section of this topic.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder itemId(Long itemId) {
this.itemId = itemId;
return this;
}
/**
* <p>The time when the next check will be performed.</p>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder remainingTime(Integer remainingTime) {
this.remainingTime = remainingTime;
return this;
}
/**
* <p>Indicates whether the risks that are detected based on the check item can be fixed. Valid values:</p>
* <ul>
* <li><strong>enabled</strong>: yes</li>
* <li><strong>disabled</strong>: no</li>
* </ul>
*
* <strong>example:</strong>
* <p>disabled</p>
*/
public Builder repairStatus(String repairStatus) {
this.repairStatus = repairStatus;
return this;
}
/**
* <p>The type of the affected assets.</p>
*
* <strong>example:</strong>
* <p>ECS</p>
*/
public Builder riskAssertType(String riskAssertType) {
this.riskAssertType = riskAssertType;
return this;
}
/**
* <p>An array that consists of the details about the check item.</p>
*/
public Builder riskItemResources(java.util.List<RiskItemResources> riskItemResources) {
this.riskItemResources = riskItemResources;
return this;
}
/**
* <p>The risk level of the check item. Valid values:</p>
* <ul>
* <li><strong>high</strong></li>
* <li><strong>medium</strong></li>
* <li><strong>low</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>high</p>
*/
public Builder riskLevel(String riskLevel) {
this.riskLevel = riskLevel;
return this;
}
/**
* <p>The sequence number in the check results. The check items are sorted based on the sequence number.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder sort(Integer sort) {
this.sort = sort;
return this;
}
/**
* <p>Indicates whether the check item is supported by the edition of Security Center that you purchase. Valid values:</p>
* <ul>
* <li><strong>enabled</strong>: yes</li>
* <li><strong>disable</strong>: no</li>
* </ul>
*
* <strong>example:</strong>
* <p>enabled</p>
*/
public Builder startStatus(String startStatus) {
this.startStatus = startStatus;
return this;
}
/**
* <p>The status of the check results. Valid values:</p>
* <ul>
* <li><strong>pass</strong></li>
* <li><strong>failed</strong></li>
* <li><strong>running</strong></li>
* <li><strong>waiting</strong></li>
* <li><strong>ignored</strong></li>
* <li><strong>falsePositive</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>pass</p>
*/
public Builder status(String status) {
this.status = status;
return this;
}
/**
* <p>The ID of the check task.</p>
*
* <strong>example:</strong>
* <p>15384933</p>
*/
public Builder taskId(Long taskId) {
this.taskId = taskId;
return this;
}
/**
* <p>The name of the check item.</p>
*
* <strong>example:</strong>
* <p>RDS - Whitelist Configuration</p>
*/
public Builder title(String title) {
this.title = title;
return this;
}
/**
* <p>The type of the check item. Valid values:</p>
* <ul>
* <li>Identity authentication and permissions</li>
* <li>Network access control</li>
* <li>Log audit</li>
* <li>Data security</li>
* <li>Monitoring and alerting</li>
* <li>Basic security protection</li>
* </ul>
*
* <strong>example:</strong>
* <p>Log audit</p>
*/
public Builder type(String type) {
this.type = type;
return this;
}
public List build() {
return new List(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeRiskCheckSummaryRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeRiskCheckSummaryRequest} extends {@link RequestModel}
*
* <p>DescribeRiskCheckSummaryRequest</p>
*/
public class DescribeRiskCheckSummaryRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Lang")
private String lang;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceDirectoryAccountId")
private String resourceDirectoryAccountId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SourceIp")
private String sourceIp;
private DescribeRiskCheckSummaryRequest(Builder builder) {
super(builder);
this.lang = builder.lang;
this.resourceDirectoryAccountId = builder.resourceDirectoryAccountId;
this.resourceOwnerId = builder.resourceOwnerId;
this.sourceIp = builder.sourceIp;
}
public static Builder builder() {
return new Builder();
}
public static DescribeRiskCheckSummaryRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return lang
*/
public String getLang() {
return this.lang;
}
/**
* @return resourceDirectoryAccountId
*/
public String getResourceDirectoryAccountId() {
return this.resourceDirectoryAccountId;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
/**
* @return sourceIp
*/
public String getSourceIp() {
return this.sourceIp;
}
public static final class Builder extends Request.Builder<DescribeRiskCheckSummaryRequest, Builder> {
private String lang;
private String resourceDirectoryAccountId;
private Long resourceOwnerId;
private String sourceIp;
private Builder() {
super();
}
private Builder(DescribeRiskCheckSummaryRequest request) {
super(request);
this.lang = request.lang;
this.resourceDirectoryAccountId = request.resourceDirectoryAccountId;
this.resourceOwnerId = request.resourceOwnerId;
this.sourceIp = request.sourceIp;
}
/**
* <p>The language of the content within the request and response. Default value: <strong>zh</strong>. Valid values:</p>
* <ul>
* <li><strong>zh</strong>: Chinese</li>
* <li><strong>en</strong>: English</li>
* </ul>
*
* <strong>example:</strong>
* <p>zh</p>
*/
public Builder lang(String lang) {
this.putQueryParameter("Lang", lang);
this.lang = lang;
return this;
}
/**
* <p>The ID of the Alibaba Cloud account that is added as a member by using the multi-account control feature.</p>
*
* <strong>example:</strong>
* <p>1232428423234****</p>
*/
public Builder resourceDirectoryAccountId(String resourceDirectoryAccountId) {
this.putQueryParameter("ResourceDirectoryAccountId", resourceDirectoryAccountId);
this.resourceDirectoryAccountId = resourceDirectoryAccountId;
return this;
}
/**
* ResourceOwnerId.
*/
public Builder resourceOwnerId(Long resourceOwnerId) {
this.putQueryParameter("ResourceOwnerId", resourceOwnerId);
this.resourceOwnerId = resourceOwnerId;
return this;
}
/**
* <p>The source IP address of the request.</p>
*
* <strong>example:</strong>
* <p>1.2.XX.XX</p>
*/
public Builder sourceIp(String sourceIp) {
this.putQueryParameter("SourceIp", sourceIp);
this.sourceIp = sourceIp;
return this;
}
@Override
public DescribeRiskCheckSummaryRequest build() {
return new DescribeRiskCheckSummaryRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeRiskCheckSummaryResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeRiskCheckSummaryResponse} extends {@link TeaModel}
*
* <p>DescribeRiskCheckSummaryResponse</p>
*/
public class DescribeRiskCheckSummaryResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private DescribeRiskCheckSummaryResponseBody body;
private DescribeRiskCheckSummaryResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeRiskCheckSummaryResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public DescribeRiskCheckSummaryResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeRiskCheckSummaryResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeRiskCheckSummaryResponseBody body);
@Override
DescribeRiskCheckSummaryResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeRiskCheckSummaryResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeRiskCheckSummaryResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeRiskCheckSummaryResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(DescribeRiskCheckSummaryResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeRiskCheckSummaryResponse build() {
return new DescribeRiskCheckSummaryResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeRiskCheckSummaryResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeRiskCheckSummaryResponseBody} extends {@link TeaModel}
*
* <p>DescribeRiskCheckSummaryResponseBody</p>
*/
public class DescribeRiskCheckSummaryResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("RiskCheckSummary")
private RiskCheckSummary riskCheckSummary;
private DescribeRiskCheckSummaryResponseBody(Builder builder) {
this.requestId = builder.requestId;
this.riskCheckSummary = builder.riskCheckSummary;
}
public static Builder builder() {
return new Builder();
}
public static DescribeRiskCheckSummaryResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return riskCheckSummary
*/
public RiskCheckSummary getRiskCheckSummary() {
return this.riskCheckSummary;
}
public static final class Builder {
private String requestId;
private RiskCheckSummary riskCheckSummary;
private Builder() {
}
private Builder(DescribeRiskCheckSummaryResponseBody model) {
this.requestId = model.requestId;
this.riskCheckSummary = model.riskCheckSummary;
}
/**
* <p>The ID of the request, which is used to locate and troubleshoot issues.</p>
*
* <strong>example:</strong>
* <p>291B49F9-1685-4005-9D34-606B6F78740F</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The summary information about the check results of cloud service configurations.</p>
*/
public Builder riskCheckSummary(RiskCheckSummary riskCheckSummary) {
this.riskCheckSummary = riskCheckSummary;
return this;
}
public DescribeRiskCheckSummaryResponseBody build() {
return new DescribeRiskCheckSummaryResponseBody(this);
}
}
/**
*
* {@link DescribeRiskCheckSummaryResponseBody} extends {@link TeaModel}
*
* <p>DescribeRiskCheckSummaryResponseBody</p>
*/
public static class CountByStatus extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Count")
private Integer count;
@com.aliyun.core.annotation.NameInMap("Status")
private String status;
private CountByStatus(Builder builder) {
this.count = builder.count;
this.status = builder.status;
}
public static Builder builder() {
return new Builder();
}
public static CountByStatus create() {
return builder().build();
}
/**
* @return count
*/
public Integer getCount() {
return this.count;
}
/**
* @return status
*/
public String getStatus() {
return this.status;
}
public static final class Builder {
private Integer count;
private String status;
private Builder() {
}
private Builder(CountByStatus model) {
this.count = model.count;
this.status = model.status;
}
/**
* <p>The number of detected risk items.</p>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder count(Integer count) {
this.count = count;
return this;
}
/**
* <p>The status of the check item after the check is finished. Valid values:</p>
* <ul>
* <li><strong>pass</strong>: The check item passed the check, which indicates that the check item is normal.</li>
* <li><strong>failed</strong>: The check item failed the check, which indicates that risks are detected based on the check item.</li>
* </ul>
*
* <strong>example:</strong>
* <p>pass</p>
*/
public Builder status(String status) {
this.status = status;
return this;
}
public CountByStatus build() {
return new CountByStatus(this);
}
}
}
/**
*
* {@link DescribeRiskCheckSummaryResponseBody} extends {@link TeaModel}
*
* <p>DescribeRiskCheckSummaryResponseBody</p>
*/
public static class Groups extends TeaModel {
@com.aliyun.core.annotation.NameInMap("CountByStatus")
private java.util.List<CountByStatus> countByStatus;
@com.aliyun.core.annotation.NameInMap("Id")
private Long id;
@com.aliyun.core.annotation.NameInMap("RemainingTime")
private Integer remainingTime;
@com.aliyun.core.annotation.NameInMap("Sort")
private Integer sort;
@com.aliyun.core.annotation.NameInMap("Status")
private String status;
@com.aliyun.core.annotation.NameInMap("Title")
private String title;
private Groups(Builder builder) {
this.countByStatus = builder.countByStatus;
this.id = builder.id;
this.remainingTime = builder.remainingTime;
this.sort = builder.sort;
this.status = builder.status;
this.title = builder.title;
}
public static Builder builder() {
return new Builder();
}
public static Groups create() {
return builder().build();
}
/**
* @return countByStatus
*/
public java.util.List<CountByStatus> getCountByStatus() {
return this.countByStatus;
}
/**
* @return id
*/
public Long getId() {
return this.id;
}
/**
* @return remainingTime
*/
public Integer getRemainingTime() {
return this.remainingTime;
}
/**
* @return sort
*/
public Integer getSort() {
return this.sort;
}
/**
* @return status
*/
public String getStatus() {
return this.status;
}
/**
* @return title
*/
public String getTitle() {
return this.title;
}
public static final class Builder {
private java.util.List<CountByStatus> countByStatus;
private Long id;
private Integer remainingTime;
private Integer sort;
private String status;
private String title;
private Builder() {
}
private Builder(Groups model) {
this.countByStatus = model.countByStatus;
this.id = model.id;
this.remainingTime = model.remainingTime;
this.sort = model.sort;
this.status = model.status;
this.title = model.title;
}
/**
* <p>An array that consists of the statistics about check results.</p>
*/
public Builder countByStatus(java.util.List<CountByStatus> countByStatus) {
this.countByStatus = countByStatus;
return this;
}
/**
* <p>The ID of the check item type.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder id(Long id) {
this.id = id;
return this;
}
/**
* <p>The remaining time before the check is complete.</p>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder remainingTime(Integer remainingTime) {
this.remainingTime = remainingTime;
return this;
}
/**
* <p>The sequence number of the check item type in the <strong>All Types</strong> drop-down list in the Security Center console.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder sort(Integer sort) {
this.sort = sort;
return this;
}
/**
* <p>The status of the check. Valid values:</p>
* <ul>
* <li><strong>finish</strong>: The check is finished.</li>
* <li><strong>running</strong>: The check is in progress.</li>
* <li><strong>waiting</strong>: The check is pending.</li>
* <li><strong>notStart</strong>: The check is not started.</li>
* </ul>
*
* <strong>example:</strong>
* <p>finish</p>
*/
public Builder status(String status) {
this.status = status;
return this;
}
/**
* <p>The name of the check item type.</p>
*
* <strong>example:</strong>
* <p>Identity authentication and permissions</p>
*/
public Builder title(String title) {
this.title = title;
return this;
}
public Groups build() {
return new Groups(this);
}
}
}
/**
*
* {@link DescribeRiskCheckSummaryResponseBody} extends {@link TeaModel}
*
* <p>DescribeRiskCheckSummaryResponseBody</p>
*/
public static class RiskLevelCount extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Count")
private Integer count;
@com.aliyun.core.annotation.NameInMap("Key")
private String key;
private RiskLevelCount(Builder builder) {
this.count = builder.count;
this.key = builder.key;
}
public static Builder builder() {
return new Builder();
}
public static RiskLevelCount create() {
return builder().build();
}
/**
* @return count
*/
public Integer getCount() {
return this.count;
}
/**
* @return key
*/
public String getKey() {
return this.key;
}
public static final class Builder {
private Integer count;
private String key;
private Builder() {
}
private Builder(RiskLevelCount model) {
this.count = model.count;
this.key = model.key;
}
/**
* <p>The number of check items at the specified risk level.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder count(Integer count) {
this.count = count;
return this;
}
/**
* <p>The risk level of the check items. Valid values:</p>
* <ul>
* <li><strong>high</strong></li>
* <li><strong>medium</strong></li>
* <li><strong>low</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>medium</p>
*/
public Builder key(String key) {
this.key = key;
return this;
}
public RiskLevelCount build() {
return new RiskLevelCount(this);
}
}
}
/**
*
* {@link DescribeRiskCheckSummaryResponseBody} extends {@link TeaModel}
*
* <p>DescribeRiskCheckSummaryResponseBody</p>
*/
public static class RiskCheckSummary extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AffectedAssetCount")
private Integer affectedAssetCount;
@com.aliyun.core.annotation.NameInMap("DisabledRiskCount")
private Integer disabledRiskCount;
@com.aliyun.core.annotation.NameInMap("EnabledRiskCount")
private Integer enabledRiskCount;
@com.aliyun.core.annotation.NameInMap("Groups")
private java.util.List<Groups> groups;
@com.aliyun.core.annotation.NameInMap("ItemCount")
private Integer itemCount;
@com.aliyun.core.annotation.NameInMap("PreviousCount")
private Integer previousCount;
@com.aliyun.core.annotation.NameInMap("PreviousTime")
private Long previousTime;
@com.aliyun.core.annotation.NameInMap("RiskCount")
private Integer riskCount;
@com.aliyun.core.annotation.NameInMap("RiskLevelCount")
private java.util.List<RiskLevelCount> riskLevelCount;
@com.aliyun.core.annotation.NameInMap("RiskRate")
private Float riskRate;
private RiskCheckSummary(Builder builder) {
this.affectedAssetCount = builder.affectedAssetCount;
this.disabledRiskCount = builder.disabledRiskCount;
this.enabledRiskCount = builder.enabledRiskCount;
this.groups = builder.groups;
this.itemCount = builder.itemCount;
this.previousCount = builder.previousCount;
this.previousTime = builder.previousTime;
this.riskCount = builder.riskCount;
this.riskLevelCount = builder.riskLevelCount;
this.riskRate = builder.riskRate;
}
public static Builder builder() {
return new Builder();
}
public static RiskCheckSummary create() {
return builder().build();
}
/**
* @return affectedAssetCount
*/
public Integer getAffectedAssetCount() {
return this.affectedAssetCount;
}
/**
* @return disabledRiskCount
*/
public Integer getDisabledRiskCount() {
return this.disabledRiskCount;
}
/**
* @return enabledRiskCount
*/
public Integer getEnabledRiskCount() {
return this.enabledRiskCount;
}
/**
* @return groups
*/
public java.util.List<Groups> getGroups() {
return this.groups;
}
/**
* @return itemCount
*/
public Integer getItemCount() {
return this.itemCount;
}
/**
* @return previousCount
*/
public Integer getPreviousCount() {
return this.previousCount;
}
/**
* @return previousTime
*/
public Long getPreviousTime() {
return this.previousTime;
}
/**
* @return riskCount
*/
public Integer getRiskCount() {
return this.riskCount;
}
/**
* @return riskLevelCount
*/
public java.util.List<RiskLevelCount> getRiskLevelCount() {
return this.riskLevelCount;
}
/**
* @return riskRate
*/
public Float getRiskRate() {
return this.riskRate;
}
public static final class Builder {
private Integer affectedAssetCount;
private Integer disabledRiskCount;
private Integer enabledRiskCount;
private java.util.List<Groups> groups;
private Integer itemCount;
private Integer previousCount;
private Long previousTime;
private Integer riskCount;
private java.util.List<RiskLevelCount> riskLevelCount;
private Float riskRate;
private Builder() {
}
private Builder(RiskCheckSummary model) {
this.affectedAssetCount = model.affectedAssetCount;
this.disabledRiskCount = model.disabledRiskCount;
this.enabledRiskCount = model.enabledRiskCount;
this.groups = model.groups;
this.itemCount = model.itemCount;
this.previousCount = model.previousCount;
this.previousTime = model.previousTime;
this.riskCount = model.riskCount;
this.riskLevelCount = model.riskLevelCount;
this.riskRate = model.riskRate;
}
/**
* <p>The number of affected assets.</p>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder affectedAssetCount(Integer affectedAssetCount) {
this.affectedAssetCount = affectedAssetCount;
return this;
}
/**
* <p>The number of the check items that failed the check.</p>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder disabledRiskCount(Integer disabledRiskCount) {
this.disabledRiskCount = disabledRiskCount;
return this;
}
/**
* <p>The number of the check items that passed the check.</p>
*
* <strong>example:</strong>
* <p>3</p>
*/
public Builder enabledRiskCount(Integer enabledRiskCount) {
this.enabledRiskCount = enabledRiskCount;
return this;
}
/**
* <p>An array that consists of the statistics for each type of check item.</p>
*/
public Builder groups(java.util.List<Groups> groups) {
this.groups = groups;
return this;
}
/**
* <p>The number of check items.</p>
*
* <strong>example:</strong>
* <p>4</p>
*/
public Builder itemCount(Integer itemCount) {
this.itemCount = itemCount;
return this;
}
/**
* <p>The number of risk items detected in the last check.</p>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder previousCount(Integer previousCount) {
this.previousCount = previousCount;
return this;
}
/**
* <p>The timestamp of the last check. Unit: milliseconds.</p>
*
* <strong>example:</strong>
* <p>1545012926000</p>
*/
public Builder previousTime(Long previousTime) {
this.previousTime = previousTime;
return this;
}
/**
* <p>The number of detected risk items.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder riskCount(Integer riskCount) {
this.riskCount = riskCount;
return this;
}
/**
* <p>An array that consists of the number of check items at each risk level.</p>
*/
public Builder riskLevelCount(java.util.List<RiskLevelCount> riskLevelCount) {
this.riskLevelCount = riskLevelCount;
return this;
}
/**
* <p>The proportion of risk items to all check items.</p>
*
* <strong>example:</strong>
* <p>0.25</p>
*/
public Builder riskRate(Float riskRate) {
this.riskRate = riskRate;
return this;
}
public RiskCheckSummary build() {
return new RiskCheckSummary(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeRiskItemTypeRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeRiskItemTypeRequest} extends {@link RequestModel}
*
* <p>DescribeRiskItemTypeRequest</p>
*/
public class DescribeRiskItemTypeRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Lang")
private String lang;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SourceIp")
private String sourceIp;
private DescribeRiskItemTypeRequest(Builder builder) {
super(builder);
this.lang = builder.lang;
this.resourceOwnerId = builder.resourceOwnerId;
this.sourceIp = builder.sourceIp;
}
public static Builder builder() {
return new Builder();
}
public static DescribeRiskItemTypeRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return lang
*/
public String getLang() {
return this.lang;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
/**
* @return sourceIp
*/
public String getSourceIp() {
return this.sourceIp;
}
public static final class Builder extends Request.Builder<DescribeRiskItemTypeRequest, Builder> {
private String lang;
private Long resourceOwnerId;
private String sourceIp;
private Builder() {
super();
}
private Builder(DescribeRiskItemTypeRequest request) {
super(request);
this.lang = request.lang;
this.resourceOwnerId = request.resourceOwnerId;
this.sourceIp = request.sourceIp;
}
/**
* <p>The language of the content within the request and response. Default value: <strong>zh</strong>. Valid values:</p>
* <ul>
* <li><strong>zh</strong>: Chinese</li>
* <li><strong>en</strong>: English</li>
* </ul>
*
* <strong>example:</strong>
* <p>zh</p>
*/
public Builder lang(String lang) {
this.putQueryParameter("Lang", lang);
this.lang = lang;
return this;
}
/**
* ResourceOwnerId.
*/
public Builder resourceOwnerId(Long resourceOwnerId) {
this.putQueryParameter("ResourceOwnerId", resourceOwnerId);
this.resourceOwnerId = resourceOwnerId;
return this;
}
/**
* <p>The source IP address of the request.</p>
*
* <strong>example:</strong>
* <p>183.237.XX.XX</p>
*/
public Builder sourceIp(String sourceIp) {
this.putQueryParameter("SourceIp", sourceIp);
this.sourceIp = sourceIp;
return this;
}
@Override
public DescribeRiskItemTypeRequest build() {
return new DescribeRiskItemTypeRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeRiskItemTypeResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeRiskItemTypeResponse} extends {@link TeaModel}
*
* <p>DescribeRiskItemTypeResponse</p>
*/
public class DescribeRiskItemTypeResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private DescribeRiskItemTypeResponseBody body;
private DescribeRiskItemTypeResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeRiskItemTypeResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public DescribeRiskItemTypeResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeRiskItemTypeResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeRiskItemTypeResponseBody body);
@Override
DescribeRiskItemTypeResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeRiskItemTypeResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeRiskItemTypeResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeRiskItemTypeResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(DescribeRiskItemTypeResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeRiskItemTypeResponse build() {
return new DescribeRiskItemTypeResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeRiskItemTypeResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeRiskItemTypeResponseBody} extends {@link TeaModel}
*
* <p>DescribeRiskItemTypeResponseBody</p>
*/
public class DescribeRiskItemTypeResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("List")
private java.util.List<List> list;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private DescribeRiskItemTypeResponseBody(Builder builder) {
this.list = builder.list;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeRiskItemTypeResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return list
*/
public java.util.List<List> getList() {
return this.list;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private java.util.List<List> list;
private String requestId;
private Builder() {
}
private Builder(DescribeRiskItemTypeResponseBody model) {
this.list = model.list;
this.requestId = model.requestId;
}
/**
* <p>An array that consists of information about the type of the check item.</p>
*/
public Builder list(java.util.List<List> list) {
this.list = list;
return this;
}
/**
* <p>The ID of the request, which is used to locate and troubleshoot issues.</p>
*
* <strong>example:</strong>
* <p>3B3F3A90-46A5-4023-A2D8-D68B14262F96</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public DescribeRiskItemTypeResponseBody build() {
return new DescribeRiskItemTypeResponseBody(this);
}
}
/**
*
* {@link DescribeRiskItemTypeResponseBody} extends {@link TeaModel}
*
* <p>DescribeRiskItemTypeResponseBody</p>
*/
public static class List extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Id")
private Long id;
@com.aliyun.core.annotation.NameInMap("Title")
private String title;
private List(Builder builder) {
this.id = builder.id;
this.title = builder.title;
}
public static Builder builder() {
return new Builder();
}
public static List create() {
return builder().build();
}
/**
* @return id
*/
public Long getId() {
return this.id;
}
/**
* @return title
*/
public String getTitle() {
return this.title;
}
public static final class Builder {
private Long id;
private String title;
private Builder() {
}
private Builder(List model) {
this.id = model.id;
this.title = model.title;
}
/**
* <p>The ID of the check item.</p>
*
* <strong>example:</strong>
* <p>37625</p>
*/
public Builder id(Long id) {
this.id = id;
return this;
}
/**
* <p>The name of the check type.</p>
*
* <strong>example:</strong>
* <p>Identity authentication and permissions</p>
*/
public Builder title(String title) {
this.title = title;
return this;
}
public List build() {
return new List(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeRiskListCheckResultRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeRiskListCheckResultRequest} extends {@link RequestModel}
*
* <p>DescribeRiskListCheckResultRequest</p>
*/
public class DescribeRiskListCheckResultRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("CurrentPage")
private Integer currentPage;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("InstanceIds")
private java.util.List<String> instanceIds;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Lang")
private String lang;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageSize")
private Integer pageSize;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SourceIp")
private String sourceIp;
private DescribeRiskListCheckResultRequest(Builder builder) {
super(builder);
this.currentPage = builder.currentPage;
this.instanceIds = builder.instanceIds;
this.lang = builder.lang;
this.pageSize = builder.pageSize;
this.resourceOwnerId = builder.resourceOwnerId;
this.sourceIp = builder.sourceIp;
}
public static Builder builder() {
return new Builder();
}
public static DescribeRiskListCheckResultRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return currentPage
*/
public Integer getCurrentPage() {
return this.currentPage;
}
/**
* @return instanceIds
*/
public java.util.List<String> getInstanceIds() {
return this.instanceIds;
}
/**
* @return lang
*/
public String getLang() {
return this.lang;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
/**
* @return sourceIp
*/
public String getSourceIp() {
return this.sourceIp;
}
public static final class Builder extends Request.Builder<DescribeRiskListCheckResultRequest, Builder> {
private Integer currentPage;
private java.util.List<String> instanceIds;
private String lang;
private Integer pageSize;
private Long resourceOwnerId;
private String sourceIp;
private Builder() {
super();
}
private Builder(DescribeRiskListCheckResultRequest request) {
super(request);
this.currentPage = request.currentPage;
this.instanceIds = request.instanceIds;
this.lang = request.lang;
this.pageSize = request.pageSize;
this.resourceOwnerId = request.resourceOwnerId;
this.sourceIp = request.sourceIp;
}
/**
* <p>The number of the page to return. Pages start from page 1. Default value: 1.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder currentPage(Integer currentPage) {
this.putQueryParameter("CurrentPage", currentPage);
this.currentPage = currentPage;
return this;
}
/**
* <p>The instance IDs of the cloud services that you want to query. Separate multiple IDs with commas (,).</p>
* <blockquote>
* <p>If you do not specify this parameter, an empty list is returned.</p>
* </blockquote>
*/
public Builder instanceIds(java.util.List<String> instanceIds) {
this.putQueryParameter("InstanceIds", instanceIds);
this.instanceIds = instanceIds;
return this;
}
/**
* <p>The language of the content within the request and response. Valid values:</p>
* <ul>
* <li><strong>zh</strong>: Chinese</li>
* <li><strong>en</strong>: English</li>
* </ul>
*
* <strong>example:</strong>
* <p>zh</p>
*/
public Builder lang(String lang) {
this.putQueryParameter("Lang", lang);
this.lang = lang;
return this;
}
/**
* <p>The number of entries to return on each page.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder pageSize(Integer pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
return this;
}
/**
* ResourceOwnerId.
*/
public Builder resourceOwnerId(Long resourceOwnerId) {
this.putQueryParameter("ResourceOwnerId", resourceOwnerId);
this.resourceOwnerId = resourceOwnerId;
return this;
}
/**
* <p>The source IP address of the request.</p>
*
* <strong>example:</strong>
* <p>59.57.XX.XX</p>
*/
public Builder sourceIp(String sourceIp) {
this.putQueryParameter("SourceIp", sourceIp);
this.sourceIp = sourceIp;
return this;
}
@Override
public DescribeRiskListCheckResultRequest build() {
return new DescribeRiskListCheckResultRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeRiskListCheckResultResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeRiskListCheckResultResponse} extends {@link TeaModel}
*
* <p>DescribeRiskListCheckResultResponse</p>
*/
public class DescribeRiskListCheckResultResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private DescribeRiskListCheckResultResponseBody body;
private DescribeRiskListCheckResultResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeRiskListCheckResultResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public DescribeRiskListCheckResultResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeRiskListCheckResultResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeRiskListCheckResultResponseBody body);
@Override
DescribeRiskListCheckResultResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeRiskListCheckResultResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeRiskListCheckResultResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeRiskListCheckResultResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(DescribeRiskListCheckResultResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeRiskListCheckResultResponse build() {
return new DescribeRiskListCheckResultResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeRiskListCheckResultResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeRiskListCheckResultResponseBody} extends {@link TeaModel}
*
* <p>DescribeRiskListCheckResultResponseBody</p>
*/
public class DescribeRiskListCheckResultResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("List")
private java.util.List<List> list;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private DescribeRiskListCheckResultResponseBody(Builder builder) {
this.list = builder.list;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeRiskListCheckResultResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return list
*/
public java.util.List<List> getList() {
return this.list;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private java.util.List<List> list;
private String requestId;
private Builder() {
}
private Builder(DescribeRiskListCheckResultResponseBody model) {
this.list = model.list;
this.requestId = model.requestId;
}
/**
* <p>The number of risk items for each cloud service.</p>
*/
public Builder list(java.util.List<List> list) {
this.list = list;
return this;
}
/**
* <p>The ID of the request, which is used to locate and troubleshoot issues.</p>
*
* <strong>example:</strong>
* <p>3BFB4989-A108-46A4-954E-FF7EF02D1078</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public DescribeRiskListCheckResultResponseBody build() {
return new DescribeRiskListCheckResultResponseBody(this);
}
}
/**
*
* {@link DescribeRiskListCheckResultResponseBody} extends {@link TeaModel}
*
* <p>DescribeRiskListCheckResultResponseBody</p>
*/
public static class List extends TeaModel {
@com.aliyun.core.annotation.NameInMap("InstanceId")
private String instanceId;
@com.aliyun.core.annotation.NameInMap("riskCount")
private Long riskCount;
private List(Builder builder) {
this.instanceId = builder.instanceId;
this.riskCount = builder.riskCount;
}
public static Builder builder() {
return new Builder();
}
public static List create() {
return builder().build();
}
/**
* @return instanceId
*/
public String getInstanceId() {
return this.instanceId;
}
/**
* @return riskCount
*/
public Long getRiskCount() {
return this.riskCount;
}
public static final class Builder {
private String instanceId;
private Long riskCount;
private Builder() {
}
private Builder(List model) {
this.instanceId = model.instanceId;
this.riskCount = model.riskCount;
}
/**
* <p>The instance ID of the cloud service.</p>
*
* <strong>example:</strong>
* <p>rm-bp1e8t4q15sr3****</p>
*/
public Builder instanceId(String instanceId) {
this.instanceId = instanceId;
return this;
}
/**
* <p>The total number of risk items detected in the current cloud service.</p>
*
* <strong>example:</strong>
* <p>3</p>
*/
public Builder riskCount(Long riskCount) {
this.riskCount = riskCount;
return this;
}
public List build() {
return new List(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeRiskTypeRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeRiskTypeRequest} extends {@link RequestModel}
*
* <p>DescribeRiskTypeRequest</p>
*/
public class DescribeRiskTypeRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Lang")
private String lang;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Source")
private String source;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SourceIp")
private String sourceIp;
private DescribeRiskTypeRequest(Builder builder) {
super(builder);
this.lang = builder.lang;
this.source = builder.source;
this.sourceIp = builder.sourceIp;
}
public static Builder builder() {
return new Builder();
}
public static DescribeRiskTypeRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return lang
*/
public String getLang() {
return this.lang;
}
/**
* @return source
*/
public String getSource() {
return this.source;
}
/**
* @return sourceIp
*/
public String getSourceIp() {
return this.sourceIp;
}
public static final class Builder extends Request.Builder<DescribeRiskTypeRequest, Builder> {
private String lang;
private String source;
private String sourceIp;
private Builder() {
super();
}
private Builder(DescribeRiskTypeRequest request) {
super(request);
this.lang = request.lang;
this.source = request.source;
this.sourceIp = request.sourceIp;
}
/**
* <p>The language of the content within the request and response. Default value: <strong>zh</strong>. Valid values:</p>
* <ul>
* <li><strong>zh</strong>: Chinese</li>
* <li><strong>en</strong>: English</li>
* </ul>
*
* <strong>example:</strong>
* <p>zh</p>
*/
public Builder lang(String lang) {
this.putQueryParameter("Lang", lang);
this.lang = lang;
return this;
}
/**
* <p>The data source. Valid values:</p>
* <ul>
* <li><strong>default</strong>: host baseline</li>
* <li><strong>agentless</strong>: agentless baseline</li>
* </ul>
*
* <strong>example:</strong>
* <p>agentless</p>
*/
public Builder source(String source) {
this.putQueryParameter("Source", source);
this.source = source;
return this;
}
/**
* <p>The source IP address of the request.</p>
*
* <strong>example:</strong>
* <p>192.168.X.X</p>
*/
public Builder sourceIp(String sourceIp) {
this.putQueryParameter("SourceIp", sourceIp);
this.sourceIp = sourceIp;
return this;
}
@Override
public DescribeRiskTypeRequest build() {
return new DescribeRiskTypeRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeRiskTypeResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeRiskTypeResponse} extends {@link TeaModel}
*
* <p>DescribeRiskTypeResponse</p>
*/
public class DescribeRiskTypeResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private DescribeRiskTypeResponseBody body;
private DescribeRiskTypeResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeRiskTypeResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public DescribeRiskTypeResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeRiskTypeResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeRiskTypeResponseBody body);
@Override
DescribeRiskTypeResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeRiskTypeResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeRiskTypeResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeRiskTypeResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(DescribeRiskTypeResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeRiskTypeResponse build() {
return new DescribeRiskTypeResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeRiskTypeResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeRiskTypeResponseBody} extends {@link TeaModel}
*
* <p>DescribeRiskTypeResponseBody</p>
*/
public class DescribeRiskTypeResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("RiskTypes")
private java.util.List<RiskTypes> riskTypes;
private DescribeRiskTypeResponseBody(Builder builder) {
this.requestId = builder.requestId;
this.riskTypes = builder.riskTypes;
}
public static Builder builder() {
return new Builder();
}
public static DescribeRiskTypeResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return riskTypes
*/
public java.util.List<RiskTypes> getRiskTypes() {
return this.riskTypes;
}
public static final class Builder {
private String requestId;
private java.util.List<RiskTypes> riskTypes;
private Builder() {
}
private Builder(DescribeRiskTypeResponseBody model) {
this.requestId = model.requestId;
this.riskTypes = model.riskTypes;
}
/**
* <p>The ID of the request, which is used to locate and troubleshoot issues.</p>
*
* <strong>example:</strong>
* <p>F22037B5-FCE4-5178-A9E7-71798E1F9270</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>An array that consists of the information about baseline types.</p>
*/
public Builder riskTypes(java.util.List<RiskTypes> riskTypes) {
this.riskTypes = riskTypes;
return this;
}
public DescribeRiskTypeResponseBody build() {
return new DescribeRiskTypeResponseBody(this);
}
}
/**
*
* {@link DescribeRiskTypeResponseBody} extends {@link TeaModel}
*
* <p>DescribeRiskTypeResponseBody</p>
*/
public static class ParamList extends TeaModel {
@com.aliyun.core.annotation.NameInMap("EnumValue")
private String enumValue;
@com.aliyun.core.annotation.NameInMap("MaxValue")
private Integer maxValue;
@com.aliyun.core.annotation.NameInMap("MinValue")
private Integer minValue;
@com.aliyun.core.annotation.NameInMap("ParamDefaultValue")
private String paramDefaultValue;
@com.aliyun.core.annotation.NameInMap("ParamDesc")
private String paramDesc;
@com.aliyun.core.annotation.NameInMap("ParamName")
private String paramName;
@com.aliyun.core.annotation.NameInMap("ParamType")
private Integer paramType;
private ParamList(Builder builder) {
this.enumValue = builder.enumValue;
this.maxValue = builder.maxValue;
this.minValue = builder.minValue;
this.paramDefaultValue = builder.paramDefaultValue;
this.paramDesc = builder.paramDesc;
this.paramName = builder.paramName;
this.paramType = builder.paramType;
}
public static Builder builder() {
return new Builder();
}
public static ParamList create() {
return builder().build();
}
/**
* @return enumValue
*/
public String getEnumValue() {
return this.enumValue;
}
/**
* @return maxValue
*/
public Integer getMaxValue() {
return this.maxValue;
}
/**
* @return minValue
*/
public Integer getMinValue() {
return this.minValue;
}
/**
* @return paramDefaultValue
*/
public String getParamDefaultValue() {
return this.paramDefaultValue;
}
/**
* @return paramDesc
*/
public String getParamDesc() {
return this.paramDesc;
}
/**
* @return paramName
*/
public String getParamName() {
return this.paramName;
}
/**
* @return paramType
*/
public Integer getParamType() {
return this.paramType;
}
public static final class Builder {
private String enumValue;
private Integer maxValue;
private Integer minValue;
private String paramDefaultValue;
private String paramDesc;
private String paramName;
private Integer paramType;
private Builder() {
}
private Builder(ParamList model) {
this.enumValue = model.enumValue;
this.maxValue = model.maxValue;
this.minValue = model.minValue;
this.paramDefaultValue = model.paramDefaultValue;
this.paramDesc = model.paramDesc;
this.paramName = model.paramName;
this.paramType = model.paramType;
}
/**
* <p>If the value of paramType is 1, this parameter is empty. If the value of paramType is 2, this parameter provides the options that can be selected for paramType.</p>
*
* <strong>example:</strong>
* <p>0,1,2,3</p>
*/
public Builder enumValue(String enumValue) {
this.enumValue = enumValue;
return this;
}
/**
* <p>The maximum value of the parameter.</p>
*
* <strong>example:</strong>
* <p>999</p>
*/
public Builder maxValue(Integer maxValue) {
this.maxValue = maxValue;
return this;
}
/**
* <p>The minimum value of the parameter.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder minValue(Integer minValue) {
this.minValue = minValue;
return this;
}
/**
* <p>The default value of the parameter.</p>
*
* <strong>example:</strong>
* <p>7</p>
*/
public Builder paramDefaultValue(String paramDefaultValue) {
this.paramDefaultValue = paramDefaultValue;
return this;
}
/**
* <p>The description of the parameter.</p>
*
* <strong>example:</strong>
* <p>The setting value is 0 means no definition, 1 means success, 2 means failure, 3 means success and failure</p>
*/
public Builder paramDesc(String paramDesc) {
this.paramDesc = paramDesc;
return this;
}
/**
* <p>The name of the parameter.</p>
*
* <strong>example:</strong>
* <p>range_val</p>
*/
public Builder paramName(String paramName) {
this.paramName = paramName;
return this;
}
/**
* <p>The configuration type of the parameter. Valid values:</p>
* <ul>
* <li><strong>1</strong>: input</li>
* <li><strong>2</strong>: selection</li>
* </ul>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder paramType(Integer paramType) {
this.paramType = paramType;
return this;
}
public ParamList build() {
return new ParamList(this);
}
}
}
/**
*
* {@link DescribeRiskTypeResponseBody} extends {@link TeaModel}
*
* <p>DescribeRiskTypeResponseBody</p>
*/
public static class Rules extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Optional")
private Integer optional;
@com.aliyun.core.annotation.NameInMap("ParamList")
private java.util.List<ParamList> paramList;
@com.aliyun.core.annotation.NameInMap("RuleDesc")
private String ruleDesc;
@com.aliyun.core.annotation.NameInMap("RuleId")
private String ruleId;
private Rules(Builder builder) {
this.optional = builder.optional;
this.paramList = builder.paramList;
this.ruleDesc = builder.ruleDesc;
this.ruleId = builder.ruleId;
}
public static Builder builder() {
return new Builder();
}
public static Rules create() {
return builder().build();
}
/**
* @return optional
*/
public Integer getOptional() {
return this.optional;
}
/**
* @return paramList
*/
public java.util.List<ParamList> getParamList() {
return this.paramList;
}
/**
* @return ruleDesc
*/
public String getRuleDesc() {
return this.ruleDesc;
}
/**
* @return ruleId
*/
public String getRuleId() {
return this.ruleId;
}
public static final class Builder {
private Integer optional;
private java.util.List<ParamList> paramList;
private String ruleDesc;
private String ruleId;
private Builder() {
}
private Builder(Rules model) {
this.optional = model.optional;
this.paramList = model.paramList;
this.ruleDesc = model.ruleDesc;
this.ruleId = model.ruleId;
}
/**
* <p>Indicates whether the baseline can be edited. Valid values:</p>
* <ul>
* <li><strong>0</strong>: no</li>
* <li><strong>1</strong>: yes</li>
* </ul>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder optional(Integer optional) {
this.optional = optional;
return this;
}
/**
* <p>An array that consists of the parameters in the rule for the baseline.</p>
*/
public Builder paramList(java.util.List<ParamList> paramList) {
this.paramList = paramList;
return this;
}
/**
* <p>The description of the rule for the baseline.</p>
*
* <strong>example:</strong>
* <p>Please customize the password expiration time detection standard as</p>
*/
public Builder ruleDesc(String ruleDesc) {
this.ruleDesc = ruleDesc;
return this;
}
/**
* <p>The ID of the rule for the baseline.</p>
*
* <strong>example:</strong>
* <p>audit.audit_policy.auditpolicychange.cus</p>
*/
public Builder ruleId(String ruleId) {
this.ruleId = ruleId;
return this;
}
public Rules build() {
return new Rules(this);
}
}
}
/**
*
* {@link DescribeRiskTypeResponseBody} extends {@link TeaModel}
*
* <p>DescribeRiskTypeResponseBody</p>
*/
public static class CheckDetails extends TeaModel {
@com.aliyun.core.annotation.NameInMap("CheckDesc")
private String checkDesc;
@com.aliyun.core.annotation.NameInMap("CheckId")
private Long checkId;
@com.aliyun.core.annotation.NameInMap("CheckItem")
private String checkItem;
@com.aliyun.core.annotation.NameInMap("Rules")
private java.util.List<Rules> rules;
private CheckDetails(Builder builder) {
this.checkDesc = builder.checkDesc;
this.checkId = builder.checkId;
this.checkItem = builder.checkItem;
this.rules = builder.rules;
}
public static Builder builder() {
return new Builder();
}
public static CheckDetails create() {
return builder().build();
}
/**
* @return checkDesc
*/
public String getCheckDesc() {
return this.checkDesc;
}
/**
* @return checkId
*/
public Long getCheckId() {
return this.checkId;
}
/**
* @return checkItem
*/
public String getCheckItem() {
return this.checkItem;
}
/**
* @return rules
*/
public java.util.List<Rules> getRules() {
return this.rules;
}
public static final class Builder {
private String checkDesc;
private Long checkId;
private String checkItem;
private java.util.List<Rules> rules;
private Builder() {
}
private Builder(CheckDetails model) {
this.checkDesc = model.checkDesc;
this.checkId = model.checkId;
this.checkItem = model.checkItem;
this.rules = model.rules;
}
/**
* <p>The description of the baseline.</p>
*
* <strong>example:</strong>
* <p>Set password expiration time, force regular modification of password, reduce password leakage and guess risk.Use non-password login (e.g. key pair) please ignore this item.</p>
*/
public Builder checkDesc(String checkDesc) {
this.checkDesc = checkDesc;
return this;
}
/**
* <p>The ID of the baseline.</p>
*
* <strong>example:</strong>
* <p>1299</p>
*/
public Builder checkId(Long checkId) {
this.checkId = checkId;
return this;
}
/**
* <p>The baseline.</p>
*
* <strong>example:</strong>
* <p>Ensure password expiration period is set.</p>
*/
public Builder checkItem(String checkItem) {
this.checkItem = checkItem;
return this;
}
/**
* <p>An array that consists of the rule details about the baseline.</p>
*/
public Builder rules(java.util.List<Rules> rules) {
this.rules = rules;
return this;
}
public CheckDetails build() {
return new CheckDetails(this);
}
}
}
/**
*
* {@link DescribeRiskTypeResponseBody} extends {@link TeaModel}
*
* <p>DescribeRiskTypeResponseBody</p>
*/
public static class SubTypes extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Alias")
private String alias;
@com.aliyun.core.annotation.NameInMap("AuthFlag")
private Boolean authFlag;
@com.aliyun.core.annotation.NameInMap("CheckDetails")
private java.util.List<CheckDetails> checkDetails;
@com.aliyun.core.annotation.NameInMap("SupportedOs")
private String supportedOs;
@com.aliyun.core.annotation.NameInMap("TypeName")
private String typeName;
private SubTypes(Builder builder) {
this.alias = builder.alias;
this.authFlag = builder.authFlag;
this.checkDetails = builder.checkDetails;
this.supportedOs = builder.supportedOs;
this.typeName = builder.typeName;
}
public static Builder builder() {
return new Builder();
}
public static SubTypes create() {
return builder().build();
}
/**
* @return alias
*/
public String getAlias() {
return this.alias;
}
/**
* @return authFlag
*/
public Boolean getAuthFlag() {
return this.authFlag;
}
/**
* @return checkDetails
*/
public java.util.List<CheckDetails> getCheckDetails() {
return this.checkDetails;
}
/**
* @return supportedOs
*/
public String getSupportedOs() {
return this.supportedOs;
}
/**
* @return typeName
*/
public String getTypeName() {
return this.typeName;
}
public static final class Builder {
private String alias;
private Boolean authFlag;
private java.util.List<CheckDetails> checkDetails;
private String supportedOs;
private String typeName;
private Builder() {
}
private Builder(SubTypes model) {
this.alias = model.alias;
this.authFlag = model.authFlag;
this.checkDetails = model.checkDetails;
this.supportedOs = model.supportedOs;
this.typeName = model.typeName;
}
/**
* <p>The alias of the baseline subtype.</p>
*
* <strong>example:</strong>
* <p>Redis unauthorized access high exploit vulnerability risk</p>
*/
public Builder alias(String alias) {
this.alias = alias;
return this;
}
/**
* <p>The baseline subtype permission flag of the current user version. Valid values:</p>
* <ul>
* <li><strong>true</strong>: Have access</li>
* <li><strong>false</strong>: No permissions</li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder authFlag(Boolean authFlag) {
this.authFlag = authFlag;
return this;
}
/**
* <p>An array that consists of the check details about the baseline subtype.</p>
*/
public Builder checkDetails(java.util.List<CheckDetails> checkDetails) {
this.checkDetails = checkDetails;
return this;
}
/**
* <p>The operating system type of the server. Valid values:</p>
* <ul>
* <li><strong>windows</strong></li>
* <li><strong>linux</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>linux</p>
*/
public Builder supportedOs(String supportedOs) {
this.supportedOs = supportedOs;
return this;
}
/**
* <p>The name of the baseline subtype.</p>
*
* <strong>example:</strong>
* <p>hc_exploit_redis</p>
*/
public Builder typeName(String typeName) {
this.typeName = typeName;
return this;
}
public SubTypes build() {
return new SubTypes(this);
}
}
}
/**
*
* {@link DescribeRiskTypeResponseBody} extends {@link TeaModel}
*
* <p>DescribeRiskTypeResponseBody</p>
*/
public static class RiskTypes extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Alias")
private String alias;
@com.aliyun.core.annotation.NameInMap("AuthFlag")
private Boolean authFlag;
@com.aliyun.core.annotation.NameInMap("SubTypes")
private java.util.List<SubTypes> subTypes;
@com.aliyun.core.annotation.NameInMap("TypeName")
private String typeName;
private RiskTypes(Builder builder) {
this.alias = builder.alias;
this.authFlag = builder.authFlag;
this.subTypes = builder.subTypes;
this.typeName = builder.typeName;
}
public static Builder builder() {
return new Builder();
}
public static RiskTypes create() {
return builder().build();
}
/**
* @return alias
*/
public String getAlias() {
return this.alias;
}
/**
* @return authFlag
*/
public Boolean getAuthFlag() {
return this.authFlag;
}
/**
* @return subTypes
*/
public java.util.List<SubTypes> getSubTypes() {
return this.subTypes;
}
/**
* @return typeName
*/
public String getTypeName() {
return this.typeName;
}
public static final class Builder {
private String alias;
private Boolean authFlag;
private java.util.List<SubTypes> subTypes;
private String typeName;
private Builder() {
}
private Builder(RiskTypes model) {
this.alias = model.alias;
this.authFlag = model.authFlag;
this.subTypes = model.subTypes;
this.typeName = model.typeName;
}
/**
* <p>The alias of the baseline type.</p>
*
* <strong>example:</strong>
* <p>Redis unauthorized access high exploit vulnerability risk</p>
*/
public Builder alias(String alias) {
this.alias = alias;
return this;
}
/**
* <p>The baseline type flag of the current user version. Valid values:</p>
* <ul>
* <li><strong>true</strong>: Have access</li>
* <li><strong>false</strong>: No permissions</li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder authFlag(Boolean authFlag) {
this.authFlag = authFlag;
return this;
}
/**
* <p>An array that consists of the information about baseline subtypes.</p>
*/
public Builder subTypes(java.util.List<SubTypes> subTypes) {
this.subTypes = subTypes;
return this;
}
/**
* <p>The name of the baseline type.</p>
*
* <strong>example:</strong>
* <p>hc_exploit</p>
*/
public Builder typeName(String typeName) {
this.typeName = typeName;
return this;
}
public RiskTypes build() {
return new RiskTypes(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeRisksRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeRisksRequest} extends {@link RequestModel}
*
* <p>DescribeRisksRequest</p>
*/
public class DescribeRisksRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Lang")
private String lang;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Limit")
private Integer limit;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceDirectoryAccountId")
private Long resourceDirectoryAccountId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RiskId")
private Long riskId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RiskName")
private String riskName;
private DescribeRisksRequest(Builder builder) {
super(builder);
this.lang = builder.lang;
this.limit = builder.limit;
this.resourceDirectoryAccountId = builder.resourceDirectoryAccountId;
this.riskId = builder.riskId;
this.riskName = builder.riskName;
}
public static Builder builder() {
return new Builder();
}
public static DescribeRisksRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return lang
*/
public String getLang() {
return this.lang;
}
/**
* @return limit
*/
public Integer getLimit() {
return this.limit;
}
/**
* @return resourceDirectoryAccountId
*/
public Long getResourceDirectoryAccountId() {
return this.resourceDirectoryAccountId;
}
/**
* @return riskId
*/
public Long getRiskId() {
return this.riskId;
}
/**
* @return riskName
*/
public String getRiskName() {
return this.riskName;
}
public static final class Builder extends Request.Builder<DescribeRisksRequest, Builder> {
private String lang;
private Integer limit;
private Long resourceDirectoryAccountId;
private Long riskId;
private String riskName;
private Builder() {
super();
}
private Builder(DescribeRisksRequest request) {
super(request);
this.lang = request.lang;
this.limit = request.limit;
this.resourceDirectoryAccountId = request.resourceDirectoryAccountId;
this.riskId = request.riskId;
this.riskName = request.riskName;
}
/**
* <p>The language of the content within the request and response. Valid values:</p>
* <ul>
* <li><strong>zh</strong>: Chinese</li>
* <li><strong>en</strong>: English</li>
* </ul>
*
* <strong>example:</strong>
* <p>zh</p>
*/
public Builder lang(String lang) {
this.putQueryParameter("Lang", lang);
this.lang = lang;
return this;
}
/**
* <p>The maximum number of entries to return. Default value: 20.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder limit(Integer limit) {
this.putQueryParameter("Limit", limit);
this.limit = limit;
return this;
}
/**
* <p>The Alibaba Cloud account ID of the member in the resource directory.</p>
* <blockquote>
* <p> You can call the <a href="~~DescribeMonitorAccounts~~">DescribeMonitorAccounts</a> operation to obtain the IDs.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>127608589417****</p>
*/
public Builder resourceDirectoryAccountId(Long resourceDirectoryAccountId) {
this.putQueryParameter("ResourceDirectoryAccountId", resourceDirectoryAccountId);
this.resourceDirectoryAccountId = resourceDirectoryAccountId;
return this;
}
/**
* <p>The baseline ID.</p>
* <blockquote>
* <p> You can call the <a href="~~DescribeCheckWarningSummary~~">DescribeCheckWarningSummary</a> operation to query the baseline IDs.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>75</p>
*/
public Builder riskId(Long riskId) {
this.putQueryParameter("RiskId", riskId);
this.riskId = riskId;
return this;
}
/**
* <p>The name of the baseline.</p>
*
* <strong>example:</strong>
* <p>docker</p>
*/
public Builder riskName(String riskName) {
this.putQueryParameter("RiskName", riskName);
this.riskName = riskName;
return this;
}
@Override
public DescribeRisksRequest build() {
return new DescribeRisksRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeRisksResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeRisksResponse} extends {@link TeaModel}
*
* <p>DescribeRisksResponse</p>
*/
public class DescribeRisksResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private DescribeRisksResponseBody body;
private DescribeRisksResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeRisksResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public DescribeRisksResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeRisksResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeRisksResponseBody body);
@Override
DescribeRisksResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeRisksResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeRisksResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeRisksResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(DescribeRisksResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeRisksResponse build() {
return new DescribeRisksResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeRisksResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeRisksResponseBody} extends {@link TeaModel}
*
* <p>DescribeRisksResponseBody</p>
*/
public class DescribeRisksResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("Risks")
private java.util.List<Risks> risks;
@com.aliyun.core.annotation.NameInMap("TotalCount")
private Integer totalCount;
private DescribeRisksResponseBody(Builder builder) {
this.requestId = builder.requestId;
this.risks = builder.risks;
this.totalCount = builder.totalCount;
}
public static Builder builder() {
return new Builder();
}
public static DescribeRisksResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return risks
*/
public java.util.List<Risks> getRisks() {
return this.risks;
}
/**
* @return totalCount
*/
public Integer getTotalCount() {
return this.totalCount;
}
public static final class Builder {
private String requestId;
private java.util.List<Risks> risks;
private Integer totalCount;
private Builder() {
}
private Builder(DescribeRisksResponseBody model) {
this.requestId = model.requestId;
this.risks = model.risks;
this.totalCount = model.totalCount;
}
/**
* <p>The ID of the request, which is used to locate and troubleshoot issues.</p>
*
* <strong>example:</strong>
* <p>EA54FE21-B006-5DFF-8D64-C4FFECDA****</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The baselines.</p>
*/
public Builder risks(java.util.List<Risks> risks) {
this.risks = risks;
return this;
}
/**
* <p>The total number of entries returned.</p>
*
* <strong>example:</strong>
* <p>23</p>
*/
public Builder totalCount(Integer totalCount) {
this.totalCount = totalCount;
return this;
}
public DescribeRisksResponseBody build() {
return new DescribeRisksResponseBody(this);
}
}
/**
*
* {@link DescribeRisksResponseBody} extends {@link TeaModel}
*
* <p>DescribeRisksResponseBody</p>
*/
public static class Risks extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RiskDetail")
private String riskDetail;
@com.aliyun.core.annotation.NameInMap("RiskId")
private Long riskId;
@com.aliyun.core.annotation.NameInMap("RiskName")
private String riskName;
@com.aliyun.core.annotation.NameInMap("RiskType")
private String riskType;
@com.aliyun.core.annotation.NameInMap("SubRiskType")
private String subRiskType;
@com.aliyun.core.annotation.NameInMap("SubTypeAlias")
private String subTypeAlias;
@com.aliyun.core.annotation.NameInMap("TypeAlias")
private String typeAlias;
private Risks(Builder builder) {
this.riskDetail = builder.riskDetail;
this.riskId = builder.riskId;
this.riskName = builder.riskName;
this.riskType = builder.riskType;
this.subRiskType = builder.subRiskType;
this.subTypeAlias = builder.subTypeAlias;
this.typeAlias = builder.typeAlias;
}
public static Builder builder() {
return new Builder();
}
public static Risks create() {
return builder().build();
}
/**
* @return riskDetail
*/
public String getRiskDetail() {
return this.riskDetail;
}
/**
* @return riskId
*/
public Long getRiskId() {
return this.riskId;
}
/**
* @return riskName
*/
public String getRiskName() {
return this.riskName;
}
/**
* @return riskType
*/
public String getRiskType() {
return this.riskType;
}
/**
* @return subRiskType
*/
public String getSubRiskType() {
return this.subRiskType;
}
/**
* @return subTypeAlias
*/
public String getSubTypeAlias() {
return this.subTypeAlias;
}
/**
* @return typeAlias
*/
public String getTypeAlias() {
return this.typeAlias;
}
public static final class Builder {
private String riskDetail;
private Long riskId;
private String riskName;
private String riskType;
private String subRiskType;
private String subTypeAlias;
private String typeAlias;
private Builder() {
}
private Builder(Risks model) {
this.riskDetail = model.riskDetail;
this.riskId = model.riskId;
this.riskName = model.riskName;
this.riskType = model.riskType;
this.subRiskType = model.subRiskType;
this.subTypeAlias = model.subTypeAlias;
this.typeAlias = model.typeAlias;
}
/**
* <p>The description of the baseline.</p>
*
* <strong>example:</strong>
* <p>Ubuntu 14,Ubuntu 16 ,Ubuntu 18,Ubuntu 20 baseline based on Alibaba Cloud best security practices</p>
*/
public Builder riskDetail(String riskDetail) {
this.riskDetail = riskDetail;
return this;
}
/**
* <p>The baseline ID.</p>
*
* <strong>example:</strong>
* <p>54</p>
*/
public Builder riskId(Long riskId) {
this.riskId = riskId;
return this;
}
/**
* <p>The name of the baseline.</p>
*
* <strong>example:</strong>
* <p>Alibaba Cloud Standard - Ubuntu Security Baseline</p>
*/
public Builder riskName(String riskName) {
this.riskName = riskName;
return this;
}
/**
* <p>The name of the baseline type.</p>
*
* <strong>example:</strong>
* <p>cis</p>
*/
public Builder riskType(String riskType) {
this.riskType = riskType;
return this;
}
/**
* <p>The name of the baseline subtype.</p>
*
* <strong>example:</strong>
* <p>hc_ubuntu</p>
*/
public Builder subRiskType(String subRiskType) {
this.subRiskType = subRiskType;
return this;
}
/**
* <p>The display name of the baseline subtype.</p>
*
* <strong>example:</strong>
* <p>Alibaba Cloud Standard - Ubuntu Security Baseline</p>
*/
public Builder subTypeAlias(String subTypeAlias) {
this.subTypeAlias = subTypeAlias;
return this;
}
/**
* <p>The display name of the baseline type.</p>
*
* <strong>example:</strong>
* <p>Best security practices</p>
*/
public Builder typeAlias(String typeAlias) {
this.typeAlias = typeAlias;
return this;
}
public Risks build() {
return new Risks(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeSasPmAgentListRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeSasPmAgentListRequest} extends {@link RequestModel}
*
* <p>DescribeSasPmAgentListRequest</p>
*/
public class DescribeSasPmAgentListRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Lang")
private String lang;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Uuids")
@com.aliyun.core.annotation.Validation(required = true)
private String uuids;
private DescribeSasPmAgentListRequest(Builder builder) {
super(builder);
this.lang = builder.lang;
this.uuids = builder.uuids;
}
public static Builder builder() {
return new Builder();
}
public static DescribeSasPmAgentListRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return lang
*/
public String getLang() {
return this.lang;
}
/**
* @return uuids
*/
public String getUuids() {
return this.uuids;
}
public static final class Builder extends Request.Builder<DescribeSasPmAgentListRequest, Builder> {
private String lang;
private String uuids;
private Builder() {
super();
}
private Builder(DescribeSasPmAgentListRequest request) {
super(request);
this.lang = request.lang;
this.uuids = request.uuids;
}
/**
* <p>The language of the content within the request and response. Default value: <strong>zh</strong>. Valid values:</p>
* <ul>
* <li><strong>zh</strong>: Chinese</li>
* <li><strong>en</strong>: English</li>
* </ul>
*
* <strong>example:</strong>
* <p>en</p>
*/
public Builder lang(String lang) {
this.putQueryParameter("Lang", lang);
this.lang = lang;
return this;
}
/**
* <p>The UUID of the server. Separate multiple UUIDs with commas (,).</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>inet-cb7ae5ee-b2bc-4581-b616-62495f5d****,inet-37cf0e4f-55cc-4b84-8073-b348b4b4****</p>
*/
public Builder uuids(String uuids) {
this.putQueryParameter("Uuids", uuids);
this.uuids = uuids;
return this;
}
@Override
public DescribeSasPmAgentListRequest build() {
return new DescribeSasPmAgentListRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeSasPmAgentListResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeSasPmAgentListResponse} extends {@link TeaModel}
*
* <p>DescribeSasPmAgentListResponse</p>
*/
public class DescribeSasPmAgentListResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private DescribeSasPmAgentListResponseBody body;
private DescribeSasPmAgentListResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeSasPmAgentListResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public DescribeSasPmAgentListResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeSasPmAgentListResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeSasPmAgentListResponseBody body);
@Override
DescribeSasPmAgentListResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeSasPmAgentListResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeSasPmAgentListResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeSasPmAgentListResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(DescribeSasPmAgentListResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeSasPmAgentListResponse build() {
return new DescribeSasPmAgentListResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeSasPmAgentListResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeSasPmAgentListResponseBody} extends {@link TeaModel}
*
* <p>DescribeSasPmAgentListResponseBody</p>
*/
public class DescribeSasPmAgentListResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("SasPmAgentList")
private java.util.List<SasPmAgentList> sasPmAgentList;
private DescribeSasPmAgentListResponseBody(Builder builder) {
this.requestId = builder.requestId;
this.sasPmAgentList = builder.sasPmAgentList;
}
public static Builder builder() {
return new Builder();
}
public static DescribeSasPmAgentListResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return sasPmAgentList
*/
public java.util.List<SasPmAgentList> getSasPmAgentList() {
return this.sasPmAgentList;
}
public static final class Builder {
private String requestId;
private java.util.List<SasPmAgentList> sasPmAgentList;
private Builder() {
}
private Builder(DescribeSasPmAgentListResponseBody model) {
this.requestId = model.requestId;
this.sasPmAgentList = model.sasPmAgentList;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>8EF3ACC2-9400-5B64-B72D-4A1D35113750</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>An array that consists of the information about servers.</p>
*/
public Builder sasPmAgentList(java.util.List<SasPmAgentList> sasPmAgentList) {
this.sasPmAgentList = sasPmAgentList;
return this;
}
public DescribeSasPmAgentListResponseBody build() {
return new DescribeSasPmAgentListResponseBody(this);
}
}
/**
*
* {@link DescribeSasPmAgentListResponseBody} extends {@link TeaModel}
*
* <p>DescribeSasPmAgentListResponseBody</p>
*/
public static class SasPmAgentList extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AliyunAssistId")
private String aliyunAssistId;
@com.aliyun.core.annotation.NameInMap("AliyunMonitorId")
private String aliyunMonitorId;
@com.aliyun.core.annotation.NameInMap("AssistInstallResult")
private Integer assistInstallResult;
@com.aliyun.core.annotation.NameInMap("AssistInstallStatus")
private Integer assistInstallStatus;
@com.aliyun.core.annotation.NameInMap("MonitorInstallResult")
private Integer monitorInstallResult;
@com.aliyun.core.annotation.NameInMap("MonitorInstallStatus")
private Integer monitorInstallStatus;
@com.aliyun.core.annotation.NameInMap("Uuid")
private String uuid;
private SasPmAgentList(Builder builder) {
this.aliyunAssistId = builder.aliyunAssistId;
this.aliyunMonitorId = builder.aliyunMonitorId;
this.assistInstallResult = builder.assistInstallResult;
this.assistInstallStatus = builder.assistInstallStatus;
this.monitorInstallResult = builder.monitorInstallResult;
this.monitorInstallStatus = builder.monitorInstallStatus;
this.uuid = builder.uuid;
}
public static Builder builder() {
return new Builder();
}
public static SasPmAgentList create() {
return builder().build();
}
/**
* @return aliyunAssistId
*/
public String getAliyunAssistId() {
return this.aliyunAssistId;
}
/**
* @return aliyunMonitorId
*/
public String getAliyunMonitorId() {
return this.aliyunMonitorId;
}
/**
* @return assistInstallResult
*/
public Integer getAssistInstallResult() {
return this.assistInstallResult;
}
/**
* @return assistInstallStatus
*/
public Integer getAssistInstallStatus() {
return this.assistInstallStatus;
}
/**
* @return monitorInstallResult
*/
public Integer getMonitorInstallResult() {
return this.monitorInstallResult;
}
/**
* @return monitorInstallStatus
*/
public Integer getMonitorInstallStatus() {
return this.monitorInstallStatus;
}
/**
* @return uuid
*/
public String getUuid() {
return this.uuid;
}
public static final class Builder {
private String aliyunAssistId;
private String aliyunMonitorId;
private Integer assistInstallResult;
private Integer assistInstallStatus;
private Integer monitorInstallResult;
private Integer monitorInstallStatus;
private String uuid;
private Builder() {
}
private Builder(SasPmAgentList model) {
this.aliyunAssistId = model.aliyunAssistId;
this.aliyunMonitorId = model.aliyunMonitorId;
this.assistInstallResult = model.assistInstallResult;
this.assistInstallStatus = model.assistInstallStatus;
this.monitorInstallResult = model.monitorInstallResult;
this.monitorInstallStatus = model.monitorInstallStatus;
this.uuid = model.uuid;
}
/**
* <p>The ID of Cloud Assistant.</p>
*
* <strong>example:</strong>
* <p>mi-hz034jn***yxhc0</p>
*/
public Builder aliyunAssistId(String aliyunAssistId) {
this.aliyunAssistId = aliyunAssistId;
return this;
}
/**
* <p>The ID of the CloudMonitor agent.</p>
*
* <strong>example:</strong>
* <p>5d5ef6be-54ff-11ed-82cf-8f01475e****</p>
*/
public Builder aliyunMonitorId(String aliyunMonitorId) {
this.aliyunMonitorId = aliyunMonitorId;
return this;
}
/**
* <p>The installation result of Cloud Assistant. Valid values:</p>
* <ul>
* <li><strong>0</strong>: SUCCESS</li>
* <li><strong>1</strong>: MISSING_PARAM</li>
* <li><strong>2</strong>: UNKNOWN_SYSTEM</li>
* <li><strong>3</strong>: DOWNLOAD_FAILED</li>
* <li><strong>4</strong>: INSTALL_FAILED</li>
* </ul>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder assistInstallResult(Integer assistInstallResult) {
this.assistInstallResult = assistInstallResult;
return this;
}
/**
* <p>The status of Cloud Assistant. Valid values:</p>
* <ul>
* <li><strong>0</strong>: installing</li>
* <li><strong>1</strong>: installed</li>
* <li><strong>2</strong>: installation failed</li>
* <li><strong>3</strong>: installation timed out</li>
* </ul>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder assistInstallStatus(Integer assistInstallStatus) {
this.assistInstallStatus = assistInstallStatus;
return this;
}
/**
* <p>The installation result of the CloudMonitor agent. Valid values:</p>
* <ul>
* <li><strong>0</strong>: failed</li>
* <li><strong>1</strong>: successful</li>
* </ul>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder monitorInstallResult(Integer monitorInstallResult) {
this.monitorInstallResult = monitorInstallResult;
return this;
}
/**
* <p>The status of the CloudMonitor agent. Valid values:</p>
* <ul>
* <li><strong>0</strong>: installation failed</li>
* <li><strong>1</strong>: installed</li>
* </ul>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder monitorInstallStatus(Integer monitorInstallStatus) {
this.monitorInstallStatus = monitorInstallStatus;
return this;
}
/**
* <p>The UUID of the server.</p>
*
* <strong>example:</strong>
* <p>87f1724d-075e-48d3-95fd-78c2dd36****</p>
*/
public Builder uuid(String uuid) {
this.uuid = uuid;
return this;
}
public SasPmAgentList build() {
return new SasPmAgentList(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeScanTaskProgressRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeScanTaskProgressRequest} extends {@link RequestModel}
*
* <p>DescribeScanTaskProgressRequest</p>
*/
public class DescribeScanTaskProgressRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("TaskId")
@com.aliyun.core.annotation.Validation(required = true)
private Long taskId;
private DescribeScanTaskProgressRequest(Builder builder) {
super(builder);
this.taskId = builder.taskId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeScanTaskProgressRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return taskId
*/
public Long getTaskId() {
return this.taskId;
}
public static final class Builder extends Request.Builder<DescribeScanTaskProgressRequest, Builder> {
private Long taskId;
private Builder() {
super();
}
private Builder(DescribeScanTaskProgressRequest request) {
super(request);
this.taskId = request.taskId;
}
/**
* <p>The ID of the virus scan task.</p>
* <blockquote>
* <p> You can call the <a href="~~StartVirusScanTask~~">StartVirusScanTask</a> operation to query the IDs of virus scan tasks.</p>
* </blockquote>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>282832</p>
*/
public Builder taskId(Long taskId) {
this.putQueryParameter("TaskId", taskId);
this.taskId = taskId;
return this;
}
@Override
public DescribeScanTaskProgressRequest build() {
return new DescribeScanTaskProgressRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeScanTaskProgressResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeScanTaskProgressResponse} extends {@link TeaModel}
*
* <p>DescribeScanTaskProgressResponse</p>
*/
public class DescribeScanTaskProgressResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private DescribeScanTaskProgressResponseBody body;
private DescribeScanTaskProgressResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeScanTaskProgressResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public DescribeScanTaskProgressResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeScanTaskProgressResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeScanTaskProgressResponseBody body);
@Override
DescribeScanTaskProgressResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeScanTaskProgressResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeScanTaskProgressResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeScanTaskProgressResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(DescribeScanTaskProgressResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeScanTaskProgressResponse build() {
return new DescribeScanTaskProgressResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeScanTaskProgressResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeScanTaskProgressResponseBody} extends {@link TeaModel}
*
* <p>DescribeScanTaskProgressResponseBody</p>
*/
public class DescribeScanTaskProgressResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("ScanTaskProgress")
private String scanTaskProgress;
@com.aliyun.core.annotation.NameInMap("TargetInfo")
private String targetInfo;
private DescribeScanTaskProgressResponseBody(Builder builder) {
this.requestId = builder.requestId;
this.scanTaskProgress = builder.scanTaskProgress;
this.targetInfo = builder.targetInfo;
}
public static Builder builder() {
return new Builder();
}
public static DescribeScanTaskProgressResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return scanTaskProgress
*/
public String getScanTaskProgress() {
return this.scanTaskProgress;
}
/**
* @return targetInfo
*/
public String getTargetInfo() {
return this.targetInfo;
}
public static final class Builder {
private String requestId;
private String scanTaskProgress;
private String targetInfo;
private Builder() {
}
private Builder(DescribeScanTaskProgressResponseBody model) {
this.requestId = model.requestId;
this.scanTaskProgress = model.scanTaskProgress;
this.targetInfo = model.targetInfo;
}
/**
* <p>The ID of the request, which is used to locate and troubleshoot issues.</p>
*
* <strong>example:</strong>
* <p>EA15BA8A-D631-4375-8D40-CB7C769B0279</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The progress of the virus scan task. Valid values:</p>
* <ul>
* <li><strong>init</strong>: The task is being initialized.</li>
* <li><strong>Processing</strong>: The task is running.</li>
* <li><strong>Success</strong>: The task is complete.</li>
* <li><strong>Failed</strong>: The task fails.</li>
* </ul>
*
* <strong>example:</strong>
* <p>Success</p>
*/
public Builder scanTaskProgress(String scanTaskProgress) {
this.scanTaskProgress = scanTaskProgress;
return this;
}
/**
* <p>The information about the asset on which the virus scan task runs. The value is a string that consists of JSON arrays. Each element in a JSON array is a JSON struct that contains the following fields:</p>
* <ul>
* <li><p><strong>type</strong>: the type of the asset on which you want to perform a virus scan task. Valid values:</p>
* <ul>
* <li><strong>groupId</strong>: server group.</li>
* <li><strong>uuid</strong>: server.</li>
* </ul>
* </li>
* <li><p><strong>name</strong>: the name of the server group or server.</p>
* </li>
* <li><p><strong>target</strong>: the asset on which the virus scan task runs. The value of this field varies based on the value of the type field.</p>
* <ul>
* <li>If the <strong>type</strong> field is set to <strong>groupId</strong>, the value of this field is the ID of the server group.</li>
* <li>If the <strong>type</strong> field is set to <strong>uuid</strong>, the value of this field is the universally unique identifier (UUID) of the server.</li>
* </ul>
* </li>
* </ul>
*
* <strong>example:</strong>
* <p>[{"type":"uuid","name":"host001","target":"503201a7-14c6-4280-801b-1169ed42****"}]</p>
*/
public Builder targetInfo(String targetInfo) {
this.targetInfo = targetInfo;
return this;
}
public DescribeScanTaskProgressResponseBody build() {
return new DescribeScanTaskProgressResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeScanTaskStatisticsRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeScanTaskStatisticsRequest} extends {@link RequestModel}
*
* <p>DescribeScanTaskStatisticsRequest</p>
*/
public class DescribeScanTaskStatisticsRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Levels")
private String levels;
private DescribeScanTaskStatisticsRequest(Builder builder) {
super(builder);
this.levels = builder.levels;
}
public static Builder builder() {
return new Builder();
}
public static DescribeScanTaskStatisticsRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return levels
*/
public String getLevels() {
return this.levels;
}
public static final class Builder extends Request.Builder<DescribeScanTaskStatisticsRequest, Builder> {
private String levels;
private Builder() {
super();
}
private Builder(DescribeScanTaskStatisticsRequest request) {
super(request);
this.levels = request.levels;
}
/**
* <p>The severities of the alert events handled by the virus detection task. Separate multiple severities with commas (,). The severities decrease in descending order. Valid values:</p>
* <ul>
* <li><strong>serious</strong></li>
* <li><strong>suspicious</strong></li>
* <li><strong>remind</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>serious,suspicious,remind</p>
*/
public Builder levels(String levels) {
this.putQueryParameter("Levels", levels);
this.levels = levels;
return this;
}
@Override
public DescribeScanTaskStatisticsRequest build() {
return new DescribeScanTaskStatisticsRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeScanTaskStatisticsResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeScanTaskStatisticsResponse} extends {@link TeaModel}
*
* <p>DescribeScanTaskStatisticsResponse</p>
*/
public class DescribeScanTaskStatisticsResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private DescribeScanTaskStatisticsResponseBody body;
private DescribeScanTaskStatisticsResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeScanTaskStatisticsResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public DescribeScanTaskStatisticsResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeScanTaskStatisticsResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeScanTaskStatisticsResponseBody body);
@Override
DescribeScanTaskStatisticsResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeScanTaskStatisticsResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeScanTaskStatisticsResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeScanTaskStatisticsResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(DescribeScanTaskStatisticsResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeScanTaskStatisticsResponse build() {
return new DescribeScanTaskStatisticsResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeScanTaskStatisticsResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeScanTaskStatisticsResponseBody} extends {@link TeaModel}
*
* <p>DescribeScanTaskStatisticsResponseBody</p>
*/
public class DescribeScanTaskStatisticsResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("DealedRiskNum")
private Integer dealedRiskNum;
@com.aliyun.core.annotation.NameInMap("PersonalTaskNum")
private Long personalTaskNum;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("TotalTaskNum")
private Long totalTaskNum;
@com.aliyun.core.annotation.NameInMap("UserNum")
private Long userNum;
private DescribeScanTaskStatisticsResponseBody(Builder builder) {
this.dealedRiskNum = builder.dealedRiskNum;
this.personalTaskNum = builder.personalTaskNum;
this.requestId = builder.requestId;
this.totalTaskNum = builder.totalTaskNum;
this.userNum = builder.userNum;
}
public static Builder builder() {
return new Builder();
}
public static DescribeScanTaskStatisticsResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return dealedRiskNum
*/
public Integer getDealedRiskNum() {
return this.dealedRiskNum;
}
/**
* @return personalTaskNum
*/
public Long getPersonalTaskNum() {
return this.personalTaskNum;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return totalTaskNum
*/
public Long getTotalTaskNum() {
return this.totalTaskNum;
}
/**
* @return userNum
*/
public Long getUserNum() {
return this.userNum;
}
public static final class Builder {
private Integer dealedRiskNum;
private Long personalTaskNum;
private String requestId;
private Long totalTaskNum;
private Long userNum;
private Builder() {
}
private Builder(DescribeScanTaskStatisticsResponseBody model) {
this.dealedRiskNum = model.dealedRiskNum;
this.personalTaskNum = model.personalTaskNum;
this.requestId = model.requestId;
this.totalTaskNum = model.totalTaskNum;
this.userNum = model.userNum;
}
/**
* <p>The number of risks that are handled for the user.</p>
*
* <strong>example:</strong>
* <p>11</p>
*/
public Builder dealedRiskNum(Integer dealedRiskNum) {
this.dealedRiskNum = dealedRiskNum;
return this;
}
/**
* <p>The total number of tasks that are created for the user.</p>
*
* <strong>example:</strong>
* <p>11</p>
*/
public Builder personalTaskNum(Long personalTaskNum) {
this.personalTaskNum = personalTaskNum;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>765EDBDE-1686-5DBA-B76F-2E0XXXXXXX</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The total number of virus detection tasks.</p>
*
* <strong>example:</strong>
* <p>11</p>
*/
public Builder totalTaskNum(Long totalTaskNum) {
this.totalTaskNum = totalTaskNum;
return this;
}
/**
* <p>The number of risks that are detected for the user.</p>
*
* <strong>example:</strong>
* <p>11</p>
*/
public Builder userNum(Long userNum) {
this.userNum = userNum;
return this;
}
public DescribeScanTaskStatisticsResponseBody build() {
return new DescribeScanTaskStatisticsResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeScreenScoreThreadRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeScreenScoreThreadRequest} extends {@link RequestModel}
*
* <p>DescribeScreenScoreThreadRequest</p>
*/
public class DescribeScreenScoreThreadRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("EndTime")
@com.aliyun.core.annotation.Validation(required = true)
private Long endTime;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Source")
private Integer source;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("StartTime")
@com.aliyun.core.annotation.Validation(required = true)
private Long startTime;
private DescribeScreenScoreThreadRequest(Builder builder) {
super(builder);
this.endTime = builder.endTime;
this.source = builder.source;
this.startTime = builder.startTime;
}
public static Builder builder() {
return new Builder();
}
public static DescribeScreenScoreThreadRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return endTime
*/
public Long getEndTime() {
return this.endTime;
}
/**
* @return source
*/
public Integer getSource() {
return this.source;
}
/**
* @return startTime
*/
public Long getStartTime() {
return this.startTime;
}
public static final class Builder extends Request.Builder<DescribeScreenScoreThreadRequest, Builder> {
private Long endTime;
private Integer source;
private Long startTime;
private Builder() {
super();
}
private Builder(DescribeScreenScoreThreadRequest request) {
super(request);
this.endTime = request.endTime;
this.source = request.source;
this.startTime = request.startTime;
}
/**
* <p>The end of the time range to query. This value is a UNIX timestamp. Unit: milliseconds.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>1668064495000</p>
*/
public Builder endTime(Long endTime) {
this.putQueryParameter("EndTime", endTime);
this.endTime = endTime;
return this;
}
/**
* <p>Source of security score, default is Cloud Security Center if left empty. Enum values: </p>
* <ul>
* <li>0:Cloud Security Center. </li>
* <li>1:Yaochi Console.</li>
* </ul>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder source(Integer source) {
this.putQueryParameter("Source", source);
this.source = source;
return this;
}
/**
* <p>The beginning of the time range to query. This value is a UNIX timestamp. Unit: milliseconds.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>1651290987000</p>
*/
public Builder startTime(Long startTime) {
this.putQueryParameter("StartTime", startTime);
this.startTime = startTime;
return this;
}
@Override
public DescribeScreenScoreThreadRequest build() {
return new DescribeScreenScoreThreadRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeScreenScoreThreadResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeScreenScoreThreadResponse} extends {@link TeaModel}
*
* <p>DescribeScreenScoreThreadResponse</p>
*/
public class DescribeScreenScoreThreadResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private DescribeScreenScoreThreadResponseBody body;
private DescribeScreenScoreThreadResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeScreenScoreThreadResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public DescribeScreenScoreThreadResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeScreenScoreThreadResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeScreenScoreThreadResponseBody body);
@Override
DescribeScreenScoreThreadResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeScreenScoreThreadResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeScreenScoreThreadResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeScreenScoreThreadResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(DescribeScreenScoreThreadResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeScreenScoreThreadResponse build() {
return new DescribeScreenScoreThreadResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeScreenScoreThreadResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeScreenScoreThreadResponseBody} extends {@link TeaModel}
*
* <p>DescribeScreenScoreThreadResponseBody</p>
*/
public class DescribeScreenScoreThreadResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Data")
private Data data;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private DescribeScreenScoreThreadResponseBody(Builder builder) {
this.data = builder.data;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeScreenScoreThreadResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return data
*/
public Data getData() {
return this.data;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private Data data;
private String requestId;
private Builder() {
}
private Builder(DescribeScreenScoreThreadResponseBody model) {
this.data = model.data;
this.requestId = model.requestId;
}
/**
* <p>The returned data.</p>
*/
public Builder data(Data data) {
this.data = data;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>D03DD0FD-6041-5107-AC00-383E28F1****</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public DescribeScreenScoreThreadResponseBody build() {
return new DescribeScreenScoreThreadResponseBody(this);
}
}
/**
*
* {@link DescribeScreenScoreThreadResponseBody} extends {@link TeaModel}
*
* <p>DescribeScreenScoreThreadResponseBody</p>
*/
public static class Data extends TeaModel {
@com.aliyun.core.annotation.NameInMap("SocreThread")
private java.util.List<String> socreThread;
@com.aliyun.core.annotation.NameInMap("SocreThreadDate")
private java.util.List<String> socreThreadDate;
private Data(Builder builder) {
this.socreThread = builder.socreThread;
this.socreThreadDate = builder.socreThreadDate;
}
public static Builder builder() {
return new Builder();
}
public static Data create() {
return builder().build();
}
/**
* @return socreThread
*/
public java.util.List<String> getSocreThread() {
return this.socreThread;
}
/**
* @return socreThreadDate
*/
public java.util.List<String> getSocreThreadDate() {
return this.socreThreadDate;
}
public static final class Builder {
private java.util.List<String> socreThread;
private java.util.List<String> socreThreadDate;
private Builder() {
}
private Builder(Data model) {
this.socreThread = model.socreThread;
this.socreThreadDate = model.socreThreadDate;
}
/**
* <p>The trends of the scores on the security dashboard.</p>
*/
public Builder socreThread(java.util.List<String> socreThread) {
this.socreThread = socreThread;
return this;
}
/**
* <p>The dates of the scores on the security dashboard.</p>
*/
public Builder socreThreadDate(java.util.List<String> socreThreadDate) {
this.socreThreadDate = socreThreadDate;
return this;
}
public Data build() {
return new Data(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeSearchConditionRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeSearchConditionRequest} extends {@link RequestModel}
*
* <p>DescribeSearchConditionRequest</p>
*/
public class DescribeSearchConditionRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Lang")
private String lang;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SourceIp")
private String sourceIp;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Type")
private String type;
private DescribeSearchConditionRequest(Builder builder) {
super(builder);
this.lang = builder.lang;
this.sourceIp = builder.sourceIp;
this.type = builder.type;
}
public static Builder builder() {
return new Builder();
}
public static DescribeSearchConditionRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return lang
*/
public String getLang() {
return this.lang;
}
/**
* @return sourceIp
*/
public String getSourceIp() {
return this.sourceIp;
}
/**
* @return type
*/
public String getType() {
return this.type;
}
public static final class Builder extends Request.Builder<DescribeSearchConditionRequest, Builder> {
private String lang;
private String sourceIp;
private String type;
private Builder() {
super();
}
private Builder(DescribeSearchConditionRequest request) {
super(request);
this.lang = request.lang;
this.sourceIp = request.sourceIp;
this.type = request.type;
}
/**
* <p>The language of the content within the request and response. Default value: <strong>zh</strong>. Valid values:</p>
* <ul>
* <li><strong>zh</strong>: Chinese.</li>
* <li><strong>en</strong>: English.</li>
* </ul>
*
* <strong>example:</strong>
* <p>zh</p>
*/
public Builder lang(String lang) {
this.putQueryParameter("Lang", lang);
this.lang = lang;
return this;
}
/**
* <p>The source IP address of the request.</p>
*
* <strong>example:</strong>
* <p>117.220.XX.XX</p>
*/
public Builder sourceIp(String sourceIp) {
this.putQueryParameter("SourceIp", sourceIp);
this.sourceIp = sourceIp;
return this;
}
/**
* <p>The type of the asset. Valid values:</p>
* <ul>
* <li><strong>ecs</strong>: Elastic Compute Service (ECS) instances.</li>
* <li><strong>cloud_product</strong>: cloud services except ECS.</li>
* </ul>
*
* <strong>example:</strong>
* <p>ecs</p>
*/
public Builder type(String type) {
this.putQueryParameter("Type", type);
this.type = type;
return this;
}
@Override
public DescribeSearchConditionRequest build() {
return new DescribeSearchConditionRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeSearchConditionResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeSearchConditionResponse} extends {@link TeaModel}
*
* <p>DescribeSearchConditionResponse</p>
*/
public class DescribeSearchConditionResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private DescribeSearchConditionResponseBody body;
private DescribeSearchConditionResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeSearchConditionResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public DescribeSearchConditionResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeSearchConditionResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeSearchConditionResponseBody body);
@Override
DescribeSearchConditionResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeSearchConditionResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeSearchConditionResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeSearchConditionResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(DescribeSearchConditionResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeSearchConditionResponse build() {
return new DescribeSearchConditionResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeSearchConditionResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeSearchConditionResponseBody} extends {@link TeaModel}
*
* <p>DescribeSearchConditionResponseBody</p>
*/
public class DescribeSearchConditionResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ConditionList")
private java.util.List<ConditionList> conditionList;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private DescribeSearchConditionResponseBody(Builder builder) {
this.conditionList = builder.conditionList;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeSearchConditionResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return conditionList
*/
public java.util.List<ConditionList> getConditionList() {
return this.conditionList;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private java.util.List<ConditionList> conditionList;
private String requestId;
private Builder() {
}
private Builder(DescribeSearchConditionResponseBody model) {
this.conditionList = model.conditionList;
this.requestId = model.requestId;
}
/**
* <p>An array that consists of the filter conditions.</p>
*/
public Builder conditionList(java.util.List<ConditionList> conditionList) {
this.conditionList = conditionList;
return this;
}
/**
* <p>The ID of the request, which is used to locate and troubleshoot issues.</p>
*
* <strong>example:</strong>
* <p>3AEC47AF-8CFA-485E-AC9A-3A8ABC06EA7F</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public DescribeSearchConditionResponseBody build() {
return new DescribeSearchConditionResponseBody(this);
}
}
/**
*
* {@link DescribeSearchConditionResponseBody} extends {@link TeaModel}
*
* <p>DescribeSearchConditionResponseBody</p>
*/
public static class ConditionList extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ConditionType")
private String conditionType;
@com.aliyun.core.annotation.NameInMap("FilterConditions")
private String filterConditions;
@com.aliyun.core.annotation.NameInMap("Name")
private String name;
@com.aliyun.core.annotation.NameInMap("NameKey")
private String nameKey;
private ConditionList(Builder builder) {
this.conditionType = builder.conditionType;
this.filterConditions = builder.filterConditions;
this.name = builder.name;
this.nameKey = builder.nameKey;
}
public static Builder builder() {
return new Builder();
}
public static ConditionList create() {
return builder().build();
}
/**
* @return conditionType
*/
public String getConditionType() {
return this.conditionType;
}
/**
* @return filterConditions
*/
public String getFilterConditions() {
return this.filterConditions;
}
/**
* @return name
*/
public String getName() {
return this.name;
}
/**
* @return nameKey
*/
public String getNameKey() {
return this.nameKey;
}
public static final class Builder {
private String conditionType;
private String filterConditions;
private String name;
private String nameKey;
private Builder() {
}
private Builder(ConditionList model) {
this.conditionType = model.conditionType;
this.filterConditions = model.filterConditions;
this.name = model.name;
this.nameKey = model.nameKey;
}
/**
* <p>The type of the filter condition. Valid values:</p>
* <ul>
* <li><strong>system</strong>: default filter conditions.</li>
* <li><strong>user</strong>: custom filter conditions.</li>
* </ul>
*
* <strong>example:</strong>
* <p>system</p>
*/
public Builder conditionType(String conditionType) {
this.conditionType = conditionType;
return this;
}
/**
* <p>The filter condition. The value of this parameter is in the JSON format and contains the following fields:</p>
* <ul>
* <li><p><strong>filterParams</strong>: the parameters of the filter condition. The value of this field is in the JSON format and contains the following fields:</p>
* <ul>
* <li><p><strong>labelKey</strong>: the key for rendering.</p>
* </li>
* <li><p><strong>label</strong>: the display name.</p>
* </li>
* <li><p><strong>value</strong>: the value of the filter condition. The value of this field is in the JSON format and contains the following fields:</p>
* <ul>
* <li><strong>name</strong>: the name of the filter item.</li>
* <li><strong>value</strong>: the value of the filter item.</li>
* </ul>
* </li>
* </ul>
* </li>
* <li><p><strong>LogicalExp</strong>: the logical relationship among the filter conditions. Valid values:</p>
* <ul>
* <li><strong>AND</strong>: The filter conditions are evaluated by using a logical <strong>AND</strong>.</li>
* <li><strong>OR</strong>: The filter conditions are evaluated by using a logical <strong>OR</strong>.</li>
* </ul>
* </li>
* </ul>
* <blockquote>
* <p> If the value of <strong>ConditionType</strong> is <strong>system</strong>, <strong>labelKey</strong> is returned. The labelKey field is used only for internationalization rendering.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>{"filterParams":[{"labelKey":"a|b","value":"{\"name\":\"sadsasd\",\"value\":\"dasdsdas\"}"}],"LogicalExp":"OR"}</p>
*/
public Builder filterConditions(String filterConditions) {
this.filterConditions = filterConditions;
return this;
}
/**
* <p>The filter condition name.</p>
*
* <strong>example:</strong>
* <p>StopMachine</p>
*/
public Builder name(String name) {
this.name = name;
return this;
}
/**
* <p>The key of the filter condition name.</p>
*
* <strong>example:</strong>
* <p>stop_machine</p>
*/
public Builder nameKey(String nameKey) {
this.nameKey = nameKey;
return this;
}
public ConditionList build() {
return new ConditionList(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeSecureSuggestionRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeSecureSuggestionRequest} extends {@link RequestModel}
*
* <p>DescribeSecureSuggestionRequest</p>
*/
public class DescribeSecureSuggestionRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("CalType")
private String calType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Lang")
private String lang;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Source")
private Integer source;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SourceIp")
private String sourceIp;
private DescribeSecureSuggestionRequest(Builder builder) {
super(builder);
this.calType = builder.calType;
this.lang = builder.lang;
this.source = builder.source;
this.sourceIp = builder.sourceIp;
}
public static Builder builder() {
return new Builder();
}
public static DescribeSecureSuggestionRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return calType
*/
public String getCalType() {
return this.calType;
}
/**
* @return lang
*/
public String getLang() {
return this.lang;
}
/**
* @return source
*/
public Integer getSource() {
return this.source;
}
/**
* @return sourceIp
*/
public String getSourceIp() {
return this.sourceIp;
}
public static final class Builder extends Request.Builder<DescribeSecureSuggestionRequest, Builder> {
private String calType;
private String lang;
private Integer source;
private String sourceIp;
private Builder() {
super();
}
private Builder(DescribeSecureSuggestionRequest request) {
super(request);
this.calType = request.calType;
this.lang = request.lang;
this.source = request.source;
this.sourceIp = request.sourceIp;
}
/**
* <p>The old or new version of the security score rule. If you set this parameter to <strong>home_security_score</strong>, the new version of the security score rule is returned. Otherwise, the old version of the security score rule is returned.</p>
*
* <strong>example:</strong>
* <p>home_security_score</p>
*/
public Builder calType(String calType) {
this.putQueryParameter("CalType", calType);
this.calType = calType;
return this;
}
/**
* <p>The language of the content within the request and response. Default value: <strong>zh</strong>. Valid values:</p>
* <ul>
* <li><strong>zh</strong>: Chinese</li>
* <li><strong>en</strong>: English</li>
* </ul>
*
* <strong>example:</strong>
* <p>zh</p>
*/
public Builder lang(String lang) {
this.putQueryParameter("Lang", lang);
this.lang = lang;
return this;
}
/**
* <p>Source of security score, default is Cloud Security Center if left empty. Enum values: </p>
* <ul>
* <li><p>0:Cloud Security Center. </p>
* </li>
* <li><p>1:Yaochi Console.</p>
* </li>
* </ul>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder source(Integer source) {
this.putQueryParameter("Source", source);
this.source = source;
return this;
}
/**
* <p>The source IP address of the request.</p>
*
* <strong>example:</strong>
* <p>192.168.XX.XX</p>
*/
public Builder sourceIp(String sourceIp) {
this.putQueryParameter("SourceIp", sourceIp);
this.sourceIp = sourceIp;
return this;
}
@Override
public DescribeSecureSuggestionRequest build() {
return new DescribeSecureSuggestionRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeSecureSuggestionResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeSecureSuggestionResponse} extends {@link TeaModel}
*
* <p>DescribeSecureSuggestionResponse</p>
*/
public class DescribeSecureSuggestionResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private DescribeSecureSuggestionResponseBody body;
private DescribeSecureSuggestionResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeSecureSuggestionResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public DescribeSecureSuggestionResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeSecureSuggestionResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeSecureSuggestionResponseBody body);
@Override
DescribeSecureSuggestionResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeSecureSuggestionResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeSecureSuggestionResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeSecureSuggestionResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(DescribeSecureSuggestionResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeSecureSuggestionResponse build() {
return new DescribeSecureSuggestionResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeSecureSuggestionResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeSecureSuggestionResponseBody} extends {@link TeaModel}
*
* <p>DescribeSecureSuggestionResponseBody</p>
*/
public class DescribeSecureSuggestionResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("CalTime")
private Long calTime;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("Suggestions")
private java.util.List<Suggestions> suggestions;
@com.aliyun.core.annotation.NameInMap("TotalCount")
private Integer totalCount;
private DescribeSecureSuggestionResponseBody(Builder builder) {
this.calTime = builder.calTime;
this.requestId = builder.requestId;
this.suggestions = builder.suggestions;
this.totalCount = builder.totalCount;
}
public static Builder builder() {
return new Builder();
}
public static DescribeSecureSuggestionResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return calTime
*/
public Long getCalTime() {
return this.calTime;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return suggestions
*/
public java.util.List<Suggestions> getSuggestions() {
return this.suggestions;
}
/**
* @return totalCount
*/
public Integer getTotalCount() {
return this.totalCount;
}
public static final class Builder {
private Long calTime;
private String requestId;
private java.util.List<Suggestions> suggestions;
private Integer totalCount;
private Builder() {
}
private Builder(DescribeSecureSuggestionResponseBody model) {
this.calTime = model.calTime;
this.requestId = model.requestId;
this.suggestions = model.suggestions;
this.totalCount = model.totalCount;
}
/**
* <p>The timestamp of security score calculation.</p>
*
* <strong>example:</strong>
* <p>1755744253000</p>
*/
public Builder calTime(Long calTime) {
this.calTime = calTime;
return this;
}
/**
* <p>The ID of the request, which is used to locate and troubleshoot issues.</p>
*
* <strong>example:</strong>
* <p>676F80E3-4B3F-43DA-9CBB-5FF79F202AA2</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The suggestions on how to handle the risks.</p>
*/
public Builder suggestions(java.util.List<Suggestions> suggestions) {
this.suggestions = suggestions;
return this;
}
/**
* <p>The total number of unhandled security risks.</p>
*
* <strong>example:</strong>
* <p>15</p>
*/
public Builder totalCount(Integer totalCount) {
this.totalCount = totalCount;
return this;
}
public DescribeSecureSuggestionResponseBody build() {
return new DescribeSecureSuggestionResponseBody(this);
}
}
/**
*
* {@link DescribeSecureSuggestionResponseBody} extends {@link TeaModel}
*
* <p>DescribeSecureSuggestionResponseBody</p>
*/
public static class Detail extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Description")
private String description;
@com.aliyun.core.annotation.NameInMap("SubType")
private String subType;
@com.aliyun.core.annotation.NameInMap("Title")
private String title;
private Detail(Builder builder) {
this.description = builder.description;
this.subType = builder.subType;
this.title = builder.title;
}
public static Builder builder() {
return new Builder();
}
public static Detail create() {
return builder().build();
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @return subType
*/
public String getSubType() {
return this.subType;
}
/**
* @return title
*/
public String getTitle() {
return this.title;
}
public static final class Builder {
private String description;
private String subType;
private String title;
private Builder() {
}
private Builder(Detail model) {
this.description = model.description;
this.subType = model.subType;
this.title = model.title;
}
/**
* <p>The description of the suggestion.</p>
*
* <strong>example:</strong>
* <p>Malicious tampering of Web pages will affect your normal access to web page content, and may also lead to serious economic losses, brand losses, and even political risks. The webpage tamper-proof service can monitor the website directory in real time and restore the tampered files or directories through backup, so as to ensure that the website information of important systems is not tampered with maliciously and prevent the occurrence of horse hanging, black chain, illegal implantation of terrorist threats, pornography and other content.</p>
*/
public Builder description(String description) {
this.description = description;
return this;
}
/**
* <p>The sub-type of the unhandled risk. Valid values:</p>
* <ul>
* <li><strong>ALARM_HIGH</strong>: Unhandled Urgency Alerts</li>
* <li><strong>ALARM_MEDIUM</strong>: Unhandled Warning Alerts</li>
* <li><strong>ALARM_LOW</strong>: Unhandled Reminder Alerts</li>
* <li><strong>VUL_EMR_UNCHECK</strong>: Unchecked Urgent Vulnerabilities</li>
* <li><strong>VUL_EMR_UNFIX</strong>: Unfixed Urgent Vulnerabilities</li>
* <li><strong>VUL_WIN</strong>: Unfixed Windows Server Vulnerabilities</li>
* <li><strong>VUL_LINUX</strong>: Unfixed Linux Server Vulnerabilities</li>
* <li><strong>VUL_CMS</strong>: Unfixed CMS Vulnerabilities</li>
* <li><strong>ACCESSKEY_LEAK</strong>: AccessKey Leakage Risks</li>
* <li><strong>HC_WARN</strong>: Baseline Risks</li>
* <li><strong>HC_WEAK_EXPLOIT_WARN</strong>: There is a risk of weak passwords exposed by the public network.</li>
* <li><strong>HC_WEAK_PASSWORD_WARN</strong>: Risk of weak password</li>
* <li><strong>HC_HIGH_EXPLOIT_WARN</strong>: There is a high risk of invasion</li>
* <li><strong>HC_OTHER_WARN</strong>: Security Configuration risk</li>
* <li><strong>HC_DATABASE_WARN</strong>: Database has security risks</li>
* <li><strong>CLOUD_HC_SAS_OPEN</strong>: Security protection has not been installed on the server</li>
* <li><strong>CLOUD_HC_AEGIS_OFFLINE</strong>: Server protection status is offline</li>
* <li><strong>CLOUD_HC_ACCOUNT_DOUBLE_CHECK</strong>: Two-Factor Authentication not Enabled for Primary Account</li>
* <li><strong>CLOUD_HC_RDS</strong>: RDS-database security policy failed, security risks</li>
* <li><strong>CLOUD_HC_DDOS</strong>: Risks in Anti-DDoS Pro Back-to-Origin Settings</li>
* <li><strong>CLOUD_HC_HIGH_LEVEL</strong>: Cloud product configuration has high risk</li>
* <li><strong>CLOUD_HC_OTHER_LEVEL</strong>: Cloud product configuration has medium and low risk risks</li>
* <li><strong>OTHER_ATTACH</strong>: Attacks</li>
* <li><strong>OTHER_DATABASE_ATTACH</strong>: Database has security risks</li>
* <li><strong>REINFORCE_BASELINE</strong>: Config Assessment</li>
* <li><strong>REINFORCE_SUSPICIOUS</strong>: Antivirus</li>
* <li><strong>REINFORCE_ANALYSIS</strong>: Log Analysis</li>
* <li><strong>REINFORCE_AK_LEAK</strong>: AccessKey Leaked Intelligence Detection</li>
* <li><strong>REINFORCE_WEB_LOCK</strong>: Website tamper-proofing capability not configured</li>
* <li><strong>REINFORCE_BRUTE_FORCE</strong>: Anti brute force cracking</li>
* <li><strong>REINFORCE_XPRESS_INSTALL</strong>: One-click client installation</li>
* <li><strong>REINFORCE_RANSOMWARE</strong>: Enable anti-extortion strategy</li>
* <li><strong>REINFORCE_UNI_RANSOMWARE</strong>: Anti-ransomware for Databases</li>
* <li><strong>REINFORCE_VIRUS_SCHEDULE_SCAN</strong>: Periodic virus scan policies not configured</li>
* <li><strong>REINFORCE_IMAGE_REPO_SCAN</strong>: No container image scan range configured</li>
* <li><strong>REINFORCE_IMAGE_SCAN_TASK</strong>: Image security scan</li>
* <li><strong>REINFORCE_K8S_LOG_ANALYSIS</strong>: Container K8s threat detection is disabled</li>
* <li><strong>REINFORCE_CONTAINER_NETWORK</strong>: Container Visualization</li>
* </ul>
*
* <strong>example:</strong>
* <p>REINFORCE_WEB_LOCK</p>
*/
public Builder subType(String subType) {
this.subType = subType;
return this;
}
/**
* <p>The name of the unhandled risk.</p>
*
* <strong>example:</strong>
* <p>Website tamper-proofing capability not configured</p>
*/
public Builder title(String title) {
this.title = title;
return this;
}
public Detail build() {
return new Detail(this);
}
}
}
/**
*
* {@link DescribeSecureSuggestionResponseBody} extends {@link TeaModel}
*
* <p>DescribeSecureSuggestionResponseBody</p>
*/
public static class Suggestions extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Detail")
private java.util.List<Detail> detail;
@com.aliyun.core.annotation.NameInMap("Points")
private Integer points;
@com.aliyun.core.annotation.NameInMap("SuggestType")
private String suggestType;
private Suggestions(Builder builder) {
this.detail = builder.detail;
this.points = builder.points;
this.suggestType = builder.suggestType;
}
public static Builder builder() {
return new Builder();
}
public static Suggestions create() {
return builder().build();
}
/**
* @return detail
*/
public java.util.List<Detail> getDetail() {
return this.detail;
}
/**
* @return points
*/
public Integer getPoints() {
return this.points;
}
/**
* @return suggestType
*/
public String getSuggestType() {
return this.suggestType;
}
public static final class Builder {
private java.util.List<Detail> detail;
private Integer points;
private String suggestType;
private Builder() {
}
private Builder(Suggestions model) {
this.detail = model.detail;
this.points = model.points;
this.suggestType = model.suggestType;
}
/**
* <p>The details of the suggestion.</p>
*/
public Builder detail(java.util.List<Detail> detail) {
this.detail = detail;
return this;
}
/**
* <p>The penalty point of a deduction item.</p>
*
* <strong>example:</strong>
* <p>40</p>
*/
public Builder points(Integer points) {
this.points = points;
return this;
}
/**
* <p>The type of the unhandled risk. Valid values:</p>
* <ul>
* <li><strong>SS_REINFORCE</strong>: missing configuration of key features, such as malicious behavior defense</li>
* <li><strong>SS_ALARM</strong>: unhandled alerts</li>
* <li><strong>SS_VUL</strong>: unfixed vulnerabilities</li>
* <li><strong>SS_HC</strong>: baseline risks</li>
* <li><strong>SS_AK</strong>: AccessKey pair leaks</li>
* <li><strong>SS_CLOUD_HC</strong>: configuration risks of cloud services</li>
* <li><strong>OTHER</strong>: others</li>
* </ul>
*
* <strong>example:</strong>
* <p>SS_ALARM</p>
*/
public Builder suggestType(String suggestType) {
this.suggestType = suggestType;
return this;
}
public Suggestions build() {
return new Suggestions(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeSecurityCheckScheduleConfigRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeSecurityCheckScheduleConfigRequest} extends {@link RequestModel}
*
* <p>DescribeSecurityCheckScheduleConfigRequest</p>
*/
public class DescribeSecurityCheckScheduleConfigRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Lang")
private String lang;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SourceIp")
private String sourceIp;
private DescribeSecurityCheckScheduleConfigRequest(Builder builder) {
super(builder);
this.lang = builder.lang;
this.resourceOwnerId = builder.resourceOwnerId;
this.sourceIp = builder.sourceIp;
}
public static Builder builder() {
return new Builder();
}
public static DescribeSecurityCheckScheduleConfigRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return lang
*/
public String getLang() {
return this.lang;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
/**
* @return sourceIp
*/
public String getSourceIp() {
return this.sourceIp;
}
public static final class Builder extends Request.Builder<DescribeSecurityCheckScheduleConfigRequest, Builder> {
private String lang;
private Long resourceOwnerId;
private String sourceIp;
private Builder() {
super();
}
private Builder(DescribeSecurityCheckScheduleConfigRequest request) {
super(request);
this.lang = request.lang;
this.resourceOwnerId = request.resourceOwnerId;
this.sourceIp = request.sourceIp;
}
/**
* <p>The language of the content within the request and response. Default value: <strong>zh</strong>. Valid values:</p>
* <ul>
* <li><strong>zh</strong>: Chinese</li>
* <li><strong>en</strong>: English</li>
* </ul>
*
* <strong>example:</strong>
* <p>zh</p>
*/
public Builder lang(String lang) {
this.putQueryParameter("Lang", lang);
this.lang = lang;
return this;
}
/**
* ResourceOwnerId.
*/
public Builder resourceOwnerId(Long resourceOwnerId) {
this.putQueryParameter("ResourceOwnerId", resourceOwnerId);
this.resourceOwnerId = resourceOwnerId;
return this;
}
/**
* <p>The source IP address of the request.</p>
*
* <strong>example:</strong>
* <p>1.2.XX.XX</p>
*/
public Builder sourceIp(String sourceIp) {
this.putQueryParameter("SourceIp", sourceIp);
this.sourceIp = sourceIp;
return this;
}
@Override
public DescribeSecurityCheckScheduleConfigRequest build() {
return new DescribeSecurityCheckScheduleConfigRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeSecurityCheckScheduleConfigResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeSecurityCheckScheduleConfigResponse} extends {@link TeaModel}
*
* <p>DescribeSecurityCheckScheduleConfigResponse</p>
*/
public class DescribeSecurityCheckScheduleConfigResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private DescribeSecurityCheckScheduleConfigResponseBody body;
private DescribeSecurityCheckScheduleConfigResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeSecurityCheckScheduleConfigResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public DescribeSecurityCheckScheduleConfigResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeSecurityCheckScheduleConfigResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeSecurityCheckScheduleConfigResponseBody body);
@Override
DescribeSecurityCheckScheduleConfigResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeSecurityCheckScheduleConfigResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeSecurityCheckScheduleConfigResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeSecurityCheckScheduleConfigResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(DescribeSecurityCheckScheduleConfigResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeSecurityCheckScheduleConfigResponse build() {
return new DescribeSecurityCheckScheduleConfigResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeSecurityCheckScheduleConfigResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeSecurityCheckScheduleConfigResponseBody} extends {@link TeaModel}
*
* <p>DescribeSecurityCheckScheduleConfigResponseBody</p>
*/
public class DescribeSecurityCheckScheduleConfigResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("RiskCheckJobConfig")
private RiskCheckJobConfig riskCheckJobConfig;
private DescribeSecurityCheckScheduleConfigResponseBody(Builder builder) {
this.requestId = builder.requestId;
this.riskCheckJobConfig = builder.riskCheckJobConfig;
}
public static Builder builder() {
return new Builder();
}
public static DescribeSecurityCheckScheduleConfigResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return riskCheckJobConfig
*/
public RiskCheckJobConfig getRiskCheckJobConfig() {
return this.riskCheckJobConfig;
}
public static final class Builder {
private String requestId;
private RiskCheckJobConfig riskCheckJobConfig;
private Builder() {
}
private Builder(DescribeSecurityCheckScheduleConfigResponseBody model) {
this.requestId = model.requestId;
this.riskCheckJobConfig = model.riskCheckJobConfig;
}
/**
* <p>The ID of the request, which is used to locate and troubleshoot issues.</p>
*
* <strong>example:</strong>
* <p>48D2E9A9-A1B0-4295-B727-0995757C47E9</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The configurations of custom check tasks.</p>
*/
public Builder riskCheckJobConfig(RiskCheckJobConfig riskCheckJobConfig) {
this.riskCheckJobConfig = riskCheckJobConfig;
return this;
}
public DescribeSecurityCheckScheduleConfigResponseBody build() {
return new DescribeSecurityCheckScheduleConfigResponseBody(this);
}
}
/**
*
* {@link DescribeSecurityCheckScheduleConfigResponseBody} extends {@link TeaModel}
*
* <p>DescribeSecurityCheckScheduleConfigResponseBody</p>
*/
public static class RiskCheckJobConfig extends TeaModel {
@com.aliyun.core.annotation.NameInMap("DaysOfWeek")
private String daysOfWeek;
@com.aliyun.core.annotation.NameInMap("EndTime")
private Integer endTime;
@com.aliyun.core.annotation.NameInMap("StartTime")
private Integer startTime;
private RiskCheckJobConfig(Builder builder) {
this.daysOfWeek = builder.daysOfWeek;
this.endTime = builder.endTime;
this.startTime = builder.startTime;
}
public static Builder builder() {
return new Builder();
}
public static RiskCheckJobConfig create() {
return builder().build();
}
/**
* @return daysOfWeek
*/
public String getDaysOfWeek() {
return this.daysOfWeek;
}
/**
* @return endTime
*/
public Integer getEndTime() {
return this.endTime;
}
/**
* @return startTime
*/
public Integer getStartTime() {
return this.startTime;
}
public static final class Builder {
private String daysOfWeek;
private Integer endTime;
private Integer startTime;
private Builder() {
}
private Builder(RiskCheckJobConfig model) {
this.daysOfWeek = model.daysOfWeek;
this.endTime = model.endTime;
this.startTime = model.startTime;
}
/**
* <p>The day of the week when the check tasks are performed. Multiple days can be specified. Multiple days are separated by commas (,).</p>
* <ul>
* <li><strong>1</strong>: Monday</li>
* <li><strong>2</strong>: Tuesday</li>
* <li><strong>3</strong>: Wednesday</li>
* <li><strong>4</strong>: Thursday</li>
* <li><strong>5</strong>: Friday</li>
* <li><strong>6</strong>: Saturday</li>
* <li><strong>7</strong>: Sunday</li>
* </ul>
*
* <strong>example:</strong>
* <p>1,2,3</p>
*/
public Builder daysOfWeek(String daysOfWeek) {
this.daysOfWeek = daysOfWeek;
return this;
}
/**
* <p>The time range during which check tasks end. Valid values:</p>
* <ul>
* <li><strong>6</strong>: 00:00 to 06:00</li>
* <li><strong>12</strong>: 06:00 to 12:00</li>
* <li><strong>18</strong>: 12:00 to 18:00</li>
* <li><strong>24</strong>: 18:00 to 24:00</li>
* </ul>
*
* <strong>example:</strong>
* <p>12</p>
*/
public Builder endTime(Integer endTime) {
this.endTime = endTime;
return this;
}
/**
* <p>The time range during which check tasks start. Valid values:</p>
* <ul>
* <li><strong>0</strong>: 00:00 to 06:00</li>
* <li><strong>6</strong>: 06:00 to 12:00</li>
* <li><strong>12</strong>: 12:00 to 18:00</li>
* <li><strong>18</strong>: 18:00 to 24:00</li>
* </ul>
*
* <strong>example:</strong>
* <p>6</p>
*/
public Builder startTime(Integer startTime) {
this.startTime = startTime;
return this;
}
public RiskCheckJobConfig build() {
return new RiskCheckJobConfig(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeSecurityEventMarkMissListRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeSecurityEventMarkMissListRequest} extends {@link RequestModel}
*
* <p>DescribeSecurityEventMarkMissListRequest</p>
*/
public class DescribeSecurityEventMarkMissListRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("CurrentPage")
@com.aliyun.core.annotation.Validation(required = true)
private Integer currentPage;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("EventName")
private String eventName;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageSize")
@com.aliyun.core.annotation.Validation(required = true)
private Integer pageSize;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Remark")
private String remark;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SourceIp")
private String sourceIp;
private DescribeSecurityEventMarkMissListRequest(Builder builder) {
super(builder);
this.currentPage = builder.currentPage;
this.eventName = builder.eventName;
this.pageSize = builder.pageSize;
this.remark = builder.remark;
this.resourceOwnerId = builder.resourceOwnerId;
this.sourceIp = builder.sourceIp;
}
public static Builder builder() {
return new Builder();
}
public static DescribeSecurityEventMarkMissListRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return currentPage
*/
public Integer getCurrentPage() {
return this.currentPage;
}
/**
* @return eventName
*/
public String getEventName() {
return this.eventName;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return remark
*/
public String getRemark() {
return this.remark;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
/**
* @return sourceIp
*/
public String getSourceIp() {
return this.sourceIp;
}
public static final class Builder extends Request.Builder<DescribeSecurityEventMarkMissListRequest, Builder> {
private Integer currentPage;
private String eventName;
private Integer pageSize;
private String remark;
private Long resourceOwnerId;
private String sourceIp;
private Builder() {
super();
}
private Builder(DescribeSecurityEventMarkMissListRequest request) {
super(request);
this.currentPage = request.currentPage;
this.eventName = request.eventName;
this.pageSize = request.pageSize;
this.remark = request.remark;
this.resourceOwnerId = request.resourceOwnerId;
this.sourceIp = request.sourceIp;
}
/**
* <p>The number of the page to return. Default value: <strong>1</strong>.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder currentPage(Integer currentPage) {
this.putQueryParameter("CurrentPage", currentPage);
this.currentPage = currentPage;
return this;
}
/**
* <p>The name of the alert event. The value indicates a subtype.</p>
*
* <strong>example:</strong>
* <p>Login with unusual location</p>
*/
public Builder eventName(String eventName) {
this.putQueryParameter("EventName", eventName);
this.eventName = eventName;
return this;
}
/**
* <p>The number of entries per page. Default value: <strong>20</strong>.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>20</p>
*/
public Builder pageSize(Integer pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
return this;
}
/**
* <p>The condition that is used to query alert events by asset. You can enter an IP address, a public IP address, an internal IP address, or an asset name for fuzzy match.</p>
*
* <strong>example:</strong>
* <p>192.168.XX.XX</p>
*/
public Builder remark(String remark) {
this.putQueryParameter("Remark", remark);
this.remark = remark;
return this;
}
/**
* ResourceOwnerId.
*/
public Builder resourceOwnerId(Long resourceOwnerId) {
this.putQueryParameter("ResourceOwnerId", resourceOwnerId);
this.resourceOwnerId = resourceOwnerId;
return this;
}
/**
* <p>The source IP address of the request.</p>
*
* <strong>example:</strong>
* <p>125.210.XX.XX</p>
*/
public Builder sourceIp(String sourceIp) {
this.putQueryParameter("SourceIp", sourceIp);
this.sourceIp = sourceIp;
return this;
}
@Override
public DescribeSecurityEventMarkMissListRequest build() {
return new DescribeSecurityEventMarkMissListRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeSecurityEventMarkMissListResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeSecurityEventMarkMissListResponse} extends {@link TeaModel}
*
* <p>DescribeSecurityEventMarkMissListResponse</p>
*/
public class DescribeSecurityEventMarkMissListResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private DescribeSecurityEventMarkMissListResponseBody body;
private DescribeSecurityEventMarkMissListResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeSecurityEventMarkMissListResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public DescribeSecurityEventMarkMissListResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeSecurityEventMarkMissListResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeSecurityEventMarkMissListResponseBody body);
@Override
DescribeSecurityEventMarkMissListResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeSecurityEventMarkMissListResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeSecurityEventMarkMissListResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeSecurityEventMarkMissListResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(DescribeSecurityEventMarkMissListResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeSecurityEventMarkMissListResponse build() {
return new DescribeSecurityEventMarkMissListResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeSecurityEventMarkMissListResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeSecurityEventMarkMissListResponseBody} extends {@link TeaModel}
*
* <p>DescribeSecurityEventMarkMissListResponseBody</p>
*/
public class DescribeSecurityEventMarkMissListResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("List")
private java.util.List<List> list;
@com.aliyun.core.annotation.NameInMap("PageInfo")
private PageInfo pageInfo;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private DescribeSecurityEventMarkMissListResponseBody(Builder builder) {
this.list = builder.list;
this.pageInfo = builder.pageInfo;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeSecurityEventMarkMissListResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return list
*/
public java.util.List<List> getList() {
return this.list;
}
/**
* @return pageInfo
*/
public PageInfo getPageInfo() {
return this.pageInfo;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private java.util.List<List> list;
private PageInfo pageInfo;
private String requestId;
private Builder() {
}
private Builder(DescribeSecurityEventMarkMissListResponseBody model) {
this.list = model.list;
this.pageInfo = model.pageInfo;
this.requestId = model.requestId;
}
/**
* <p>The ID of the rule.</p>
*/
public Builder list(java.util.List<List> list) {
this.list = list;
return this;
}
/**
* <p>The pagination information.</p>
*/
public Builder pageInfo(PageInfo pageInfo) {
this.pageInfo = pageInfo;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>24A20733-10A0-4AF6-BE6B-E3322413BB68</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public DescribeSecurityEventMarkMissListResponseBody build() {
return new DescribeSecurityEventMarkMissListResponseBody(this);
}
}
/**
*
* {@link DescribeSecurityEventMarkMissListResponseBody} extends {@link TeaModel}
*
* <p>DescribeSecurityEventMarkMissListResponseBody</p>
*/
public static class List extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AliUid")
private Long aliUid;
@com.aliyun.core.annotation.NameInMap("EventName")
private String eventName;
@com.aliyun.core.annotation.NameInMap("EventNameOriginal")
private String eventNameOriginal;
@com.aliyun.core.annotation.NameInMap("EventType")
private String eventType;
@com.aliyun.core.annotation.NameInMap("EventTypeOriginal")
private String eventTypeOriginal;
@com.aliyun.core.annotation.NameInMap("Field")
private String field;
@com.aliyun.core.annotation.NameInMap("FieldValue")
private String fieldValue;
@com.aliyun.core.annotation.NameInMap("FiledAliasName")
private String filedAliasName;
@com.aliyun.core.annotation.NameInMap("Id")
private Long id;
@com.aliyun.core.annotation.NameInMap("InstanceId")
private String instanceId;
@com.aliyun.core.annotation.NameInMap("InstanceName")
private String instanceName;
@com.aliyun.core.annotation.NameInMap("InternetIp")
private String internetIp;
@com.aliyun.core.annotation.NameInMap("IntranetIp")
private String intranetIp;
@com.aliyun.core.annotation.NameInMap("Operate")
private String operate;
@com.aliyun.core.annotation.NameInMap("Uuid")
private String uuid;
private List(Builder builder) {
this.aliUid = builder.aliUid;
this.eventName = builder.eventName;
this.eventNameOriginal = builder.eventNameOriginal;
this.eventType = builder.eventType;
this.eventTypeOriginal = builder.eventTypeOriginal;
this.field = builder.field;
this.fieldValue = builder.fieldValue;
this.filedAliasName = builder.filedAliasName;
this.id = builder.id;
this.instanceId = builder.instanceId;
this.instanceName = builder.instanceName;
this.internetIp = builder.internetIp;
this.intranetIp = builder.intranetIp;
this.operate = builder.operate;
this.uuid = builder.uuid;
}
public static Builder builder() {
return new Builder();
}
public static List create() {
return builder().build();
}
/**
* @return aliUid
*/
public Long getAliUid() {
return this.aliUid;
}
/**
* @return eventName
*/
public String getEventName() {
return this.eventName;
}
/**
* @return eventNameOriginal
*/
public String getEventNameOriginal() {
return this.eventNameOriginal;
}
/**
* @return eventType
*/
public String getEventType() {
return this.eventType;
}
/**
* @return eventTypeOriginal
*/
public String getEventTypeOriginal() {
return this.eventTypeOriginal;
}
/**
* @return field
*/
public String getField() {
return this.field;
}
/**
* @return fieldValue
*/
public String getFieldValue() {
return this.fieldValue;
}
/**
* @return filedAliasName
*/
public String getFiledAliasName() {
return this.filedAliasName;
}
/**
* @return id
*/
public Long getId() {
return this.id;
}
/**
* @return instanceId
*/
public String getInstanceId() {
return this.instanceId;
}
/**
* @return instanceName
*/
public String getInstanceName() {
return this.instanceName;
}
/**
* @return internetIp
*/
public String getInternetIp() {
return this.internetIp;
}
/**
* @return intranetIp
*/
public String getIntranetIp() {
return this.intranetIp;
}
/**
* @return operate
*/
public String getOperate() {
return this.operate;
}
/**
* @return uuid
*/
public String getUuid() {
return this.uuid;
}
public static final class Builder {
private Long aliUid;
private String eventName;
private String eventNameOriginal;
private String eventType;
private String eventTypeOriginal;
private String field;
private String fieldValue;
private String filedAliasName;
private Long id;
private String instanceId;
private String instanceName;
private String internetIp;
private String intranetIp;
private String operate;
private String uuid;
private Builder() {
}
private Builder(List model) {
this.aliUid = model.aliUid;
this.eventName = model.eventName;
this.eventNameOriginal = model.eventNameOriginal;
this.eventType = model.eventType;
this.eventTypeOriginal = model.eventTypeOriginal;
this.field = model.field;
this.fieldValue = model.fieldValue;
this.filedAliasName = model.filedAliasName;
this.id = model.id;
this.instanceId = model.instanceId;
this.instanceName = model.instanceName;
this.internetIp = model.internetIp;
this.intranetIp = model.intranetIp;
this.operate = model.operate;
this.uuid = model.uuid;
}
/**
* <p>The user ID.</p>
*
* <strong>example:</strong>
* <p>176618589410****</p>
*/
public Builder aliUid(Long aliUid) {
this.aliUid = aliUid;
return this;
}
/**
* <p>The name of the alert event. The value indicates a subtype.</p>
*
* <strong>example:</strong>
* <p>Login with unusual location</p>
*/
public Builder eventName(String eventName) {
this.eventName = eventName;
return this;
}
/**
* <p>The name of the alert event. The value indicates a type.</p>
*
* <strong>example:</strong>
* <p>login_common_location</p>
*/
public Builder eventNameOriginal(String eventNameOriginal) {
this.eventNameOriginal = eventNameOriginal;
return this;
}
/**
* <p>The subtype of the alert event.</p>
*
* <strong>example:</strong>
* <p>Unusual Logon</p>
*/
public Builder eventType(String eventType) {
this.eventType = eventType;
return this;
}
/**
* <p>The type of the alert event.</p>
*
* <strong>example:</strong>
* <p>login_common_location</p>
*/
public Builder eventTypeOriginal(String eventTypeOriginal) {
this.eventTypeOriginal = eventTypeOriginal;
return this;
}
/**
* <p>The field that is used in the whitelist rule.</p>
*
* <strong>example:</strong>
* <p>type</p>
*/
public Builder field(String field) {
this.field = field;
return this;
}
/**
* <p>The value of the field.</p>
*
* <strong>example:</strong>
* <p>root</p>
*/
public Builder fieldValue(String fieldValue) {
this.fieldValue = fieldValue;
return this;
}
/**
* <p>The alias of the field.</p>
*
* <strong>example:</strong>
* <p>Logon Time</p>
*/
public Builder filedAliasName(String filedAliasName) {
this.filedAliasName = filedAliasName;
return this;
}
/**
* <p>The ID of the rule.</p>
*
* <strong>example:</strong>
* <p>104037</p>
*/
public Builder id(Long id) {
this.id = id;
return this;
}
/**
* <p>The instance ID of the server.</p>
*
* <strong>example:</strong>
* <p>rm-bp1e8t4q15sr3****</p>
*/
public Builder instanceId(String instanceId) {
this.instanceId = instanceId;
return this;
}
/**
* <p>The instance name of the asset.</p>
*
* <strong>example:</strong>
* <p>sql-test-001</p>
*/
public Builder instanceName(String instanceName) {
this.instanceName = instanceName;
return this;
}
/**
* <p>The public IP address of the server.</p>
*
* <strong>example:</strong>
* <p>8.210.XX.XX</p>
*/
public Builder internetIp(String internetIp) {
this.internetIp = internetIp;
return this;
}
/**
* <p>The private IP address of the server.</p>
*
* <strong>example:</strong>
* <p>172.25.XX.XX</p>
*/
public Builder intranetIp(String intranetIp) {
this.intranetIp = intranetIp;
return this;
}
/**
* <p>The operator. Valid values:</p>
* <ul>
* <li><strong>contains</strong>: contains</li>
* <li><strong>notContains</strong>: does not contain</li>
* <li><strong>strEqual</strong>: equals</li>
* <li><strong>strNotEqual</strong>: does not equal</li>
* <li><strong>regex</strong>: regular expression</li>
* </ul>
*
* <strong>example:</strong>
* <p>contains</p>
*/
public Builder operate(String operate) {
this.operate = operate;
return this;
}
/**
* <p>The UUID of the asset.</p>
*
* <strong>example:</strong>
* <p>49e25e0f-bb51-4a5a-a1b3-13a4ddaa****</p>
*/
public Builder uuid(String uuid) {
this.uuid = uuid;
return this;
}
public List build() {
return new List(this);
}
}
}
/**
*
* {@link DescribeSecurityEventMarkMissListResponseBody} extends {@link TeaModel}
*
* <p>DescribeSecurityEventMarkMissListResponseBody</p>
*/
public static class PageInfo extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Count")
private Integer count;
@com.aliyun.core.annotation.NameInMap("CurrentPage")
private Integer currentPage;
@com.aliyun.core.annotation.NameInMap("PageSize")
private Integer pageSize;
@com.aliyun.core.annotation.NameInMap("TotalCount")
private Integer totalCount;
private PageInfo(Builder builder) {
this.count = builder.count;
this.currentPage = builder.currentPage;
this.pageSize = builder.pageSize;
this.totalCount = builder.totalCount;
}
public static Builder builder() {
return new Builder();
}
public static PageInfo create() {
return builder().build();
}
/**
* @return count
*/
public Integer getCount() {
return this.count;
}
/**
* @return currentPage
*/
public Integer getCurrentPage() {
return this.currentPage;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return totalCount
*/
public Integer getTotalCount() {
return this.totalCount;
}
public static final class Builder {
private Integer count;
private Integer currentPage;
private Integer pageSize;
private Integer totalCount;
private Builder() {
}
private Builder(PageInfo model) {
this.count = model.count;
this.currentPage = model.currentPage;
this.pageSize = model.pageSize;
this.totalCount = model.totalCount;
}
/**
* <p>The number of entries returned on the current page.</p>
*
* <strong>example:</strong>
* <p>9</p>
*/
public Builder count(Integer count) {
this.count = count;
return this;
}
/**
* <p>The page number.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder currentPage(Integer currentPage) {
this.currentPage = currentPage;
return this;
}
/**
* <p>The number of entries per page. Default value: <strong>20</strong>.</p>
*
* <strong>example:</strong>
* <p>20</p>
*/
public Builder pageSize(Integer pageSize) {
this.pageSize = pageSize;
return this;
}
/**
* <p>The total number of entries returned.</p>
*
* <strong>example:</strong>
* <p>200</p>
*/
public Builder totalCount(Integer totalCount) {
this.totalCount = totalCount;
return this;
}
public PageInfo build() {
return new PageInfo(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeSecurityEventOperationStatusRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeSecurityEventOperationStatusRequest} extends {@link RequestModel}
*
* <p>DescribeSecurityEventOperationStatusRequest</p>
*/
public class DescribeSecurityEventOperationStatusRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SecurityEventIds")
@com.aliyun.core.annotation.Validation(required = true)
private java.util.List<String> securityEventIds;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SourceIp")
private String sourceIp;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("TaskId")
@com.aliyun.core.annotation.Validation(required = true)
private Long taskId;
private DescribeSecurityEventOperationStatusRequest(Builder builder) {
super(builder);
this.resourceOwnerId = builder.resourceOwnerId;
this.securityEventIds = builder.securityEventIds;
this.sourceIp = builder.sourceIp;
this.taskId = builder.taskId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeSecurityEventOperationStatusRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
/**
* @return securityEventIds
*/
public java.util.List<String> getSecurityEventIds() {
return this.securityEventIds;
}
/**
* @return sourceIp
*/
public String getSourceIp() {
return this.sourceIp;
}
/**
* @return taskId
*/
public Long getTaskId() {
return this.taskId;
}
public static final class Builder extends Request.Builder<DescribeSecurityEventOperationStatusRequest, Builder> {
private Long resourceOwnerId;
private java.util.List<String> securityEventIds;
private String sourceIp;
private Long taskId;
private Builder() {
super();
}
private Builder(DescribeSecurityEventOperationStatusRequest request) {
super(request);
this.resourceOwnerId = request.resourceOwnerId;
this.securityEventIds = request.securityEventIds;
this.sourceIp = request.sourceIp;
this.taskId = request.taskId;
}
/**
* ResourceOwnerId.
*/
public Builder resourceOwnerId(Long resourceOwnerId) {
this.putQueryParameter("ResourceOwnerId", resourceOwnerId);
this.resourceOwnerId = resourceOwnerId;
return this;
}
/**
* <p>The IDs of the alert events.</p>
* <blockquote>
* <p> You must specify at least one of the TaskId and SecurityEventIds parameters.</p>
* </blockquote>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>["909361"]</p>
*/
public Builder securityEventIds(java.util.List<String> securityEventIds) {
this.putQueryParameter("SecurityEventIds", securityEventIds);
this.securityEventIds = securityEventIds;
return this;
}
/**
* <p>The source IP address of the request.</p>
*
* <strong>example:</strong>
* <p>192.168.XX.XX</p>
*/
public Builder sourceIp(String sourceIp) {
this.putQueryParameter("SourceIp", sourceIp);
this.sourceIp = sourceIp;
return this;
}
/**
* <p>The ID of the task that handles the alert events.</p>
* <blockquote>
* <p> You must specify at least one of the TaskId and SecurityEventIds parameters.</p>
* </blockquote>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>12121</p>
*/
public Builder taskId(Long taskId) {
this.putQueryParameter("TaskId", taskId);
this.taskId = taskId;
return this;
}
@Override
public DescribeSecurityEventOperationStatusRequest build() {
return new DescribeSecurityEventOperationStatusRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeSecurityEventOperationStatusResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeSecurityEventOperationStatusResponse} extends {@link TeaModel}
*
* <p>DescribeSecurityEventOperationStatusResponse</p>
*/
public class DescribeSecurityEventOperationStatusResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private DescribeSecurityEventOperationStatusResponseBody body;
private DescribeSecurityEventOperationStatusResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeSecurityEventOperationStatusResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public DescribeSecurityEventOperationStatusResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeSecurityEventOperationStatusResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeSecurityEventOperationStatusResponseBody body);
@Override
DescribeSecurityEventOperationStatusResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeSecurityEventOperationStatusResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeSecurityEventOperationStatusResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeSecurityEventOperationStatusResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(DescribeSecurityEventOperationStatusResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeSecurityEventOperationStatusResponse build() {
return new DescribeSecurityEventOperationStatusResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeSecurityEventOperationStatusResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeSecurityEventOperationStatusResponseBody} extends {@link TeaModel}
*
* <p>DescribeSecurityEventOperationStatusResponseBody</p>
*/
public class DescribeSecurityEventOperationStatusResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("SecurityEventOperationStatusResponse")
private SecurityEventOperationStatusResponse securityEventOperationStatusResponse;
private DescribeSecurityEventOperationStatusResponseBody(Builder builder) {
this.requestId = builder.requestId;
this.securityEventOperationStatusResponse = builder.securityEventOperationStatusResponse;
}
public static Builder builder() {
return new Builder();
}
public static DescribeSecurityEventOperationStatusResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return securityEventOperationStatusResponse
*/
public SecurityEventOperationStatusResponse getSecurityEventOperationStatusResponse() {
return this.securityEventOperationStatusResponse;
}
public static final class Builder {
private String requestId;
private SecurityEventOperationStatusResponse securityEventOperationStatusResponse;
private Builder() {
}
private Builder(DescribeSecurityEventOperationStatusResponseBody model) {
this.requestId = model.requestId;
this.securityEventOperationStatusResponse = model.securityEventOperationStatusResponse;
}
/**
* <p>The ID of the request, which is used to locate and troubleshoot issues.</p>
*
* <strong>example:</strong>
* <p>1683940A-E4AE-4473-8C40-F4075434B76B</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The information about the task that handles the alert events.</p>
*/
public Builder securityEventOperationStatusResponse(SecurityEventOperationStatusResponse securityEventOperationStatusResponse) {
this.securityEventOperationStatusResponse = securityEventOperationStatusResponse;
return this;
}
public DescribeSecurityEventOperationStatusResponseBody build() {
return new DescribeSecurityEventOperationStatusResponseBody(this);
}
}
/**
*
* {@link DescribeSecurityEventOperationStatusResponseBody} extends {@link TeaModel}
*
* <p>DescribeSecurityEventOperationStatusResponseBody</p>
*/
public static class SecurityEventOperationStatuses extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ErrorCode")
private String errorCode;
@com.aliyun.core.annotation.NameInMap("SecurityEventId")
private String securityEventId;
@com.aliyun.core.annotation.NameInMap("Status")
private String status;
private SecurityEventOperationStatuses(Builder builder) {
this.errorCode = builder.errorCode;
this.securityEventId = builder.securityEventId;
this.status = builder.status;
}
public static Builder builder() {
return new Builder();
}
public static SecurityEventOperationStatuses create() {
return builder().build();
}
/**
* @return errorCode
*/
public String getErrorCode() {
return this.errorCode;
}
/**
* @return securityEventId
*/
public String getSecurityEventId() {
return this.securityEventId;
}
/**
* @return status
*/
public String getStatus() {
return this.status;
}
public static final class Builder {
private String errorCode;
private String securityEventId;
private String status;
private Builder() {
}
private Builder(SecurityEventOperationStatuses model) {
this.errorCode = model.errorCode;
this.securityEventId = model.securityEventId;
this.status = model.status;
}
/**
* <p>The code that indicates the handling result of the alert event.</p>
*
* <strong>example:</strong>
* <p>ignore.Success</p>
*/
public Builder errorCode(String errorCode) {
this.errorCode = errorCode;
return this;
}
/**
* <p>The ID of the alert event.</p>
*
* <strong>example:</strong>
* <p>12321</p>
*/
public Builder securityEventId(String securityEventId) {
this.securityEventId = securityEventId;
return this;
}
/**
* <p>The handling status of the alert event. Valid values:</p>
* <ul>
* <li><strong>Processing</strong>: The alert event is being handled.</li>
* <li><strong>Success</strong>: The alert event is handled.</li>
* <li><strong>Failed</strong>: The alert event failed to be handled.</li>
* </ul>
*
* <strong>example:</strong>
* <p>Success</p>
*/
public Builder status(String status) {
this.status = status;
return this;
}
public SecurityEventOperationStatuses build() {
return new SecurityEventOperationStatuses(this);
}
}
}
/**
*
* {@link DescribeSecurityEventOperationStatusResponseBody} extends {@link TeaModel}
*
* <p>DescribeSecurityEventOperationStatusResponseBody</p>
*/
public static class SecurityEventOperationStatusResponse extends TeaModel {
@com.aliyun.core.annotation.NameInMap("SecurityEventOperationStatuses")
private java.util.List<SecurityEventOperationStatuses> securityEventOperationStatuses;
@com.aliyun.core.annotation.NameInMap("TaskStatus")
private String taskStatus;
private SecurityEventOperationStatusResponse(Builder builder) {
this.securityEventOperationStatuses = builder.securityEventOperationStatuses;
this.taskStatus = builder.taskStatus;
}
public static Builder builder() {
return new Builder();
}
public static SecurityEventOperationStatusResponse create() {
return builder().build();
}
/**
* @return securityEventOperationStatuses
*/
public java.util.List<SecurityEventOperationStatuses> getSecurityEventOperationStatuses() {
return this.securityEventOperationStatuses;
}
/**
* @return taskStatus
*/
public String getTaskStatus() {
return this.taskStatus;
}
public static final class Builder {
private java.util.List<SecurityEventOperationStatuses> securityEventOperationStatuses;
private String taskStatus;
private Builder() {
}
private Builder(SecurityEventOperationStatusResponse model) {
this.securityEventOperationStatuses = model.securityEventOperationStatuses;
this.taskStatus = model.taskStatus;
}
/**
* <p>An array consisting of the status of the alert events handled by the task.</p>
*/
public Builder securityEventOperationStatuses(java.util.List<SecurityEventOperationStatuses> securityEventOperationStatuses) {
this.securityEventOperationStatuses = securityEventOperationStatuses;
return this;
}
/**
* <p>The status of the task that handles the alert events. Valid values:</p>
* <ul>
* <li><strong>Processing</strong>: The task is running.</li>
* <li><strong>Success</strong>: The task is successful.</li>
* <li><strong>Failure</strong>: The task failed.</li>
* <li><strong>Pending</strong>: The task is pending.</li>
* </ul>
*
* <strong>example:</strong>
* <p>Success</p>
*/
public Builder taskStatus(String taskStatus) {
this.taskStatus = taskStatus;
return this;
}
public SecurityEventOperationStatusResponse build() {
return new SecurityEventOperationStatusResponse(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeSecurityEventOperationsRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeSecurityEventOperationsRequest} extends {@link RequestModel}
*
* <p>DescribeSecurityEventOperationsRequest</p>
*/
public class DescribeSecurityEventOperationsRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Lang")
private String lang;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SecurityEventId")
@com.aliyun.core.annotation.Validation(required = true)
private Long securityEventId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SourceIp")
private String sourceIp;
private DescribeSecurityEventOperationsRequest(Builder builder) {
super(builder);
this.lang = builder.lang;
this.resourceOwnerId = builder.resourceOwnerId;
this.securityEventId = builder.securityEventId;
this.sourceIp = builder.sourceIp;
}
public static Builder builder() {
return new Builder();
}
public static DescribeSecurityEventOperationsRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return lang
*/
public String getLang() {
return this.lang;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
/**
* @return securityEventId
*/
public Long getSecurityEventId() {
return this.securityEventId;
}
/**
* @return sourceIp
*/
public String getSourceIp() {
return this.sourceIp;
}
public static final class Builder extends Request.Builder<DescribeSecurityEventOperationsRequest, Builder> {
private String lang;
private Long resourceOwnerId;
private Long securityEventId;
private String sourceIp;
private Builder() {
super();
}
private Builder(DescribeSecurityEventOperationsRequest request) {
super(request);
this.lang = request.lang;
this.resourceOwnerId = request.resourceOwnerId;
this.securityEventId = request.securityEventId;
this.sourceIp = request.sourceIp;
}
/**
* <p>The language of the content within the request and response. Default value: <strong>zh</strong>. Valid values:</p>
* <ul>
* <li><strong>zh</strong>: Chinese</li>
* <li><strong>en</strong>: English</li>
* </ul>
*
* <strong>example:</strong>
* <p>zh</p>
*/
public Builder lang(String lang) {
this.putQueryParameter("Lang", lang);
this.lang = lang;
return this;
}
/**
* ResourceOwnerId.
*/
public Builder resourceOwnerId(Long resourceOwnerId) {
this.putQueryParameter("ResourceOwnerId", resourceOwnerId);
this.resourceOwnerId = resourceOwnerId;
return this;
}
/**
* <p>The ID of the alert event that you want to handle.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>61352054</p>
*/
public Builder securityEventId(Long securityEventId) {
this.putQueryParameter("SecurityEventId", securityEventId);
this.securityEventId = securityEventId;
return this;
}
/**
* <p>The source IP address of the request.</p>
*
* <strong>example:</strong>
* <p>192.168.XX.XX</p>
*/
public Builder sourceIp(String sourceIp) {
this.putQueryParameter("SourceIp", sourceIp);
this.sourceIp = sourceIp;
return this;
}
@Override
public DescribeSecurityEventOperationsRequest build() {
return new DescribeSecurityEventOperationsRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeSecurityEventOperationsResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeSecurityEventOperationsResponse} extends {@link TeaModel}
*
* <p>DescribeSecurityEventOperationsResponse</p>
*/
public class DescribeSecurityEventOperationsResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private DescribeSecurityEventOperationsResponseBody body;
private DescribeSecurityEventOperationsResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeSecurityEventOperationsResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public DescribeSecurityEventOperationsResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeSecurityEventOperationsResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeSecurityEventOperationsResponseBody body);
@Override
DescribeSecurityEventOperationsResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeSecurityEventOperationsResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeSecurityEventOperationsResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeSecurityEventOperationsResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(DescribeSecurityEventOperationsResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeSecurityEventOperationsResponse build() {
return new DescribeSecurityEventOperationsResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeSecurityEventOperationsResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeSecurityEventOperationsResponseBody} extends {@link TeaModel}
*
* <p>DescribeSecurityEventOperationsResponseBody</p>
*/
public class DescribeSecurityEventOperationsResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("SecurityEventOperationsResponse")
private java.util.List<SecurityEventOperationsResponse> securityEventOperationsResponse;
private DescribeSecurityEventOperationsResponseBody(Builder builder) {
this.requestId = builder.requestId;
this.securityEventOperationsResponse = builder.securityEventOperationsResponse;
}
public static Builder builder() {
return new Builder();
}
public static DescribeSecurityEventOperationsResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return securityEventOperationsResponse
*/
public java.util.List<SecurityEventOperationsResponse> getSecurityEventOperationsResponse() {
return this.securityEventOperationsResponse;
}
public static final class Builder {
private String requestId;
private java.util.List<SecurityEventOperationsResponse> securityEventOperationsResponse;
private Builder() {
}
private Builder(DescribeSecurityEventOperationsResponseBody model) {
this.requestId = model.requestId;
this.securityEventOperationsResponse = model.securityEventOperationsResponse;
}
/**
* <p>The ID of the request, which is used to locate and troubleshoot issues.</p>
*
* <strong>example:</strong>
* <p>B7A2000F-497E-5DA0-B14D-615CD410DD7E</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The operations that are performed to handle the alert.</p>
*/
public Builder securityEventOperationsResponse(java.util.List<SecurityEventOperationsResponse> securityEventOperationsResponse) {
this.securityEventOperationsResponse = securityEventOperationsResponse;
return this;
}
public DescribeSecurityEventOperationsResponseBody build() {
return new DescribeSecurityEventOperationsResponseBody(this);
}
}
/**
*
* {@link DescribeSecurityEventOperationsResponseBody} extends {@link TeaModel}
*
* <p>DescribeSecurityEventOperationsResponseBody</p>
*/
public static class MappingMarkFields extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Description")
private String description;
@com.aliyun.core.annotation.NameInMap("FillType")
private String fillType;
@com.aliyun.core.annotation.NameInMap("MaxLength")
private Integer maxLength;
@com.aliyun.core.annotation.NameInMap("MinLength")
private Integer minLength;
@com.aliyun.core.annotation.NameInMap("Name")
private String name;
@com.aliyun.core.annotation.NameInMap("Required")
private Boolean required;
@com.aliyun.core.annotation.NameInMap("ShowName")
private String showName;
@com.aliyun.core.annotation.NameInMap("ShowValue")
private String showValue;
@com.aliyun.core.annotation.NameInMap("Value")
private String value;
private MappingMarkFields(Builder builder) {
this.description = builder.description;
this.fillType = builder.fillType;
this.maxLength = builder.maxLength;
this.minLength = builder.minLength;
this.name = builder.name;
this.required = builder.required;
this.showName = builder.showName;
this.showValue = builder.showValue;
this.value = builder.value;
}
public static Builder builder() {
return new Builder();
}
public static MappingMarkFields create() {
return builder().build();
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @return fillType
*/
public String getFillType() {
return this.fillType;
}
/**
* @return maxLength
*/
public Integer getMaxLength() {
return this.maxLength;
}
/**
* @return minLength
*/
public Integer getMinLength() {
return this.minLength;
}
/**
* @return name
*/
public String getName() {
return this.name;
}
/**
* @return required
*/
public Boolean getRequired() {
return this.required;
}
/**
* @return showName
*/
public String getShowName() {
return this.showName;
}
/**
* @return showValue
*/
public String getShowValue() {
return this.showValue;
}
/**
* @return value
*/
public String getValue() {
return this.value;
}
public static final class Builder {
private String description;
private String fillType;
private Integer maxLength;
private Integer minLength;
private String name;
private Boolean required;
private String showName;
private String showValue;
private String value;
private Builder() {
}
private Builder(MappingMarkFields model) {
this.description = model.description;
this.fillType = model.fillType;
this.maxLength = model.maxLength;
this.minLength = model.minLength;
this.name = model.name;
this.required = model.required;
this.showName = model.showName;
this.showValue = model.showValue;
this.value = model.value;
}
/**
* <p>The description of the field that is added to the whitelist.</p>
*
* <strong>example:</strong>
* <p>test</p>
*/
public Builder description(String description) {
this.description = description;
return this;
}
/**
* <p>Indicates whether the value of the field can be changed.</p>
* <ul>
* <li><strong>CUSTOM</strong>: The value of the field can be changed.</li>
* <li><strong>SYSTEM</strong>: The value of the field cannot be changed.</li>
* </ul>
*
* <strong>example:</strong>
* <p>CUSTOM</p>
*/
public Builder fillType(String fillType) {
this.fillType = fillType;
return this;
}
/**
* <p>The maximum length of the field that is added to the whitelist.</p>
*
* <strong>example:</strong>
* <p>2048</p>
*/
public Builder maxLength(Integer maxLength) {
this.maxLength = maxLength;
return this;
}
/**
* <p>The minimum length of the field that is added to the whitelist.</p>
*
* <strong>example:</strong>
* <p>1024</p>
*/
public Builder minLength(Integer minLength) {
this.minLength = minLength;
return this;
}
/**
* <p>The name of the field that is added to the whitelist.</p>
*
* <strong>example:</strong>
* <p>pid</p>
*/
public Builder name(String name) {
this.name = name;
return this;
}
/**
* <p>Indicates whether the parameter is required. Valid values:</p>
* <ul>
* <li><strong>true</strong></li>
* <li><strong>false</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder required(Boolean required) {
this.required = required;
return this;
}
/**
* <p>The display name of the field that can be used in the whitelist rule.</p>
*
* <strong>example:</strong>
* <p>pid</p>
*/
public Builder showName(String showName) {
this.showName = showName;
return this;
}
/**
* <p>The display name of the field that is added to the whitelist.</p>
*
* <strong>example:</strong>
* <p>1791</p>
*/
public Builder showValue(String showValue) {
this.showValue = showValue;
return this;
}
/**
* <p>The value of the field that is added to the whitelist.</p>
*
* <strong>example:</strong>
* <p>1791</p>
*/
public Builder value(String value) {
this.value = value;
return this;
}
public MappingMarkFields build() {
return new MappingMarkFields(this);
}
}
}
/**
*
* {@link DescribeSecurityEventOperationsResponseBody} extends {@link TeaModel}
*
* <p>DescribeSecurityEventOperationsResponseBody</p>
*/
public static class MarkField extends TeaModel {
@com.aliyun.core.annotation.NameInMap("FiledAliasName")
private String filedAliasName;
@com.aliyun.core.annotation.NameInMap("FiledName")
private String filedName;
@com.aliyun.core.annotation.NameInMap("MarkMisType")
private String markMisType;
@com.aliyun.core.annotation.NameInMap("MarkMisValue")
private String markMisValue;
@com.aliyun.core.annotation.NameInMap("SupportedMisType")
private java.util.List<String> supportedMisType;
@com.aliyun.core.annotation.NameInMap("Uuid")
private String uuid;
private MarkField(Builder builder) {
this.filedAliasName = builder.filedAliasName;
this.filedName = builder.filedName;
this.markMisType = builder.markMisType;
this.markMisValue = builder.markMisValue;
this.supportedMisType = builder.supportedMisType;
this.uuid = builder.uuid;
}
public static Builder builder() {
return new Builder();
}
public static MarkField create() {
return builder().build();
}
/**
* @return filedAliasName
*/
public String getFiledAliasName() {
return this.filedAliasName;
}
/**
* @return filedName
*/
public String getFiledName() {
return this.filedName;
}
/**
* @return markMisType
*/
public String getMarkMisType() {
return this.markMisType;
}
/**
* @return markMisValue
*/
public String getMarkMisValue() {
return this.markMisValue;
}
/**
* @return supportedMisType
*/
public java.util.List<String> getSupportedMisType() {
return this.supportedMisType;
}
/**
* @return uuid
*/
public String getUuid() {
return this.uuid;
}
public static final class Builder {
private String filedAliasName;
private String filedName;
private String markMisType;
private String markMisValue;
private java.util.List<String> supportedMisType;
private String uuid;
private Builder() {
}
private Builder(MarkField model) {
this.filedAliasName = model.filedAliasName;
this.filedName = model.filedName;
this.markMisType = model.markMisType;
this.markMisValue = model.markMisValue;
this.supportedMisType = model.supportedMisType;
this.uuid = model.uuid;
}
/**
* <p>The alias of the field that is used in the whitelist rule.</p>
*
* <strong>example:</strong>
* <p>file path</p>
*/
public Builder filedAliasName(String filedAliasName) {
this.filedAliasName = filedAliasName;
return this;
}
/**
* <p>The field that is used in the whitelist rule.</p>
*
* <strong>example:</strong>
* <p>gmtModified</p>
*/
public Builder filedName(String filedName) {
this.filedName = filedName;
return this;
}
/**
* <p>The operation that is used in the whitelist rule. Valid values:</p>
* <ul>
* <li><strong>contains</strong>: contains</li>
* <li><strong>notContains</strong>: does not contain</li>
* <li><strong>regex</strong>: regular expression</li>
* <li><strong>strEqual</strong>: equals</li>
* <li><strong>strNotEqual</strong>: does not equal</li>
* </ul>
*
* <strong>example:</strong>
* <p>contains</p>
*/
public Builder markMisType(String markMisType) {
this.markMisType = markMisType;
return this;
}
/**
* <p>The value of the field that is used in the whitelist rule.</p>
*
* <strong>example:</strong>
* <p>2022-04-25 10:11:04</p>
*/
public Builder markMisValue(String markMisValue) {
this.markMisValue = markMisValue;
return this;
}
/**
* <p>An array consisting of the operations that are supported by the method to add the alert event to the whitelist.</p>
*/
public Builder supportedMisType(java.util.List<String> supportedMisType) {
this.supportedMisType = supportedMisType;
return this;
}
/**
* <p>The UUID of the server on which the alert event is detected.</p>
*
* <strong>example:</strong>
* <p>3d6b4a75-c28f-447b-9142-38f6252c****</p>
*/
public Builder uuid(String uuid) {
this.uuid = uuid;
return this;
}
public MarkField build() {
return new MarkField(this);
}
}
}
/**
*
* {@link DescribeSecurityEventOperationsResponseBody} extends {@link TeaModel}
*
* <p>DescribeSecurityEventOperationsResponseBody</p>
*/
public static class MarkFieldsSource extends TeaModel {
@com.aliyun.core.annotation.NameInMap("FiledAliasName")
private String filedAliasName;
@com.aliyun.core.annotation.NameInMap("FiledName")
private String filedName;
@com.aliyun.core.annotation.NameInMap("MarkMisValue")
private String markMisValue;
@com.aliyun.core.annotation.NameInMap("SupportedMisType")
private java.util.List<String> supportedMisType;
private MarkFieldsSource(Builder builder) {
this.filedAliasName = builder.filedAliasName;
this.filedName = builder.filedName;
this.markMisValue = builder.markMisValue;
this.supportedMisType = builder.supportedMisType;
}
public static Builder builder() {
return new Builder();
}
public static MarkFieldsSource create() {
return builder().build();
}
/**
* @return filedAliasName
*/
public String getFiledAliasName() {
return this.filedAliasName;
}
/**
* @return filedName
*/
public String getFiledName() {
return this.filedName;
}
/**
* @return markMisValue
*/
public String getMarkMisValue() {
return this.markMisValue;
}
/**
* @return supportedMisType
*/
public java.util.List<String> getSupportedMisType() {
return this.supportedMisType;
}
public static final class Builder {
private String filedAliasName;
private String filedName;
private String markMisValue;
private java.util.List<String> supportedMisType;
private Builder() {
}
private Builder(MarkFieldsSource model) {
this.filedAliasName = model.filedAliasName;
this.filedName = model.filedName;
this.markMisValue = model.markMisValue;
this.supportedMisType = model.supportedMisType;
}
/**
* <p>The alias of the field that can be used in the whitelist rule.</p>
*
* <strong>example:</strong>
* <p>file path</p>
*/
public Builder filedAliasName(String filedAliasName) {
this.filedAliasName = filedAliasName;
return this;
}
/**
* <p>The field that can be used in the whitelist rule.</p>
*
* <strong>example:</strong>
* <p>gmtModified</p>
*/
public Builder filedName(String filedName) {
this.filedName = filedName;
return this;
}
/**
* <p>The value of the field that can be used in the whitelist rule.</p>
*
* <strong>example:</strong>
* <p>contains</p>
*/
public Builder markMisValue(String markMisValue) {
this.markMisValue = markMisValue;
return this;
}
/**
* <p>An array consisting of the operations that are supported by the method to add the alert event to the whitelist.</p>
*/
public Builder supportedMisType(java.util.List<String> supportedMisType) {
this.supportedMisType = supportedMisType;
return this;
}
public MarkFieldsSource build() {
return new MarkFieldsSource(this);
}
}
}
/**
*
* {@link DescribeSecurityEventOperationsResponseBody} extends {@link TeaModel}
*
* <p>DescribeSecurityEventOperationsResponseBody</p>
*/
public static class SecurityEventOperationsResponse extends TeaModel {
@com.aliyun.core.annotation.NameInMap("MappingMarkFields")
private java.util.List<MappingMarkFields> mappingMarkFields;
@com.aliyun.core.annotation.NameInMap("MarkField")
private java.util.List<MarkField> markField;
@com.aliyun.core.annotation.NameInMap("MarkFieldsSource")
private java.util.List<MarkFieldsSource> markFieldsSource;
@com.aliyun.core.annotation.NameInMap("OperationCode")
private String operationCode;
@com.aliyun.core.annotation.NameInMap("OperationParams")
private String operationParams;
@com.aliyun.core.annotation.NameInMap("UserCanOperate")
private Boolean userCanOperate;
private SecurityEventOperationsResponse(Builder builder) {
this.mappingMarkFields = builder.mappingMarkFields;
this.markField = builder.markField;
this.markFieldsSource = builder.markFieldsSource;
this.operationCode = builder.operationCode;
this.operationParams = builder.operationParams;
this.userCanOperate = builder.userCanOperate;
}
public static Builder builder() {
return new Builder();
}
public static SecurityEventOperationsResponse create() {
return builder().build();
}
/**
* @return mappingMarkFields
*/
public java.util.List<MappingMarkFields> getMappingMarkFields() {
return this.mappingMarkFields;
}
/**
* @return markField
*/
public java.util.List<MarkField> getMarkField() {
return this.markField;
}
/**
* @return markFieldsSource
*/
public java.util.List<MarkFieldsSource> getMarkFieldsSource() {
return this.markFieldsSource;
}
/**
* @return operationCode
*/
public String getOperationCode() {
return this.operationCode;
}
/**
* @return operationParams
*/
public String getOperationParams() {
return this.operationParams;
}
/**
* @return userCanOperate
*/
public Boolean getUserCanOperate() {
return this.userCanOperate;
}
public static final class Builder {
private java.util.List<MappingMarkFields> mappingMarkFields;
private java.util.List<MarkField> markField;
private java.util.List<MarkFieldsSource> markFieldsSource;
private String operationCode;
private String operationParams;
private Boolean userCanOperate;
private Builder() {
}
private Builder(SecurityEventOperationsResponse model) {
this.mappingMarkFields = model.mappingMarkFields;
this.markField = model.markField;
this.markFieldsSource = model.markFieldsSource;
this.operationCode = model.operationCode;
this.operationParams = model.operationParams;
this.userCanOperate = model.userCanOperate;
}
/**
* <p>The objects on which the operations are performed. This parameter is required when you add the alert to the whitelist by configuring precise defense rules.</p>
*/
public Builder mappingMarkFields(java.util.List<MappingMarkFields> mappingMarkFields) {
this.mappingMarkFields = mappingMarkFields;
return this;
}
/**
* <p>The configurations that are used when the value of the OperationCode parameter is <strong>advance_mark_mis_info</strong>.</p>
*/
public Builder markField(java.util.List<MarkField> markField) {
this.markField = markField;
return this;
}
/**
* <p>The configuration items that can be used when the value of the OperationCode parameter is advance_mark_mis_info.</p>
*/
public Builder markFieldsSource(java.util.List<MarkFieldsSource> markFieldsSource) {
this.markFieldsSource = markFieldsSource;
return this;
}
/**
* <p>The operation that is performed to handle the alert. Valid values:</p>
* <ul>
* <li><strong>block_ip</strong>: blocks the source IP address.</li>
* <li><strong>advance_mark_mis_info</strong>: adds the alert to the whitelist.</li>
* <li><strong>ignore</strong>: ignores the alert.</li>
* <li><strong>manual_handled</strong>: marks the alert as manually handled.</li>
* <li><strong>kill_process</strong>: terminates the malicious process.</li>
* <li><strong>cleanup</strong>: performs in-depth virus detection and removal.</li>
* <li><strong>kill_and_quara</strong>: terminates the malicious process and quarantines the source file.</li>
* <li><strong>disable_malicious_defense</strong>: disables the malicious behavior defense feature.</li>
* <li><strong>client_problem_check</strong>: performs troubleshooting.</li>
* <li><strong>quara</strong>: quarantines the source file of the malicious process.</li>
* <li><strong>defense_mark_mis_info</strong>: enables the precise defense feature but disables the notification feature.</li>
* <li><strong>rm_defense_mark_mis_info</strong>: enables the notification feature.</li>
* <li><strong>rm_mark_mis_info</strong>: removes the alert from the whitelist.</li>
* <li><strong>cancle_manual</strong>: cancels marking the alert as manually handled.</li>
* </ul>
*
* <strong>example:</strong>
* <p>advance_mark_mis_info</p>
*/
public Builder operationCode(String operationCode) {
this.operationCode = operationCode;
return this;
}
/**
* <p>The configuration of the operation that is performed to handle the alert.</p>
* <blockquote>
* <p> If the value of the <strong>OperationCode</strong> parameter is <strong>kill_and_quara</strong> or <strong>block_ip</strong>, the OperationParams parameter is required. If the value of the <strong>OperationCode</strong> parameter is a different value, the OperationParams parameter can be left empty.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>{"expireTime":1641566807783}</p>
*/
public Builder operationParams(String operationParams) {
this.operationParams = operationParams;
return this;
}
/**
* <p>Indicates whether you can handle the alert in the current edition of Security Center. Valid values:</p>
* <ul>
* <li><strong>true</strong></li>
* <li><strong>false</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>false</p>
*/
public Builder userCanOperate(Boolean userCanOperate) {
this.userCanOperate = userCanOperate;
return this;
}
public SecurityEventOperationsResponse build() {
return new SecurityEventOperationsResponse(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeSecurityStatInfoRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeSecurityStatInfoRequest} extends {@link RequestModel}
*
* <p>DescribeSecurityStatInfoRequest</p>
*/
public class DescribeSecurityStatInfoRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Lang")
private String lang;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceDirectoryAccountId")
private String resourceDirectoryAccountId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SourceIp")
private String sourceIp;
private DescribeSecurityStatInfoRequest(Builder builder) {
super(builder);
this.lang = builder.lang;
this.resourceDirectoryAccountId = builder.resourceDirectoryAccountId;
this.sourceIp = builder.sourceIp;
}
public static Builder builder() {
return new Builder();
}
public static DescribeSecurityStatInfoRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return lang
*/
public String getLang() {
return this.lang;
}
/**
* @return resourceDirectoryAccountId
*/
public String getResourceDirectoryAccountId() {
return this.resourceDirectoryAccountId;
}
/**
* @return sourceIp
*/
public String getSourceIp() {
return this.sourceIp;
}
public static final class Builder extends Request.Builder<DescribeSecurityStatInfoRequest, Builder> {
private String lang;
private String resourceDirectoryAccountId;
private String sourceIp;
private Builder() {
super();
}
private Builder(DescribeSecurityStatInfoRequest request) {
super(request);
this.lang = request.lang;
this.resourceDirectoryAccountId = request.resourceDirectoryAccountId;
this.sourceIp = request.sourceIp;
}
/**
* <p>The language of the content within the request and response. Default value: <strong>zh</strong>. Valid values:</p>
* <ul>
* <li><strong>zh</strong>: Chinese</li>
* <li><strong>en</strong>: English</li>
* </ul>
*
* <strong>example:</strong>
* <p>zh</p>
*/
public Builder lang(String lang) {
this.putQueryParameter("Lang", lang);
this.lang = lang;
return this;
}
/**
* <p>The ID of the account that is added to the resource directory as a member for multi-account control. You can use this parameter to query the security status of the account.</p>
*
* <strong>example:</strong>
* <p>12345</p>
*/
public Builder resourceDirectoryAccountId(String resourceDirectoryAccountId) {
this.putQueryParameter("ResourceDirectoryAccountId", resourceDirectoryAccountId);
this.resourceDirectoryAccountId = resourceDirectoryAccountId;
return this;
}
/**
* <p>The source IP address of the request.</p>
*
* <strong>example:</strong>
* <p>1.2.XX.XX</p>
*/
public Builder sourceIp(String sourceIp) {
this.putQueryParameter("SourceIp", sourceIp);
this.sourceIp = sourceIp;
return this;
}
@Override
public DescribeSecurityStatInfoRequest build() {
return new DescribeSecurityStatInfoRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeSecurityStatInfoResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeSecurityStatInfoResponse} extends {@link TeaModel}
*
* <p>DescribeSecurityStatInfoResponse</p>
*/
public class DescribeSecurityStatInfoResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private DescribeSecurityStatInfoResponseBody body;
private DescribeSecurityStatInfoResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeSecurityStatInfoResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public DescribeSecurityStatInfoResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeSecurityStatInfoResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeSecurityStatInfoResponseBody body);
@Override
DescribeSecurityStatInfoResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeSecurityStatInfoResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeSecurityStatInfoResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeSecurityStatInfoResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(DescribeSecurityStatInfoResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeSecurityStatInfoResponse build() {
return new DescribeSecurityStatInfoResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeSecurityStatInfoResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeSecurityStatInfoResponseBody} extends {@link TeaModel}
*
* <p>DescribeSecurityStatInfoResponseBody</p>
*/
public class DescribeSecurityStatInfoResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AttackEvent")
private AttackEvent attackEvent;
@com.aliyun.core.annotation.NameInMap("HealthCheck")
private HealthCheck healthCheck;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("SecurityEvent")
private SecurityEvent securityEvent;
@com.aliyun.core.annotation.NameInMap("Success")
private Boolean success;
@com.aliyun.core.annotation.NameInMap("Vulnerability")
private Vulnerability vulnerability;
private DescribeSecurityStatInfoResponseBody(Builder builder) {
this.attackEvent = builder.attackEvent;
this.healthCheck = builder.healthCheck;
this.requestId = builder.requestId;
this.securityEvent = builder.securityEvent;
this.success = builder.success;
this.vulnerability = builder.vulnerability;
}
public static Builder builder() {
return new Builder();
}
public static DescribeSecurityStatInfoResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return attackEvent
*/
public AttackEvent getAttackEvent() {
return this.attackEvent;
}
/**
* @return healthCheck
*/
public HealthCheck getHealthCheck() {
return this.healthCheck;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return securityEvent
*/
public SecurityEvent getSecurityEvent() {
return this.securityEvent;
}
/**
* @return success
*/
public Boolean getSuccess() {
return this.success;
}
/**
* @return vulnerability
*/
public Vulnerability getVulnerability() {
return this.vulnerability;
}
public static final class Builder {
private AttackEvent attackEvent;
private HealthCheck healthCheck;
private String requestId;
private SecurityEvent securityEvent;
private Boolean success;
private Vulnerability vulnerability;
private Builder() {
}
private Builder(DescribeSecurityStatInfoResponseBody model) {
this.attackEvent = model.attackEvent;
this.healthCheck = model.healthCheck;
this.requestId = model.requestId;
this.securityEvent = model.securityEvent;
this.success = model.success;
this.vulnerability = model.vulnerability;
}
/**
* <p>The detailed statistics of attacks.</p>
*/
public Builder attackEvent(AttackEvent attackEvent) {
this.attackEvent = attackEvent;
return this;
}
/**
* <p>The detailed statistics of baseline risk items.</p>
*/
public Builder healthCheck(HealthCheck healthCheck) {
this.healthCheck = healthCheck;
return this;
}
/**
* <p>The ID of the request, which is used to locate and troubleshoot issues.</p>
*
* <strong>example:</strong>
* <p>A3E61730-85E2-4789-8017-B9B1B70F0568</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The detailed statistics of unhandled alerts.</p>
*/
public Builder securityEvent(SecurityEvent securityEvent) {
this.securityEvent = securityEvent;
return this;
}
/**
* <p>Indicates whether the request was successful. Valid values:</p>
* <ul>
* <li><strong>true</strong>: The request was successful.</li>
* <li><strong>false</strong>: The request failed.</li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder success(Boolean success) {
this.success = success;
return this;
}
/**
* <p>The detailed statistics of unfixed vulnerabilities.</p>
*/
public Builder vulnerability(Vulnerability vulnerability) {
this.vulnerability = vulnerability;
return this;
}
public DescribeSecurityStatInfoResponseBody build() {
return new DescribeSecurityStatInfoResponseBody(this);
}
}
/**
*
* {@link DescribeSecurityStatInfoResponseBody} extends {@link TeaModel}
*
* <p>DescribeSecurityStatInfoResponseBody</p>
*/
public static class AttackEvent extends TeaModel {
@com.aliyun.core.annotation.NameInMap("DateArray")
private java.util.List<String> dateArray;
@com.aliyun.core.annotation.NameInMap("TotalCount")
private Integer totalCount;
@com.aliyun.core.annotation.NameInMap("ValueArray")
private java.util.List<String> valueArray;
private AttackEvent(Builder builder) {
this.dateArray = builder.dateArray;
this.totalCount = builder.totalCount;
this.valueArray = builder.valueArray;
}
public static Builder builder() {
return new Builder();
}
public static AttackEvent create() {
return builder().build();
}
/**
* @return dateArray
*/
public java.util.List<String> getDateArray() {
return this.dateArray;
}
/**
* @return totalCount
*/
public Integer getTotalCount() {
return this.totalCount;
}
/**
* @return valueArray
*/
public java.util.List<String> getValueArray() {
return this.valueArray;
}
public static final class Builder {
private java.util.List<String> dateArray;
private Integer totalCount;
private java.util.List<String> valueArray;
private Builder() {
}
private Builder(AttackEvent model) {
this.dateArray = model.dateArray;
this.totalCount = model.totalCount;
this.valueArray = model.valueArray;
}
/**
* <p>The points in time when the number of attacks is collected in the trend chart.</p>
*/
public Builder dateArray(java.util.List<String> dateArray) {
this.dateArray = dateArray;
return this;
}
/**
* <p>The total number of attacks on the current day.</p>
*
* <strong>example:</strong>
* <p>1096</p>
*/
public Builder totalCount(Integer totalCount) {
this.totalCount = totalCount;
return this;
}
/**
* <p>The numbers of attacks at all points in time.</p>
*/
public Builder valueArray(java.util.List<String> valueArray) {
this.valueArray = valueArray;
return this;
}
public AttackEvent build() {
return new AttackEvent(this);
}
}
}
/**
*
* {@link DescribeSecurityStatInfoResponseBody} extends {@link TeaModel}
*
* <p>DescribeSecurityStatInfoResponseBody</p>
*/
public static class HealthCheck extends TeaModel {
@com.aliyun.core.annotation.NameInMap("DateArray")
private java.util.List<String> dateArray;
@com.aliyun.core.annotation.NameInMap("HighCount")
private Integer highCount;
@com.aliyun.core.annotation.NameInMap("HighList")
private java.util.List<String> highList;
@com.aliyun.core.annotation.NameInMap("LevelsOn")
private java.util.List<String> levelsOn;
@com.aliyun.core.annotation.NameInMap("LowCount")
private Integer lowCount;
@com.aliyun.core.annotation.NameInMap("LowList")
private java.util.List<String> lowList;
@com.aliyun.core.annotation.NameInMap("MediumCount")
private Integer mediumCount;
@com.aliyun.core.annotation.NameInMap("MediumList")
private java.util.List<String> mediumList;
@com.aliyun.core.annotation.NameInMap("TimeArray")
private java.util.List<String> timeArray;
@com.aliyun.core.annotation.NameInMap("TotalCount")
private Integer totalCount;
@com.aliyun.core.annotation.NameInMap("ValueArray")
private java.util.List<String> valueArray;
private HealthCheck(Builder builder) {
this.dateArray = builder.dateArray;
this.highCount = builder.highCount;
this.highList = builder.highList;
this.levelsOn = builder.levelsOn;
this.lowCount = builder.lowCount;
this.lowList = builder.lowList;
this.mediumCount = builder.mediumCount;
this.mediumList = builder.mediumList;
this.timeArray = builder.timeArray;
this.totalCount = builder.totalCount;
this.valueArray = builder.valueArray;
}
public static Builder builder() {
return new Builder();
}
public static HealthCheck create() {
return builder().build();
}
/**
* @return dateArray
*/
public java.util.List<String> getDateArray() {
return this.dateArray;
}
/**
* @return highCount
*/
public Integer getHighCount() {
return this.highCount;
}
/**
* @return highList
*/
public java.util.List<String> getHighList() {
return this.highList;
}
/**
* @return levelsOn
*/
public java.util.List<String> getLevelsOn() {
return this.levelsOn;
}
/**
* @return lowCount
*/
public Integer getLowCount() {
return this.lowCount;
}
/**
* @return lowList
*/
public java.util.List<String> getLowList() {
return this.lowList;
}
/**
* @return mediumCount
*/
public Integer getMediumCount() {
return this.mediumCount;
}
/**
* @return mediumList
*/
public java.util.List<String> getMediumList() {
return this.mediumList;
}
/**
* @return timeArray
*/
public java.util.List<String> getTimeArray() {
return this.timeArray;
}
/**
* @return totalCount
*/
public Integer getTotalCount() {
return this.totalCount;
}
/**
* @return valueArray
*/
public java.util.List<String> getValueArray() {
return this.valueArray;
}
public static final class Builder {
private java.util.List<String> dateArray;
private Integer highCount;
private java.util.List<String> highList;
private java.util.List<String> levelsOn;
private Integer lowCount;
private java.util.List<String> lowList;
private Integer mediumCount;
private java.util.List<String> mediumList;
private java.util.List<String> timeArray;
private Integer totalCount;
private java.util.List<String> valueArray;
private Builder() {
}
private Builder(HealthCheck model) {
this.dateArray = model.dateArray;
this.highCount = model.highCount;
this.highList = model.highList;
this.levelsOn = model.levelsOn;
this.lowCount = model.lowCount;
this.lowList = model.lowList;
this.mediumCount = model.mediumCount;
this.mediumList = model.mediumList;
this.timeArray = model.timeArray;
this.totalCount = model.totalCount;
this.valueArray = model.valueArray;
}
/**
* <p>The points in time when data of baseline risk items is collected in the trend chart.</p>
*/
public Builder dateArray(java.util.List<String> dateArray) {
this.dateArray = dateArray;
return this;
}
/**
* <p>The number of baseline risk items that have the high-risk level on the current day.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder highCount(Integer highCount) {
this.highCount = highCount;
return this;
}
/**
* <p>The numbers of baseline risk items that have the high-risk level at all points in time.</p>
*/
public Builder highList(java.util.List<String> highList) {
this.highList = highList;
return this;
}
/**
* <p>The risk levels of baseline risk items.</p>
*/
public Builder levelsOn(java.util.List<String> levelsOn) {
this.levelsOn = levelsOn;
return this;
}
/**
* <p>The number of baseline risk items that have the low-risk level on the current day.</p>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder lowCount(Integer lowCount) {
this.lowCount = lowCount;
return this;
}
/**
* <p>The numbers of baseline risk items that have the low-risk level at all points in time.</p>
*/
public Builder lowList(java.util.List<String> lowList) {
this.lowList = lowList;
return this;
}
/**
* <p>The number of baseline risk items that have the medium-risk level on the current day.</p>
*
* <strong>example:</strong>
* <p>21</p>
*/
public Builder mediumCount(Integer mediumCount) {
this.mediumCount = mediumCount;
return this;
}
/**
* <p>The numbers of baseline risk items that have the medium-risk level at all points in time.</p>
*/
public Builder mediumList(java.util.List<String> mediumList) {
this.mediumList = mediumList;
return this;
}
/**
* <p>The time periods during which data of baseline risk items is collected.</p>
*/
public Builder timeArray(java.util.List<String> timeArray) {
this.timeArray = timeArray;
return this;
}
/**
* <p>The total number of baseline risk items on the current day.</p>
*
* <strong>example:</strong>
* <p>32</p>
*/
public Builder totalCount(Integer totalCount) {
this.totalCount = totalCount;
return this;
}
/**
* <p>The total number of baseline risk items at all points in time.</p>
*/
public Builder valueArray(java.util.List<String> valueArray) {
this.valueArray = valueArray;
return this;
}
public HealthCheck build() {
return new HealthCheck(this);
}
}
}
/**
*
* {@link DescribeSecurityStatInfoResponseBody} extends {@link TeaModel}
*
* <p>DescribeSecurityStatInfoResponseBody</p>
*/
public static class SecurityEvent extends TeaModel {
@com.aliyun.core.annotation.NameInMap("DateArray")
private java.util.List<String> dateArray;
@com.aliyun.core.annotation.NameInMap("LevelsOn")
private java.util.List<String> levelsOn;
@com.aliyun.core.annotation.NameInMap("RemindCount")
private Integer remindCount;
@com.aliyun.core.annotation.NameInMap("RemindList")
private java.util.List<String> remindList;
@com.aliyun.core.annotation.NameInMap("SeriousCount")
private Integer seriousCount;
@com.aliyun.core.annotation.NameInMap("SeriousList")
private java.util.List<String> seriousList;
@com.aliyun.core.annotation.NameInMap("SuspiciousCount")
private Integer suspiciousCount;
@com.aliyun.core.annotation.NameInMap("SuspiciousList")
private java.util.List<String> suspiciousList;
@com.aliyun.core.annotation.NameInMap("TimeArray")
private java.util.List<String> timeArray;
@com.aliyun.core.annotation.NameInMap("TotalCount")
private Integer totalCount;
@com.aliyun.core.annotation.NameInMap("ValueArray")
private java.util.List<String> valueArray;
private SecurityEvent(Builder builder) {
this.dateArray = builder.dateArray;
this.levelsOn = builder.levelsOn;
this.remindCount = builder.remindCount;
this.remindList = builder.remindList;
this.seriousCount = builder.seriousCount;
this.seriousList = builder.seriousList;
this.suspiciousCount = builder.suspiciousCount;
this.suspiciousList = builder.suspiciousList;
this.timeArray = builder.timeArray;
this.totalCount = builder.totalCount;
this.valueArray = builder.valueArray;
}
public static Builder builder() {
return new Builder();
}
public static SecurityEvent create() {
return builder().build();
}
/**
* @return dateArray
*/
public java.util.List<String> getDateArray() {
return this.dateArray;
}
/**
* @return levelsOn
*/
public java.util.List<String> getLevelsOn() {
return this.levelsOn;
}
/**
* @return remindCount
*/
public Integer getRemindCount() {
return this.remindCount;
}
/**
* @return remindList
*/
public java.util.List<String> getRemindList() {
return this.remindList;
}
/**
* @return seriousCount
*/
public Integer getSeriousCount() {
return this.seriousCount;
}
/**
* @return seriousList
*/
public java.util.List<String> getSeriousList() {
return this.seriousList;
}
/**
* @return suspiciousCount
*/
public Integer getSuspiciousCount() {
return this.suspiciousCount;
}
/**
* @return suspiciousList
*/
public java.util.List<String> getSuspiciousList() {
return this.suspiciousList;
}
/**
* @return timeArray
*/
public java.util.List<String> getTimeArray() {
return this.timeArray;
}
/**
* @return totalCount
*/
public Integer getTotalCount() {
return this.totalCount;
}
/**
* @return valueArray
*/
public java.util.List<String> getValueArray() {
return this.valueArray;
}
public static final class Builder {
private java.util.List<String> dateArray;
private java.util.List<String> levelsOn;
private Integer remindCount;
private java.util.List<String> remindList;
private Integer seriousCount;
private java.util.List<String> seriousList;
private Integer suspiciousCount;
private java.util.List<String> suspiciousList;
private java.util.List<String> timeArray;
private Integer totalCount;
private java.util.List<String> valueArray;
private Builder() {
}
private Builder(SecurityEvent model) {
this.dateArray = model.dateArray;
this.levelsOn = model.levelsOn;
this.remindCount = model.remindCount;
this.remindList = model.remindList;
this.seriousCount = model.seriousCount;
this.seriousList = model.seriousList;
this.suspiciousCount = model.suspiciousCount;
this.suspiciousList = model.suspiciousList;
this.timeArray = model.timeArray;
this.totalCount = model.totalCount;
this.valueArray = model.valueArray;
}
/**
* <p>The points in time when data of unhandled alerts is collected in the trend chart.</p>
*/
public Builder dateArray(java.util.List<String> dateArray) {
this.dateArray = dateArray;
return this;
}
/**
* <p>The risk levels of unhandled alerts.</p>
*/
public Builder levelsOn(java.util.List<String> levelsOn) {
this.levelsOn = levelsOn;
return this;
}
/**
* <p>The number of <strong>remind</strong> alerts on the current day.</p>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder remindCount(Integer remindCount) {
this.remindCount = remindCount;
return this;
}
/**
* <p>The numbers of remind alerts at all points in time.</p>
*/
public Builder remindList(java.util.List<String> remindList) {
this.remindList = remindList;
return this;
}
/**
* <p>The number of <strong>serious</strong> alerts on the current day.</p>
*
* <strong>example:</strong>
* <p>404</p>
*/
public Builder seriousCount(Integer seriousCount) {
this.seriousCount = seriousCount;
return this;
}
/**
* <p>The numbers of serious alerts at all points in time.</p>
*/
public Builder seriousList(java.util.List<String> seriousList) {
this.seriousList = seriousList;
return this;
}
/**
* <p>The number of <strong>suspicious</strong> alerts on the current day.</p>
*
* <strong>example:</strong>
* <p>148</p>
*/
public Builder suspiciousCount(Integer suspiciousCount) {
this.suspiciousCount = suspiciousCount;
return this;
}
/**
* <p>The numbers of suspicious alerts at all points in time.</p>
*/
public Builder suspiciousList(java.util.List<String> suspiciousList) {
this.suspiciousList = suspiciousList;
return this;
}
/**
* <p>The time periods during which data of the same alert is collected.</p>
*/
public Builder timeArray(java.util.List<String> timeArray) {
this.timeArray = timeArray;
return this;
}
/**
* <p>The total number of unhandled alerts on the current day.</p>
*
* <strong>example:</strong>
* <p>552</p>
*/
public Builder totalCount(Integer totalCount) {
this.totalCount = totalCount;
return this;
}
/**
* <p>The numbers of unhandled alerts at all points in time.</p>
*/
public Builder valueArray(java.util.List<String> valueArray) {
this.valueArray = valueArray;
return this;
}
public SecurityEvent build() {
return new SecurityEvent(this);
}
}
}
/**
*
* {@link DescribeSecurityStatInfoResponseBody} extends {@link TeaModel}
*
* <p>DescribeSecurityStatInfoResponseBody</p>
*/
public static class Vulnerability extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AsapCount")
private Integer asapCount;
@com.aliyun.core.annotation.NameInMap("AsapList")
private java.util.List<String> asapList;
@com.aliyun.core.annotation.NameInMap("DateArray")
private java.util.List<String> dateArray;
@com.aliyun.core.annotation.NameInMap("LaterCount")
private Integer laterCount;
@com.aliyun.core.annotation.NameInMap("LaterList")
private java.util.List<String> laterList;
@com.aliyun.core.annotation.NameInMap("LevelsOn")
private java.util.List<String> levelsOn;
@com.aliyun.core.annotation.NameInMap("NntfCount")
private Integer nntfCount;
@com.aliyun.core.annotation.NameInMap("NntfList")
private java.util.List<String> nntfList;
@com.aliyun.core.annotation.NameInMap("TimeArray")
private java.util.List<String> timeArray;
@com.aliyun.core.annotation.NameInMap("TotalCount")
private Integer totalCount;
@com.aliyun.core.annotation.NameInMap("ValueArray")
private java.util.List<String> valueArray;
private Vulnerability(Builder builder) {
this.asapCount = builder.asapCount;
this.asapList = builder.asapList;
this.dateArray = builder.dateArray;
this.laterCount = builder.laterCount;
this.laterList = builder.laterList;
this.levelsOn = builder.levelsOn;
this.nntfCount = builder.nntfCount;
this.nntfList = builder.nntfList;
this.timeArray = builder.timeArray;
this.totalCount = builder.totalCount;
this.valueArray = builder.valueArray;
}
public static Builder builder() {
return new Builder();
}
public static Vulnerability create() {
return builder().build();
}
/**
* @return asapCount
*/
public Integer getAsapCount() {
return this.asapCount;
}
/**
* @return asapList
*/
public java.util.List<String> getAsapList() {
return this.asapList;
}
/**
* @return dateArray
*/
public java.util.List<String> getDateArray() {
return this.dateArray;
}
/**
* @return laterCount
*/
public Integer getLaterCount() {
return this.laterCount;
}
/**
* @return laterList
*/
public java.util.List<String> getLaterList() {
return this.laterList;
}
/**
* @return levelsOn
*/
public java.util.List<String> getLevelsOn() {
return this.levelsOn;
}
/**
* @return nntfCount
*/
public Integer getNntfCount() {
return this.nntfCount;
}
/**
* @return nntfList
*/
public java.util.List<String> getNntfList() {
return this.nntfList;
}
/**
* @return timeArray
*/
public java.util.List<String> getTimeArray() {
return this.timeArray;
}
/**
* @return totalCount
*/
public Integer getTotalCount() {
return this.totalCount;
}
/**
* @return valueArray
*/
public java.util.List<String> getValueArray() {
return this.valueArray;
}
public static final class Builder {
private Integer asapCount;
private java.util.List<String> asapList;
private java.util.List<String> dateArray;
private Integer laterCount;
private java.util.List<String> laterList;
private java.util.List<String> levelsOn;
private Integer nntfCount;
private java.util.List<String> nntfList;
private java.util.List<String> timeArray;
private Integer totalCount;
private java.util.List<String> valueArray;
private Builder() {
}
private Builder(Vulnerability model) {
this.asapCount = model.asapCount;
this.asapList = model.asapList;
this.dateArray = model.dateArray;
this.laterCount = model.laterCount;
this.laterList = model.laterList;
this.levelsOn = model.levelsOn;
this.nntfCount = model.nntfCount;
this.nntfList = model.nntfList;
this.timeArray = model.timeArray;
this.totalCount = model.totalCount;
this.valueArray = model.valueArray;
}
/**
* <p>The number of <strong>high-risk</strong> unfixed vulnerabilities on the current day.</p>
*
* <strong>example:</strong>
* <p>109</p>
*/
public Builder asapCount(Integer asapCount) {
this.asapCount = asapCount;
return this;
}
/**
* <p>The numbers of high-risk unfixed vulnerabilities at all points in time.</p>
*/
public Builder asapList(java.util.List<String> asapList) {
this.asapList = asapList;
return this;
}
/**
* <p>The points in time when data of unfixed vulnerabilities is collected in the trend chart.</p>
*/
public Builder dateArray(java.util.List<String> dateArray) {
this.dateArray = dateArray;
return this;
}
/**
* <p>The number of <strong>medium-risk</strong> unfixed vulnerabilities on the current day.</p>
*
* <strong>example:</strong>
* <p>275</p>
*/
public Builder laterCount(Integer laterCount) {
this.laterCount = laterCount;
return this;
}
/**
* <p>The numbers of medium-risk unfixed vulnerabilities at all points in time.</p>
*/
public Builder laterList(java.util.List<String> laterList) {
this.laterList = laterList;
return this;
}
/**
* <p>The risk levels of unfixed vulnerabilities.</p>
*/
public Builder levelsOn(java.util.List<String> levelsOn) {
this.levelsOn = levelsOn;
return this;
}
/**
* <p>The number of <strong>low-risk</strong> unfixed vulnerabilities on the current day.</p>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder nntfCount(Integer nntfCount) {
this.nntfCount = nntfCount;
return this;
}
/**
* <p>The numbers of low-risk unfixed vulnerabilities at all points in time.</p>
*/
public Builder nntfList(java.util.List<String> nntfList) {
this.nntfList = nntfList;
return this;
}
/**
* <p>The time periods during which data of unfixed vulnerabilities is collected.</p>
*/
public Builder timeArray(java.util.List<String> timeArray) {
this.timeArray = timeArray;
return this;
}
/**
* <p>The total number of unfixed vulnerabilities on the current day.</p>
*
* <strong>example:</strong>
* <p>384</p>
*/
public Builder totalCount(Integer totalCount) {
this.totalCount = totalCount;
return this;
}
/**
* <p>The numbers of unfixed vulnerabilities at all points in time.</p>
*/
public Builder valueArray(java.util.List<String> valueArray) {
this.valueArray = valueArray;
return this;
}
public Vulnerability build() {
return new Vulnerability(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeServiceLinkedRoleStatusRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeServiceLinkedRoleStatusRequest} extends {@link RequestModel}
*
* <p>DescribeServiceLinkedRoleStatusRequest</p>
*/
public class DescribeServiceLinkedRoleStatusRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ServiceLinkedRole")
private String serviceLinkedRole;
private DescribeServiceLinkedRoleStatusRequest(Builder builder) {
super(builder);
this.serviceLinkedRole = builder.serviceLinkedRole;
}
public static Builder builder() {
return new Builder();
}
public static DescribeServiceLinkedRoleStatusRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return serviceLinkedRole
*/
public String getServiceLinkedRole() {
return this.serviceLinkedRole;
}
public static final class Builder extends Request.Builder<DescribeServiceLinkedRoleStatusRequest, Builder> {
private String serviceLinkedRole;
private Builder() {
super();
}
private Builder(DescribeServiceLinkedRoleStatusRequest request) {
super(request);
this.serviceLinkedRole = request.serviceLinkedRole;
}
/**
* <p>The service-linked role. Default value: <strong>AliyunServiceRoleForSas</strong>. Valid values:</p>
* <ul>
* <li><strong>AliyunServiceRoleForSas</strong>: the service-linked role of Security Center. Security Center assumes this role to access the resources of other cloud services within your account.</li>
* <li><strong>AliyunServiceRoleForSasCspm</strong>: the service-linked role of Security Center-CSPM. Security Center-CSPM assumes this role to access the resources of other cloud services within your account.</li>
* </ul>
*
* <strong>example:</strong>
* <p>AliyunServiceRoleForSas</p>
*/
public Builder serviceLinkedRole(String serviceLinkedRole) {
this.putQueryParameter("ServiceLinkedRole", serviceLinkedRole);
this.serviceLinkedRole = serviceLinkedRole;
return this;
}
@Override
public DescribeServiceLinkedRoleStatusRequest build() {
return new DescribeServiceLinkedRoleStatusRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeServiceLinkedRoleStatusResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeServiceLinkedRoleStatusResponse} extends {@link TeaModel}
*
* <p>DescribeServiceLinkedRoleStatusResponse</p>
*/
public class DescribeServiceLinkedRoleStatusResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private DescribeServiceLinkedRoleStatusResponseBody body;
private DescribeServiceLinkedRoleStatusResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeServiceLinkedRoleStatusResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public DescribeServiceLinkedRoleStatusResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeServiceLinkedRoleStatusResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeServiceLinkedRoleStatusResponseBody body);
@Override
DescribeServiceLinkedRoleStatusResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeServiceLinkedRoleStatusResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeServiceLinkedRoleStatusResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeServiceLinkedRoleStatusResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(DescribeServiceLinkedRoleStatusResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeServiceLinkedRoleStatusResponse build() {
return new DescribeServiceLinkedRoleStatusResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeServiceLinkedRoleStatusResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeServiceLinkedRoleStatusResponseBody} extends {@link TeaModel}
*
* <p>DescribeServiceLinkedRoleStatusResponseBody</p>
*/
public class DescribeServiceLinkedRoleStatusResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("RoleStatus")
private RoleStatus roleStatus;
private DescribeServiceLinkedRoleStatusResponseBody(Builder builder) {
this.requestId = builder.requestId;
this.roleStatus = builder.roleStatus;
}
public static Builder builder() {
return new Builder();
}
public static DescribeServiceLinkedRoleStatusResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return roleStatus
*/
public RoleStatus getRoleStatus() {
return this.roleStatus;
}
public static final class Builder {
private String requestId;
private RoleStatus roleStatus;
private Builder() {
}
private Builder(DescribeServiceLinkedRoleStatusResponseBody model) {
this.requestId = model.requestId;
this.roleStatus = model.roleStatus;
}
/**
* <p>The ID of the request, which is used to locate and troubleshoot issues.</p>
*
* <strong>example:</strong>
* <p>39CE98F4-88C0-4539-B906-6B542E5C07B9</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The status information about the service-linked role.</p>
*/
public Builder roleStatus(RoleStatus roleStatus) {
this.roleStatus = roleStatus;
return this;
}
public DescribeServiceLinkedRoleStatusResponseBody build() {
return new DescribeServiceLinkedRoleStatusResponseBody(this);
}
}
/**
*
* {@link DescribeServiceLinkedRoleStatusResponseBody} extends {@link TeaModel}
*
* <p>DescribeServiceLinkedRoleStatusResponseBody</p>
*/
public static class RoleStatus extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Status")
private Boolean status;
private RoleStatus(Builder builder) {
this.status = builder.status;
}
public static Builder builder() {
return new Builder();
}
public static RoleStatus create() {
return builder().build();
}
/**
* @return status
*/
public Boolean getStatus() {
return this.status;
}
public static final class Builder {
private Boolean status;
private Builder() {
}
private Builder(RoleStatus model) {
this.status = model.status;
}
/**
* <p>Indicates whether the service-linked role is created. Valid values:</p>
* <ul>
* <li><strong>true</strong>: yes</li>
* <li><strong>false</strong>: no</li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder status(Boolean status) {
this.status = status;
return this;
}
public RoleStatus build() {
return new RoleStatus(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeSimilarEventScenariosRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeSimilarEventScenariosRequest} extends {@link RequestModel}
*
* <p>DescribeSimilarEventScenariosRequest</p>
*/
public class DescribeSimilarEventScenariosRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SecurityEventId")
@com.aliyun.core.annotation.Validation(required = true)
private Long securityEventId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SourceIp")
private String sourceIp;
private DescribeSimilarEventScenariosRequest(Builder builder) {
super(builder);
this.resourceOwnerId = builder.resourceOwnerId;
this.securityEventId = builder.securityEventId;
this.sourceIp = builder.sourceIp;
}
public static Builder builder() {
return new Builder();
}
public static DescribeSimilarEventScenariosRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
/**
* @return securityEventId
*/
public Long getSecurityEventId() {
return this.securityEventId;
}
/**
* @return sourceIp
*/
public String getSourceIp() {
return this.sourceIp;
}
public static final class Builder extends Request.Builder<DescribeSimilarEventScenariosRequest, Builder> {
private Long resourceOwnerId;
private Long securityEventId;
private String sourceIp;
private Builder() {
super();
}
private Builder(DescribeSimilarEventScenariosRequest request) {
super(request);
this.resourceOwnerId = request.resourceOwnerId;
this.securityEventId = request.securityEventId;
this.sourceIp = request.sourceIp;
}
/**
* ResourceOwnerId.
*/
public Builder resourceOwnerId(Long resourceOwnerId) {
this.putQueryParameter("ResourceOwnerId", resourceOwnerId);
this.resourceOwnerId = resourceOwnerId;
return this;
}
/**
* <p>The ID of the alert event.</p>
* <blockquote>
* <p> You can call the <a href="~~DescribeSuspEvents~~">DescribeSuspEvents</a> operation to query the ID of the alert event.</p>
* </blockquote>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>12321</p>
*/
public Builder securityEventId(Long securityEventId) {
this.putQueryParameter("SecurityEventId", securityEventId);
this.securityEventId = securityEventId;
return this;
}
/**
* <p>The source IP address of the request.</p>
*
* <strong>example:</strong>
* <p>1.2.XX.XX</p>
*/
public Builder sourceIp(String sourceIp) {
this.putQueryParameter("SourceIp", sourceIp);
this.sourceIp = sourceIp;
return this;
}
@Override
public DescribeSimilarEventScenariosRequest build() {
return new DescribeSimilarEventScenariosRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeSimilarEventScenariosResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeSimilarEventScenariosResponse} extends {@link TeaModel}
*
* <p>DescribeSimilarEventScenariosResponse</p>
*/
public class DescribeSimilarEventScenariosResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private DescribeSimilarEventScenariosResponseBody body;
private DescribeSimilarEventScenariosResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeSimilarEventScenariosResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public DescribeSimilarEventScenariosResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeSimilarEventScenariosResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeSimilarEventScenariosResponseBody body);
@Override
DescribeSimilarEventScenariosResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeSimilarEventScenariosResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeSimilarEventScenariosResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeSimilarEventScenariosResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(DescribeSimilarEventScenariosResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeSimilarEventScenariosResponse build() {
return new DescribeSimilarEventScenariosResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeSimilarEventScenariosResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeSimilarEventScenariosResponseBody} extends {@link TeaModel}
*
* <p>DescribeSimilarEventScenariosResponseBody</p>
*/
public class DescribeSimilarEventScenariosResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("Scenarios")
private java.util.List<Scenarios> scenarios;
private DescribeSimilarEventScenariosResponseBody(Builder builder) {
this.requestId = builder.requestId;
this.scenarios = builder.scenarios;
}
public static Builder builder() {
return new Builder();
}
public static DescribeSimilarEventScenariosResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return scenarios
*/
public java.util.List<Scenarios> getScenarios() {
return this.scenarios;
}
public static final class Builder {
private String requestId;
private java.util.List<Scenarios> scenarios;
private Builder() {
}
private Builder(DescribeSimilarEventScenariosResponseBody model) {
this.requestId = model.requestId;
this.scenarios = model.scenarios;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>FDF7B8D9-8493-4B90-8D13-E0C1FFCE5F97</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The scenarios in which alerts triggered by the same rule or rules of the same type are handled.</p>
*/
public Builder scenarios(java.util.List<Scenarios> scenarios) {
this.scenarios = scenarios;
return this;
}
public DescribeSimilarEventScenariosResponseBody build() {
return new DescribeSimilarEventScenariosResponseBody(this);
}
}
/**
*
* {@link DescribeSimilarEventScenariosResponseBody} extends {@link TeaModel}
*
* <p>DescribeSimilarEventScenariosResponseBody</p>
*/
public static class Scenarios extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Code")
private String code;
private Scenarios(Builder builder) {
this.code = builder.code;
}
public static Builder builder() {
return new Builder();
}
public static Scenarios create() {
return builder().build();
}
/**
* @return code
*/
public String getCode() {
return this.code;
}
public static final class Builder {
private String code;
private Builder() {
}
private Builder(Scenarios model) {
this.code = model.code;
}
/**
* <p>The code of the scenario. Valid values:</p>
* <ul>
* <li><strong>default</strong>: the same alert type</li>
* <li><strong>same_file_content</strong>: the same file content rule.</li>
* <li><strong>same_ip</strong>: the same IP address rule.</li>
* <li><strong>same_url</strong>: the same URL rule.</li>
* </ul>
*
* <strong>example:</strong>
* <p>same_url</p>
*/
public Builder code(String code) {
this.code = code;
return this;
}
public Scenarios build() {
return new Scenarios(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeSimilarSecurityEventsRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeSimilarSecurityEventsRequest} extends {@link RequestModel}
*
* <p>DescribeSimilarSecurityEventsRequest</p>
*/
public class DescribeSimilarSecurityEventsRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("CurrentPage")
private Integer currentPage;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Lang")
private String lang;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageSize")
private Integer pageSize;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SourceIp")
private String sourceIp;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("TaskId")
@com.aliyun.core.annotation.Validation(required = true)
private Long taskId;
private DescribeSimilarSecurityEventsRequest(Builder builder) {
super(builder);
this.currentPage = builder.currentPage;
this.lang = builder.lang;
this.pageSize = builder.pageSize;
this.resourceOwnerId = builder.resourceOwnerId;
this.sourceIp = builder.sourceIp;
this.taskId = builder.taskId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeSimilarSecurityEventsRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return currentPage
*/
public Integer getCurrentPage() {
return this.currentPage;
}
/**
* @return lang
*/
public String getLang() {
return this.lang;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
/**
* @return sourceIp
*/
public String getSourceIp() {
return this.sourceIp;
}
/**
* @return taskId
*/
public Long getTaskId() {
return this.taskId;
}
public static final class Builder extends Request.Builder<DescribeSimilarSecurityEventsRequest, Builder> {
private Integer currentPage;
private String lang;
private Integer pageSize;
private Long resourceOwnerId;
private String sourceIp;
private Long taskId;
private Builder() {
super();
}
private Builder(DescribeSimilarSecurityEventsRequest request) {
super(request);
this.currentPage = request.currentPage;
this.lang = request.lang;
this.pageSize = request.pageSize;
this.resourceOwnerId = request.resourceOwnerId;
this.sourceIp = request.sourceIp;
this.taskId = request.taskId;
}
/**
* <p>The number of the page to return. Default value: <strong>1</strong>.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder currentPage(Integer currentPage) {
this.putQueryParameter("CurrentPage", currentPage);
this.currentPage = currentPage;
return this;
}
/**
* <p>The language of the content within the request and response. Default value: <strong>zh</strong>. Valid values:</p>
* <ul>
* <li><strong>zh</strong>: Chinese</li>
* <li><strong>en</strong>: English</li>
* </ul>
*
* <strong>example:</strong>
* <p>zh</p>
*/
public Builder lang(String lang) {
this.putQueryParameter("Lang", lang);
this.lang = lang;
return this;
}
/**
* <p>The number of entries to return on each page. Default value: <strong>20</strong>.</p>
*
* <strong>example:</strong>
* <p>20</p>
*/
public Builder pageSize(Integer pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
return this;
}
/**
* ResourceOwnerId.
*/
public Builder resourceOwnerId(Long resourceOwnerId) {
this.putQueryParameter("ResourceOwnerId", resourceOwnerId);
this.resourceOwnerId = resourceOwnerId;
return this;
}
/**
* <p>The source IP address of the request.</p>
*
* <strong>example:</strong>
* <p>1.2.XX.XX</p>
*/
public Builder sourceIp(String sourceIp) {
this.putQueryParameter("SourceIp", sourceIp);
this.sourceIp = sourceIp;
return this;
}
/**
* <p>The task ID. You can call the <a href="~~CreateSimilarSecurityEventsQueryTask~~">CreateSimilarSecurityEventsQueryTask</a> operation to obtain the task ID.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>1689135</p>
*/
public Builder taskId(Long taskId) {
this.putQueryParameter("TaskId", taskId);
this.taskId = taskId;
return this;
}
@Override
public DescribeSimilarSecurityEventsRequest build() {
return new DescribeSimilarSecurityEventsRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeSimilarSecurityEventsResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeSimilarSecurityEventsResponse} extends {@link TeaModel}
*
* <p>DescribeSimilarSecurityEventsResponse</p>
*/
public class DescribeSimilarSecurityEventsResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private DescribeSimilarSecurityEventsResponseBody body;
private DescribeSimilarSecurityEventsResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeSimilarSecurityEventsResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public DescribeSimilarSecurityEventsResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeSimilarSecurityEventsResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeSimilarSecurityEventsResponseBody body);
@Override
DescribeSimilarSecurityEventsResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeSimilarSecurityEventsResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeSimilarSecurityEventsResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeSimilarSecurityEventsResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(DescribeSimilarSecurityEventsResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeSimilarSecurityEventsResponse build() {
return new DescribeSimilarSecurityEventsResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeSimilarSecurityEventsResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeSimilarSecurityEventsResponseBody} extends {@link TeaModel}
*
* <p>DescribeSimilarSecurityEventsResponseBody</p>
*/
public class DescribeSimilarSecurityEventsResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("PageInfo")
private PageInfo pageInfo;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("SecurityEventsResponse")
private java.util.List<SecurityEventsResponse> securityEventsResponse;
private DescribeSimilarSecurityEventsResponseBody(Builder builder) {
this.pageInfo = builder.pageInfo;
this.requestId = builder.requestId;
this.securityEventsResponse = builder.securityEventsResponse;
}
public static Builder builder() {
return new Builder();
}
public static DescribeSimilarSecurityEventsResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return pageInfo
*/
public PageInfo getPageInfo() {
return this.pageInfo;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return securityEventsResponse
*/
public java.util.List<SecurityEventsResponse> getSecurityEventsResponse() {
return this.securityEventsResponse;
}
public static final class Builder {
private PageInfo pageInfo;
private String requestId;
private java.util.List<SecurityEventsResponse> securityEventsResponse;
private Builder() {
}
private Builder(DescribeSimilarSecurityEventsResponseBody model) {
this.pageInfo = model.pageInfo;
this.requestId = model.requestId;
this.securityEventsResponse = model.securityEventsResponse;
}
/**
* <p>The pagination information.</p>
*/
public Builder pageInfo(PageInfo pageInfo) {
this.pageInfo = pageInfo;
return this;
}
/**
* <p>The ID of the request, which is used to locate and troubleshoot issues.</p>
*
* <strong>example:</strong>
* <p>9F4217C8-763F-51EF-84D4-5535E072B2D8</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The information about the alert events that are triggered by the same rule or of the same alert type.</p>
*/
public Builder securityEventsResponse(java.util.List<SecurityEventsResponse> securityEventsResponse) {
this.securityEventsResponse = securityEventsResponse;
return this;
}
public DescribeSimilarSecurityEventsResponseBody build() {
return new DescribeSimilarSecurityEventsResponseBody(this);
}
}
/**
*
* {@link DescribeSimilarSecurityEventsResponseBody} extends {@link TeaModel}
*
* <p>DescribeSimilarSecurityEventsResponseBody</p>
*/
public static class PageInfo extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Count")
private Integer count;
@com.aliyun.core.annotation.NameInMap("CurrentPage")
private Integer currentPage;
@com.aliyun.core.annotation.NameInMap("PageSize")
private Integer pageSize;
@com.aliyun.core.annotation.NameInMap("TotalCount")
private Integer totalCount;
private PageInfo(Builder builder) {
this.count = builder.count;
this.currentPage = builder.currentPage;
this.pageSize = builder.pageSize;
this.totalCount = builder.totalCount;
}
public static Builder builder() {
return new Builder();
}
public static PageInfo create() {
return builder().build();
}
/**
* @return count
*/
public Integer getCount() {
return this.count;
}
/**
* @return currentPage
*/
public Integer getCurrentPage() {
return this.currentPage;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return totalCount
*/
public Integer getTotalCount() {
return this.totalCount;
}
public static final class Builder {
private Integer count;
private Integer currentPage;
private Integer pageSize;
private Integer totalCount;
private Builder() {
}
private Builder(PageInfo model) {
this.count = model.count;
this.currentPage = model.currentPage;
this.pageSize = model.pageSize;
this.totalCount = model.totalCount;
}
/**
* <p>The number of entries returned on the current page.</p>
*
* <strong>example:</strong>
* <p>5</p>
*/
public Builder count(Integer count) {
this.count = count;
return this;
}
/**
* <p>The page number of the returned page.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder currentPage(Integer currentPage) {
this.currentPage = currentPage;
return this;
}
/**
* <p>The number of entries returned per page. Default value: <strong>20</strong>.</p>
*
* <strong>example:</strong>
* <p>20</p>
*/
public Builder pageSize(Integer pageSize) {
this.pageSize = pageSize;
return this;
}
/**
* <p>The total number of entries returned.</p>
*
* <strong>example:</strong>
* <p>5</p>
*/
public Builder totalCount(Integer totalCount) {
this.totalCount = totalCount;
return this;
}
public PageInfo build() {
return new PageInfo(this);
}
}
}
/**
*
* {@link DescribeSimilarSecurityEventsResponseBody} extends {@link TeaModel}
*
* <p>DescribeSimilarSecurityEventsResponseBody</p>
*/
public static class SecurityEventsResponse extends TeaModel {
@com.aliyun.core.annotation.NameInMap("EventName")
private String eventName;
@com.aliyun.core.annotation.NameInMap("EventType")
private String eventType;
@com.aliyun.core.annotation.NameInMap("LastTime")
private Long lastTime;
@com.aliyun.core.annotation.NameInMap("OccurrenceTime")
private Long occurrenceTime;
@com.aliyun.core.annotation.NameInMap("SecurityEventId")
private Long securityEventId;
@com.aliyun.core.annotation.NameInMap("Uuid")
private String uuid;
private SecurityEventsResponse(Builder builder) {
this.eventName = builder.eventName;
this.eventType = builder.eventType;
this.lastTime = builder.lastTime;
this.occurrenceTime = builder.occurrenceTime;
this.securityEventId = builder.securityEventId;
this.uuid = builder.uuid;
}
public static Builder builder() {
return new Builder();
}
public static SecurityEventsResponse create() {
return builder().build();
}
/**
* @return eventName
*/
public String getEventName() {
return this.eventName;
}
/**
* @return eventType
*/
public String getEventType() {
return this.eventType;
}
/**
* @return lastTime
*/
public Long getLastTime() {
return this.lastTime;
}
/**
* @return occurrenceTime
*/
public Long getOccurrenceTime() {
return this.occurrenceTime;
}
/**
* @return securityEventId
*/
public Long getSecurityEventId() {
return this.securityEventId;
}
/**
* @return uuid
*/
public String getUuid() {
return this.uuid;
}
public static final class Builder {
private String eventName;
private String eventType;
private Long lastTime;
private Long occurrenceTime;
private Long securityEventId;
private String uuid;
private Builder() {
}
private Builder(SecurityEventsResponse model) {
this.eventName = model.eventName;
this.eventType = model.eventType;
this.lastTime = model.lastTime;
this.occurrenceTime = model.occurrenceTime;
this.securityEventId = model.securityEventId;
this.uuid = model.uuid;
}
/**
* <p>The name of the alert event.</p>
*
* <strong>example:</strong>
* <p>Trojan</p>
*/
public Builder eventName(String eventName) {
this.eventName = eventName;
return this;
}
/**
* <p>The type of the alert event. Valid values:</p>
* <ul>
* <li>Suspicious Process</li>
* <li>Webshell</li>
* <li>Unusual Logon</li>
* <li>Malicious Software</li>
* <li>Sensitive File Tampering</li>
* <li>Unusual Network Connection</li>
* <li>Other</li>
* <li>Suspicious Account</li>
* <li>Cloud threat detection</li>
* <li>Precision defense</li>
* <li>Application Whitelist</li>
* <li>Persistence</li>
* <li>Web Application Threat Detection</li>
* <li>Malicious scripts</li>
* <li>Malicious Network Activity</li>
* <li>K8s Abnormal Behavior</li>
* <li>Website backdoor (local engine)</li>
* <li>Exploit</li>
* <li>Image Scan</li>
* <li>Trusted exception</li>
* </ul>
* <p>For more information about alert types, see <a href="https://help.aliyun.com/document_detail/68388.html">Overview</a>.</p>
*
* <strong>example:</strong>
* <p>Malicious Software</p>
*/
public Builder eventType(String eventType) {
this.eventType = eventType;
return this;
}
/**
* <p>The timestamp generated when the alert event was last detected. Unit: milliseconds.</p>
*
* <strong>example:</strong>
* <p>1648544361480</p>
*/
public Builder lastTime(Long lastTime) {
this.lastTime = lastTime;
return this;
}
/**
* <p>The timestamp generated when the alert event was first detected. Unit: milliseconds.</p>
*
* <strong>example:</strong>
* <p>1648457961000</p>
*/
public Builder occurrenceTime(Long occurrenceTime) {
this.occurrenceTime = occurrenceTime;
return this;
}
/**
* <p>The ID of the alert event.</p>
*
* <strong>example:</strong>
* <p>158661</p>
*/
public Builder securityEventId(Long securityEventId) {
this.securityEventId = securityEventId;
return this;
}
/**
* <p>The UUID of the server that was affected by the alert event.</p>
*
* <strong>example:</strong>
* <p>qweeqq-13232-daweq-w****</p>
*/
public Builder uuid(String uuid) {
this.uuid = uuid;
return this;
}
public SecurityEventsResponse build() {
return new SecurityEventsResponse(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeSnapshotsRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeSnapshotsRequest} extends {@link RequestModel}
*
* <p>DescribeSnapshotsRequest</p>
*/
public class DescribeSnapshotsRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ApiVersion")
@com.aliyun.core.annotation.Validation(required = true)
private String apiVersion;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("CurrentPage")
private Integer currentPage;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("IsAliYunEcs")
private String isAliYunEcs;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("MachineRegion")
private String machineRegion;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("MachineRemark")
private String machineRemark;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("NextToken")
private String nextToken;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageSize")
@com.aliyun.core.annotation.Validation(required = true)
private Integer pageSize;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("StatusList")
private String statusList;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Uuid")
private String uuid;
private DescribeSnapshotsRequest(Builder builder) {
super(builder);
this.apiVersion = builder.apiVersion;
this.currentPage = builder.currentPage;
this.isAliYunEcs = builder.isAliYunEcs;
this.machineRegion = builder.machineRegion;
this.machineRemark = builder.machineRemark;
this.nextToken = builder.nextToken;
this.pageSize = builder.pageSize;
this.statusList = builder.statusList;
this.uuid = builder.uuid;
}
public static Builder builder() {
return new Builder();
}
public static DescribeSnapshotsRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return apiVersion
*/
public String getApiVersion() {
return this.apiVersion;
}
/**
* @return currentPage
*/
public Integer getCurrentPage() {
return this.currentPage;
}
/**
* @return isAliYunEcs
*/
public String getIsAliYunEcs() {
return this.isAliYunEcs;
}
/**
* @return machineRegion
*/
public String getMachineRegion() {
return this.machineRegion;
}
/**
* @return machineRemark
*/
public String getMachineRemark() {
return this.machineRemark;
}
/**
* @return nextToken
*/
public String getNextToken() {
return this.nextToken;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return statusList
*/
public String getStatusList() {
return this.statusList;
}
/**
* @return uuid
*/
public String getUuid() {
return this.uuid;
}
public static final class Builder extends Request.Builder<DescribeSnapshotsRequest, Builder> {
private String apiVersion;
private Integer currentPage;
private String isAliYunEcs;
private String machineRegion;
private String machineRemark;
private String nextToken;
private Integer pageSize;
private String statusList;
private String uuid;
private Builder() {
super();
}
private Builder(DescribeSnapshotsRequest request) {
super(request);
this.apiVersion = request.apiVersion;
this.currentPage = request.currentPage;
this.isAliYunEcs = request.isAliYunEcs;
this.machineRegion = request.machineRegion;
this.machineRemark = request.machineRemark;
this.nextToken = request.nextToken;
this.pageSize = request.pageSize;
this.statusList = request.statusList;
this.uuid = request.uuid;
}
/**
* <p>The version of the anti-ransomware policy. Valid values:</p>
* <ul>
* <li><strong>1.0.0</strong></li>
* <li><strong>2.0.0</strong></li>
* </ul>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>2.0.0</p>
*/
public Builder apiVersion(String apiVersion) {
this.putQueryParameter("ApiVersion", apiVersion);
this.apiVersion = apiVersion;
return this;
}
/**
* <p>The number of the page to return. Default value: <strong>1</strong>.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder currentPage(Integer currentPage) {
this.putQueryParameter("CurrentPage", currentPage);
this.currentPage = currentPage;
return this;
}
/**
* <p>Specifies whether the server is an Elastic Compute Service (ECS) instance. Valid values:</p>
* <ul>
* <li><strong>true</strong>: yes</li>
* <li><strong>false</strong>: no</li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder isAliYunEcs(String isAliYunEcs) {
this.putQueryParameter("IsAliYunEcs", isAliYunEcs);
this.isAliYunEcs = isAliYunEcs;
return this;
}
/**
* <p>The region in which the server resides.</p>
* <blockquote>
* <p> If the Uuid parameter is not specified, this parameter is required.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>us-east-1</p>
*/
public Builder machineRegion(String machineRegion) {
this.putQueryParameter("MachineRegion", machineRegion);
this.machineRegion = machineRegion;
return this;
}
/**
* <p>The name or IP address of the server.</p>
*
* <strong>example:</strong>
* <p>192.168.XX.XX</p>
*/
public Builder machineRemark(String machineRemark) {
this.putQueryParameter("MachineRemark", machineRemark);
this.machineRemark = machineRemark;
return this;
}
/**
* <p>The starting position of the query. If this parameter is left empty, the query starts from the beginning.</p>
* <blockquote>
* <p> If you call the operation for the first time, you do not need to specify the parameter. The response to the first call contains the token that can be used for the second call. Each subsequent response contains the token that can be used for the next call.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>CAESGgoSChAKDGNvbXBsZXRlVGltZRABCgQiAggAGAAiQAoJAB4SwmEAAAAACjMDLgAAADFTNzMyZDMwMzAzMDM0NzY3YTZjNjI3NjZmNmU3MjcxNjk3NDY5MzY3MjY4****</p>
*/
public Builder nextToken(String nextToken) {
this.putQueryParameter("NextToken", nextToken);
this.nextToken = nextToken;
return this;
}
/**
* <p>The number of entries to return on each page.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>20</p>
*/
public Builder pageSize(Integer pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
return this;
}
/**
* <p>The status of backup snapshots from which data can be restored. Valid values:</p>
* <ul>
* <li><strong>COMPLETE</strong>: complete</li>
* <li><strong>PARTIAL_COMPLETE</strong>: partial complete</li>
* </ul>
*
* <strong>example:</strong>
* <p>["COMPLETE"]</p>
*/
public Builder statusList(String statusList) {
this.putQueryParameter("StatusList", statusList);
this.statusList = statusList;
return this;
}
/**
* <p>The UUID of the server.</p>
* <blockquote>
* <p> You can call the <a href="~~DescribeBackupPolicy~~">DescribeBackupPolicy</a> operation to query the UUIDs of servers.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>061d8042-59ff-416e-bc33-294a1cf5****</p>
*/
public Builder uuid(String uuid) {
this.putQueryParameter("Uuid", uuid);
this.uuid = uuid;
return this;
}
@Override
public DescribeSnapshotsRequest build() {
return new DescribeSnapshotsRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeSnapshotsResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeSnapshotsResponse} extends {@link TeaModel}
*
* <p>DescribeSnapshotsResponse</p>
*/
public class DescribeSnapshotsResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private DescribeSnapshotsResponseBody body;
private DescribeSnapshotsResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeSnapshotsResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public DescribeSnapshotsResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeSnapshotsResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeSnapshotsResponseBody body);
@Override
DescribeSnapshotsResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeSnapshotsResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeSnapshotsResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeSnapshotsResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(DescribeSnapshotsResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeSnapshotsResponse build() {
return new DescribeSnapshotsResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeSnapshotsResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeSnapshotsResponseBody} extends {@link TeaModel}
*
* <p>DescribeSnapshotsResponseBody</p>
*/
public class DescribeSnapshotsResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("PageInfo")
private PageInfo pageInfo;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("Snapshots")
private java.util.List<Snapshots> snapshots;
private DescribeSnapshotsResponseBody(Builder builder) {
this.pageInfo = builder.pageInfo;
this.requestId = builder.requestId;
this.snapshots = builder.snapshots;
}
public static Builder builder() {
return new Builder();
}
public static DescribeSnapshotsResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return pageInfo
*/
public PageInfo getPageInfo() {
return this.pageInfo;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return snapshots
*/
public java.util.List<Snapshots> getSnapshots() {
return this.snapshots;
}
public static final class Builder {
private PageInfo pageInfo;
private String requestId;
private java.util.List<Snapshots> snapshots;
private Builder() {
}
private Builder(DescribeSnapshotsResponseBody model) {
this.pageInfo = model.pageInfo;
this.requestId = model.requestId;
this.snapshots = model.snapshots;
}
/**
* <p>The pagination information.</p>
*/
public Builder pageInfo(PageInfo pageInfo) {
this.pageInfo = pageInfo;
return this;
}
/**
* <p>The ID of the request, which is used to locate and troubleshoot issues.</p>
*
* <strong>example:</strong>
* <p>A4EB8B1C-1DEC-5E18-BCD0-D1BBB393****</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>An array that consists of the backup snapshots.</p>
*/
public Builder snapshots(java.util.List<Snapshots> snapshots) {
this.snapshots = snapshots;
return this;
}
public DescribeSnapshotsResponseBody build() {
return new DescribeSnapshotsResponseBody(this);
}
}
/**
*
* {@link DescribeSnapshotsResponseBody} extends {@link TeaModel}
*
* <p>DescribeSnapshotsResponseBody</p>
*/
public static class PageInfo extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Count")
private Integer count;
@com.aliyun.core.annotation.NameInMap("CurrentPage")
private Integer currentPage;
@com.aliyun.core.annotation.NameInMap("NextToken")
private String nextToken;
@com.aliyun.core.annotation.NameInMap("PageSize")
private Integer pageSize;
@com.aliyun.core.annotation.NameInMap("TotalCount")
private Integer totalCount;
private PageInfo(Builder builder) {
this.count = builder.count;
this.currentPage = builder.currentPage;
this.nextToken = builder.nextToken;
this.pageSize = builder.pageSize;
this.totalCount = builder.totalCount;
}
public static Builder builder() {
return new Builder();
}
public static PageInfo create() {
return builder().build();
}
/**
* @return count
*/
public Integer getCount() {
return this.count;
}
/**
* @return currentPage
*/
public Integer getCurrentPage() {
return this.currentPage;
}
/**
* @return nextToken
*/
public String getNextToken() {
return this.nextToken;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return totalCount
*/
public Integer getTotalCount() {
return this.totalCount;
}
public static final class Builder {
private Integer count;
private Integer currentPage;
private String nextToken;
private Integer pageSize;
private Integer totalCount;
private Builder() {
}
private Builder(PageInfo model) {
this.count = model.count;
this.currentPage = model.currentPage;
this.nextToken = model.nextToken;
this.pageSize = model.pageSize;
this.totalCount = model.totalCount;
}
/**
* <p>The number of entries returned on the current page.</p>
*
* <strong>example:</strong>
* <p>20</p>
*/
public Builder count(Integer count) {
this.count = count;
return this;
}
/**
* <p>The page number of the returned page.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder currentPage(Integer currentPage) {
this.currentPage = currentPage;
return this;
}
/**
* <p>The token that is used to initiate the next call.</p>
*
* <strong>example:</strong>
* <p>CAESGgoSChAKDGNvbXBsZXRlVGltZRABCgQiAggAGAAiQAoJAGYXFWIAAAAACjMDLgAAADFTNzMyZDMwMzAzMDM1Mzc3Njc4MzA2ODY5NmI2YTY1Nzg2NTcxNjE2NDc4****</p>
*/
public Builder nextToken(String nextToken) {
this.nextToken = nextToken;
return this;
}
/**
* <p>The number of entries returned per page.</p>
*
* <strong>example:</strong>
* <p>20</p>
*/
public Builder pageSize(Integer pageSize) {
this.pageSize = pageSize;
return this;
}
/**
* <p>The total number of entries returned.</p>
*
* <strong>example:</strong>
* <p>149</p>
*/
public Builder totalCount(Integer totalCount) {
this.totalCount = totalCount;
return this;
}
public PageInfo build() {
return new PageInfo(this);
}
}
}
/**
*
* {@link DescribeSnapshotsResponseBody} extends {@link TeaModel}
*
* <p>DescribeSnapshotsResponseBody</p>
*/
public static class Snapshots extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ActualBytes")
private Long actualBytes;
@com.aliyun.core.annotation.NameInMap("ActualItems")
private Long actualItems;
@com.aliyun.core.annotation.NameInMap("BytesDone")
private Long bytesDone;
@com.aliyun.core.annotation.NameInMap("BytesTotal")
private Long bytesTotal;
@com.aliyun.core.annotation.NameInMap("ClientId")
private String clientId;
@com.aliyun.core.annotation.NameInMap("ClientVersion")
private String clientVersion;
@com.aliyun.core.annotation.NameInMap("CreatedTime")
private Long createdTime;
@com.aliyun.core.annotation.NameInMap("ErrorFile")
private String errorFile;
@com.aliyun.core.annotation.NameInMap("InstanceId")
private String instanceId;
@com.aliyun.core.annotation.NameInMap("ItemsDone")
private Long itemsDone;
@com.aliyun.core.annotation.NameInMap("ItemsTotal")
private Long itemsTotal;
@com.aliyun.core.annotation.NameInMap("JobId")
private String jobId;
@com.aliyun.core.annotation.NameInMap("ParentSnapshotHash")
private String parentSnapshotHash;
@com.aliyun.core.annotation.NameInMap("Path")
private String path;
@com.aliyun.core.annotation.NameInMap("Paths")
private java.util.List<String> paths;
@com.aliyun.core.annotation.NameInMap("PlanId")
private String planId;
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
@com.aliyun.core.annotation.NameInMap("Retention")
private Long retention;
@com.aliyun.core.annotation.NameInMap("SnapshotHash")
private String snapshotHash;
@com.aliyun.core.annotation.NameInMap("SnapshotId")
private String snapshotId;
@com.aliyun.core.annotation.NameInMap("SourceType")
private String sourceType;
@com.aliyun.core.annotation.NameInMap("Status")
private String status;
@com.aliyun.core.annotation.NameInMap("Uuid")
private String uuid;
@com.aliyun.core.annotation.NameInMap("VaultId")
private String vaultId;
private Snapshots(Builder builder) {
this.actualBytes = builder.actualBytes;
this.actualItems = builder.actualItems;
this.bytesDone = builder.bytesDone;
this.bytesTotal = builder.bytesTotal;
this.clientId = builder.clientId;
this.clientVersion = builder.clientVersion;
this.createdTime = builder.createdTime;
this.errorFile = builder.errorFile;
this.instanceId = builder.instanceId;
this.itemsDone = builder.itemsDone;
this.itemsTotal = builder.itemsTotal;
this.jobId = builder.jobId;
this.parentSnapshotHash = builder.parentSnapshotHash;
this.path = builder.path;
this.paths = builder.paths;
this.planId = builder.planId;
this.regionId = builder.regionId;
this.retention = builder.retention;
this.snapshotHash = builder.snapshotHash;
this.snapshotId = builder.snapshotId;
this.sourceType = builder.sourceType;
this.status = builder.status;
this.uuid = builder.uuid;
this.vaultId = builder.vaultId;
}
public static Builder builder() {
return new Builder();
}
public static Snapshots create() {
return builder().build();
}
/**
* @return actualBytes
*/
public Long getActualBytes() {
return this.actualBytes;
}
/**
* @return actualItems
*/
public Long getActualItems() {
return this.actualItems;
}
/**
* @return bytesDone
*/
public Long getBytesDone() {
return this.bytesDone;
}
/**
* @return bytesTotal
*/
public Long getBytesTotal() {
return this.bytesTotal;
}
/**
* @return clientId
*/
public String getClientId() {
return this.clientId;
}
/**
* @return clientVersion
*/
public String getClientVersion() {
return this.clientVersion;
}
/**
* @return createdTime
*/
public Long getCreatedTime() {
return this.createdTime;
}
/**
* @return errorFile
*/
public String getErrorFile() {
return this.errorFile;
}
/**
* @return instanceId
*/
public String getInstanceId() {
return this.instanceId;
}
/**
* @return itemsDone
*/
public Long getItemsDone() {
return this.itemsDone;
}
/**
* @return itemsTotal
*/
public Long getItemsTotal() {
return this.itemsTotal;
}
/**
* @return jobId
*/
public String getJobId() {
return this.jobId;
}
/**
* @return parentSnapshotHash
*/
public String getParentSnapshotHash() {
return this.parentSnapshotHash;
}
/**
* @return path
*/
public String getPath() {
return this.path;
}
/**
* @return paths
*/
public java.util.List<String> getPaths() {
return this.paths;
}
/**
* @return planId
*/
public String getPlanId() {
return this.planId;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return retention
*/
public Long getRetention() {
return this.retention;
}
/**
* @return snapshotHash
*/
public String getSnapshotHash() {
return this.snapshotHash;
}
/**
* @return snapshotId
*/
public String getSnapshotId() {
return this.snapshotId;
}
/**
* @return sourceType
*/
public String getSourceType() {
return this.sourceType;
}
/**
* @return status
*/
public String getStatus() {
return this.status;
}
/**
* @return uuid
*/
public String getUuid() {
return this.uuid;
}
/**
* @return vaultId
*/
public String getVaultId() {
return this.vaultId;
}
public static final class Builder {
private Long actualBytes;
private Long actualItems;
private Long bytesDone;
private Long bytesTotal;
private String clientId;
private String clientVersion;
private Long createdTime;
private String errorFile;
private String instanceId;
private Long itemsDone;
private Long itemsTotal;
private String jobId;
private String parentSnapshotHash;
private String path;
private java.util.List<String> paths;
private String planId;
private String regionId;
private Long retention;
private String snapshotHash;
private String snapshotId;
private String sourceType;
private String status;
private String uuid;
private String vaultId;
private Builder() {
}
private Builder(Snapshots model) {
this.actualBytes = model.actualBytes;
this.actualItems = model.actualItems;
this.bytesDone = model.bytesDone;
this.bytesTotal = model.bytesTotal;
this.clientId = model.clientId;
this.clientVersion = model.clientVersion;
this.createdTime = model.createdTime;
this.errorFile = model.errorFile;
this.instanceId = model.instanceId;
this.itemsDone = model.itemsDone;
this.itemsTotal = model.itemsTotal;
this.jobId = model.jobId;
this.parentSnapshotHash = model.parentSnapshotHash;
this.path = model.path;
this.paths = model.paths;
this.planId = model.planId;
this.regionId = model.regionId;
this.retention = model.retention;
this.snapshotHash = model.snapshotHash;
this.snapshotId = model.snapshotId;
this.sourceType = model.sourceType;
this.status = model.status;
this.uuid = model.uuid;
this.vaultId = model.vaultId;
}
/**
* <p>The actual data amount of backup snapshots after duplicates are removed. Unit: bytes.</p>
*
* <strong>example:</strong>
* <p>686188****</p>
*/
public Builder actualBytes(Long actualBytes) {
this.actualBytes = actualBytes;
return this;
}
/**
* <p>The actual number of backup objects.</p>
* <blockquote>
* <p> This parameter is available only for file backup.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>123</p>
*/
public Builder actualItems(Long actualItems) {
this.actualItems = actualItems;
return this;
}
/**
* <p>The actual amount of data that is generated by incremental backup. Unit: bytes.</p>
*
* <strong>example:</strong>
* <p>800</p>
*/
public Builder bytesDone(Long bytesDone) {
this.bytesDone = bytesDone;
return this;
}
/**
* <p>The total data amount of the data source. Unit: bytes.</p>
*
* <strong>example:</strong>
* <p>3484541815****</p>
*/
public Builder bytesTotal(Long bytesTotal) {
this.bytesTotal = bytesTotal;
return this;
}
/**
* <p>This parameter is returned only if the value of the <strong>SourceType</strong> parameter is <strong>ECS_FILE</strong>. This parameter indicates the ID of the Hybrid Backup Recovery (HBR) agent.</p>
*
* <strong>example:</strong>
* <p>c-000dbefaw9f7gnbw****</p>
*/
public Builder clientId(String clientId) {
this.clientId = clientId;
return this;
}
/**
* <p>The version of the anti-ransomware agent.</p>
*
* <strong>example:</strong>
* <p>2.10.0</p>
*/
public Builder clientVersion(String clientVersion) {
this.clientVersion = clientVersion;
return this;
}
/**
* <p>The time when the backup snapshot was created. The value is a UNIX timestamp. Unit: seconds.</p>
*
* <strong>example:</strong>
* <p>1646793988</p>
*/
public Builder createdTime(Long createdTime) {
this.createdTime = createdTime;
return this;
}
/**
* <p>The file that records the information about backup failures, including the information about partially completed backup tasks.</p>
*
* <strong>example:</strong>
* <p>s-0008ndhgrflh55i5****.csv</p>
*/
public Builder errorFile(String errorFile) {
this.errorFile = errorFile;
return this;
}
/**
* <p>The ID of the ECS instance.</p>
*
* <strong>example:</strong>
* <p>i-2ze78zfakirgh1yl****</p>
*/
public Builder instanceId(String instanceId) {
this.instanceId = instanceId;
return this;
}
/**
* <p>The number of backup objects.</p>
* <blockquote>
* <p> This parameter is available only for file backup.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>6</p>
*/
public Builder itemsDone(Long itemsDone) {
this.itemsDone = itemsDone;
return this;
}
/**
* <p>The total number of objects in the data source.</p>
* <blockquote>
* <p> This parameter is available only for file backup.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>7</p>
*/
public Builder itemsTotal(Long itemsTotal) {
this.itemsTotal = itemsTotal;
return this;
}
/**
* <p>The ID of the backup task.</p>
*
* <strong>example:</strong>
* <p>job-000a2q5vg6awgo01****</p>
*/
public Builder jobId(String jobId) {
this.jobId = jobId;
return this;
}
/**
* <p>The hash value of the parent backup snapshot.</p>
*
* <strong>example:</strong>
* <p>a0181606689c9562f092b3190bddb8a62bb5a24784424ba2102bc7fe92ae****</p>
*/
public Builder parentSnapshotHash(String parentSnapshotHash) {
this.parentSnapshotHash = parentSnapshotHash;
return this;
}
/**
* <p>This parameter is returned only if the value of the <strong>SourceType</strong> parameter is <strong>ECS_FILE</strong>. This parameter indicates the path to the backup files.</p>
*
* <strong>example:</strong>
* <p>["/home"]</p>
*/
public Builder path(String path) {
this.path = path;
return this;
}
/**
* <p>This parameter is returned only if the value of the <strong>SourceType</strong> parameter is <strong>NAS</strong>. This parameter indicates the path to the backup files.</p>
*/
public Builder paths(java.util.List<String> paths) {
this.paths = paths;
return this;
}
/**
* <p>The ID of the backup plan.</p>
*
* <strong>example:</strong>
* <p>plan-000ee8gh2ljelsnb****</p>
*/
public Builder planId(String planId) {
this.planId = planId;
return this;
}
/**
* <p>The ID of the region in which backup snapshot is stored.</p>
*
* <strong>example:</strong>
* <p>us-east-1</p>
*/
public Builder regionId(String regionId) {
this.regionId = regionId;
return this;
}
/**
* <p>The retention period of the backup snapshot.</p>
*
* <strong>example:</strong>
* <p>7</p>
*/
public Builder retention(Long retention) {
this.retention = retention;
return this;
}
/**
* <p>The hash value of the backup snapshot.</p>
*
* <strong>example:</strong>
* <p>9ee47cf12351e4ddecce8c12f4957d3946cd96fbe24cd4ab264c7200839d****</p>
*/
public Builder snapshotHash(String snapshotHash) {
this.snapshotHash = snapshotHash;
return this;
}
/**
* <p>The ID of the backup snapshot.</p>
*
* <strong>example:</strong>
* <p>s-0003ahfuqpjdztsg****</p>
*/
public Builder snapshotId(String snapshotId) {
this.snapshotId = snapshotId;
return this;
}
/**
* <p>The type of the data source. Valid values:</p>
* <ul>
* <li><strong>ECS_FILE</strong>: ECS files</li>
* <li><strong>OSS</strong>: Object Storage Service (OSS) buckets</li>
* <li><strong>NAS</strong>: File Storage NAS file systems</li>
* <li><strong>OTS_TABLE</strong>: Tablestore instances</li>
* </ul>
*
* <strong>example:</strong>
* <p>ECS_FILE</p>
*/
public Builder sourceType(String sourceType) {
this.sourceType = sourceType;
return this;
}
/**
* <p>The status of backup tasks. Valid values:</p>
* <ul>
* <li><strong>COMPLETE</strong>: complete</li>
* <li><strong>PARTIAL_COMPLETE</strong>: partial complete</li>
* <li><strong>FAILED</strong>: failed</li>
* </ul>
*
* <strong>example:</strong>
* <p>COMPLETE</p>
*/
public Builder status(String status) {
this.status = status;
return this;
}
/**
* <p>The UUID of the server.</p>
*
* <strong>example:</strong>
* <p>d332af48-1269-4a55-a6db-8543a80f****</p>
*/
public Builder uuid(String uuid) {
this.uuid = uuid;
return this;
}
/**
* <p>The ID of the backup vault that stores the backup snapshot.</p>
*
* <strong>example:</strong>
* <p>v-000ccok3zmw7fbzz****</p>
*/
public Builder vaultId(String vaultId) {
this.vaultId = vaultId;
return this;
}
public Snapshots build() {
return new Snapshots(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203 | java-sources/com/aliyun/alibabacloud-sas20181203/5.0.1/com/aliyun/sdk/service/sas20181203/models/DescribeSoarPlaybookTaskDetailRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.sas20181203.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeSoarPlaybookTaskDetailRequest} extends {@link RequestModel}
*
* <p>DescribeSoarPlaybookTaskDetailRequest</p>
*/
public class DescribeSoarPlaybookTaskDetailRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PlaybookId")
@com.aliyun.core.annotation.Validation(required = true)
private Long playbookId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RecordId")
@com.aliyun.core.annotation.Validation(required = true)
private Long recordId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RequestUuid")
@com.aliyun.core.annotation.Validation(required = true)
private String requestUuid;
private DescribeSoarPlaybookTaskDetailRequest(Builder builder) {
super(builder);
this.playbookId = builder.playbookId;
this.recordId = builder.recordId;
this.requestUuid = builder.requestUuid;
}
public static Builder builder() {
return new Builder();
}
public static DescribeSoarPlaybookTaskDetailRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return playbookId
*/
public Long getPlaybookId() {
return this.playbookId;
}
/**
* @return recordId
*/
public Long getRecordId() {
return this.recordId;
}
/**
* @return requestUuid
*/
public String getRequestUuid() {
return this.requestUuid;
}
public static final class Builder extends Request.Builder<DescribeSoarPlaybookTaskDetailRequest, Builder> {
private Long playbookId;
private Long recordId;
private String requestUuid;
private Builder() {
super();
}
private Builder(DescribeSoarPlaybookTaskDetailRequest request) {
super(request);
this.playbookId = request.playbookId;
this.recordId = request.recordId;
this.requestUuid = request.requestUuid;
}
/**
* <p>Playbook ID.</p>
* <blockquote>
* <p>You can obtain this parameter by calling the <a href="https://help.aliyun.com/document_detail/2627461.html">DescribePlaybooks</a> interface.</p>
* </blockquote>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>123</p>
*/
public Builder playbookId(Long playbookId) {
this.putQueryParameter("PlaybookId", playbookId);
this.playbookId = playbookId;
return this;
}
/**
* <p>The vulnerability ID passed when creating the policy task.</p>
* <blockquote>
* <p>You can obtain this parameter by calling the <a href="~~DescribeVulList~~">DescribeVulList</a> interface.</p>
* </blockquote>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>14</p>
*/
public Builder recordId(Long recordId) {
this.putQueryParameter("RecordId", recordId);
this.recordId = recordId;
return this;
}
/**
* <p>UUID of the playbook task execution.</p>
* <blockquote>
* <p>You can obtain this parameter by calling the <a href="https://help.aliyun.com/document_detail/2627455.html">DescribeSoarRecords</a> interface.</p>
* </blockquote>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>a15e37da-abe0-4d87-acd2-024e875a****</p>
*/
public Builder requestUuid(String requestUuid) {
this.putQueryParameter("RequestUuid", requestUuid);
this.requestUuid = requestUuid;
return this;
}
@Override
public DescribeSoarPlaybookTaskDetailRequest build() {
return new DescribeSoarPlaybookTaskDetailRequest(this);
}
}
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.