
com.aliyun.sdk.service.cbn20170912.models.DescribeFlowlogsRequest Maven / Gradle / Ivy
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.cbn20170912.models;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
* {@link DescribeFlowlogsRequest} extends {@link RequestModel}
*
* DescribeFlowlogsRequest
*/
public class DescribeFlowlogsRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("CenId")
private String cenId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ClientToken")
private String clientToken;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Description")
private String description;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("FlowLogId")
private String flowLogId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("FlowLogName")
private String flowLogName;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("LogStoreName")
private String logStoreName;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerAccount")
private String ownerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerId")
private Long ownerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageNumber")
private Integer pageNumber;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageSize")
private Integer pageSize;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ProjectName")
private String projectName;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount")
private String resourceOwnerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Status")
private String status;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Tag")
private java.util.List < Tag> tag;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("TransitRouterAttachmentId")
private String transitRouterAttachmentId;
private DescribeFlowlogsRequest(Builder builder) {
super(builder);
this.cenId = builder.cenId;
this.clientToken = builder.clientToken;
this.description = builder.description;
this.flowLogId = builder.flowLogId;
this.flowLogName = builder.flowLogName;
this.logStoreName = builder.logStoreName;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.pageNumber = builder.pageNumber;
this.pageSize = builder.pageSize;
this.projectName = builder.projectName;
this.regionId = builder.regionId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
this.status = builder.status;
this.tag = builder.tag;
this.transitRouterAttachmentId = builder.transitRouterAttachmentId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeFlowlogsRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return cenId
*/
public String getCenId() {
return this.cenId;
}
/**
* @return clientToken
*/
public String getClientToken() {
return this.clientToken;
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @return flowLogId
*/
public String getFlowLogId() {
return this.flowLogId;
}
/**
* @return flowLogName
*/
public String getFlowLogName() {
return this.flowLogName;
}
/**
* @return logStoreName
*/
public String getLogStoreName() {
return this.logStoreName;
}
/**
* @return ownerAccount
*/
public String getOwnerAccount() {
return this.ownerAccount;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return pageNumber
*/
public Integer getPageNumber() {
return this.pageNumber;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return projectName
*/
public String getProjectName() {
return this.projectName;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
/**
* @return status
*/
public String getStatus() {
return this.status;
}
/**
* @return tag
*/
public java.util.List < Tag> getTag() {
return this.tag;
}
/**
* @return transitRouterAttachmentId
*/
public String getTransitRouterAttachmentId() {
return this.transitRouterAttachmentId;
}
public static final class Builder extends Request.Builder {
private String cenId;
private String clientToken;
private String description;
private String flowLogId;
private String flowLogName;
private String logStoreName;
private String ownerAccount;
private Long ownerId;
private Integer pageNumber;
private Integer pageSize;
private String projectName;
private String regionId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private String status;
private java.util.List < Tag> tag;
private String transitRouterAttachmentId;
private Builder() {
super();
}
private Builder(DescribeFlowlogsRequest request) {
super(request);
this.cenId = request.cenId;
this.clientToken = request.clientToken;
this.description = request.description;
this.flowLogId = request.flowLogId;
this.flowLogName = request.flowLogName;
this.logStoreName = request.logStoreName;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.pageNumber = request.pageNumber;
this.pageSize = request.pageSize;
this.projectName = request.projectName;
this.regionId = request.regionId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
this.status = request.status;
this.tag = request.tag;
this.transitRouterAttachmentId = request.transitRouterAttachmentId;
}
/**
* The ID of the Cloud Enterprise Network (CEN) instance.
*/
public Builder cenId(String cenId) {
this.putQueryParameter("CenId", cenId);
this.cenId = cenId;
return this;
}
/**
* The client token that is used to ensure the idempotence of the request.
*
*
* You can use the client to generate the value, but you must make sure that it is unique among all requests. The token can contain only ASCII characters.
*
* > If you do not set this parameter, ClientToken is set to the value of RequestId. The value of RequestId for each API request may be different.
*/
public Builder clientToken(String clientToken) {
this.putQueryParameter("ClientToken", clientToken);
this.clientToken = clientToken;
return this;
}
/**
* The description of the flow log.
*
*
* The description must be 2 to 256 characters in length. It must start with a letter but cannot start with `http://` or `https://`.
*/
public Builder description(String description) {
this.putQueryParameter("Description", description);
this.description = description;
return this;
}
/**
* The ID of the flow log.
*/
public Builder flowLogId(String flowLogId) {
this.putQueryParameter("FlowLogId", flowLogId);
this.flowLogId = flowLogId;
return this;
}
/**
* The name of the flow log.
*
*
* The name must be 2 to 128 characters in length, and can contain letters, digits, periods (.), underscores (\_), and hyphens (-). The name must start with a letter but cannot start with `http://` or `https://`.
*/
public Builder flowLogName(String flowLogName) {
this.putQueryParameter("FlowLogName", flowLogName);
this.flowLogName = flowLogName;
return this;
}
/**
* The name of the Logstore where the flow log is stored.
*
*
* The name must be 3 to 63 characters in length, and can contain lowercase letters, digits, underscores (\_), and hyphens (-). It must start or end with a lowercase letter or a digit.
*/
public Builder logStoreName(String logStoreName) {
this.putQueryParameter("LogStoreName", logStoreName);
this.logStoreName = logStoreName;
return this;
}
/**
* OwnerAccount.
*/
public Builder ownerAccount(String ownerAccount) {
this.putQueryParameter("OwnerAccount", ownerAccount);
this.ownerAccount = ownerAccount;
return this;
}
/**
* OwnerId.
*/
public Builder ownerId(Long ownerId) {
this.putQueryParameter("OwnerId", ownerId);
this.ownerId = ownerId;
return this;
}
/**
* The page number. Default value: **1**.
*/
public Builder pageNumber(Integer pageNumber) {
this.putQueryParameter("PageNumber", pageNumber);
this.pageNumber = pageNumber;
return this;
}
/**
* The number of entries per page. Minimum value: **1**. Default value: **20**.
*/
public Builder pageSize(Integer pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
return this;
}
/**
* The name of the project where the flow log is stored.
*
*
* The name must be 3 to 63 characters in length, and can contain lowercase letters, digits, and hyphens (-). It must start or end with a lowercase letter or a digit.
*/
public Builder projectName(String projectName) {
this.putQueryParameter("ProjectName", projectName);
this.projectName = projectName;
return this;
}
/**
* The ID of the region where the flow log is deployed.
*
*
* You can call the [DescribeChildInstanceRegions](~~132080~~) operation to query the most recent region list.
*/
public Builder regionId(String regionId) {
this.putQueryParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* ResourceOwnerAccount.
*/
public Builder resourceOwnerAccount(String resourceOwnerAccount) {
this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount);
this.resourceOwnerAccount = resourceOwnerAccount;
return this;
}
/**
* ResourceOwnerId.
*/
public Builder resourceOwnerId(Long resourceOwnerId) {
this.putQueryParameter("ResourceOwnerId", resourceOwnerId);
this.resourceOwnerId = resourceOwnerId;
return this;
}
/**
* The status of the flow log. Valid values:
*
*
* * **Active**: The flow log is enabled.
* * **Inactive**: The flow log is disabled.
*/
public Builder status(String status) {
this.putQueryParameter("Status", status);
this.status = status;
return this;
}
/**
* The information about the tags.
*
*
* You can specify at most 20 tags in each call.
*/
public Builder tag(java.util.List < Tag> tag) {
this.putQueryParameter("Tag", tag);
this.tag = tag;
return this;
}
/**
* The ID of the network instance connection.
*/
public Builder transitRouterAttachmentId(String transitRouterAttachmentId) {
this.putQueryParameter("TransitRouterAttachmentId", transitRouterAttachmentId);
this.transitRouterAttachmentId = transitRouterAttachmentId;
return this;
}
@Override
public DescribeFlowlogsRequest build() {
return new DescribeFlowlogsRequest(this);
}
}
public static class Tag extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Key")
private String key;
@com.aliyun.core.annotation.NameInMap("Value")
private String value;
private Tag(Builder builder) {
this.key = builder.key;
this.value = builder.value;
}
public static Builder builder() {
return new Builder();
}
public static Tag create() {
return builder().build();
}
/**
* @return key
*/
public String getKey() {
return this.key;
}
/**
* @return value
*/
public String getValue() {
return this.value;
}
public static final class Builder {
private String key;
private String value;
/**
* The tag key.
*
*
* The tag key cannot be an empty string. The tag key can be up to 64 characters in length and cannot start with `acs:` or `aliyun`. It cannot contain `http://` or `https://`.
*
* You can specify at most 20 tag keys.
*/
public Builder key(String key) {
this.key = key;
return this;
}
/**
* The tag value.
*
*
* The tag value can be 0 to 128 characters in length, and cannot start with `aliyun` or `acs:`. It cannot contain `http://` or `https://`.
*
* Each tag key must have a unique tag value. You can specify at most 20 tag values in each call.
*/
public Builder value(String value) {
this.value = value;
return this;
}
public Tag build() {
return new Tag(this);
}
}
}
}