com.aliyun.sdk.service.cloudapi20160714.models.DescribeInstanceTrafficRequest Maven / Gradle / Ivy
Show all versions of alibabacloud-cloudapi20160714 Show documentation
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.cloudapi20160714.models;
import com.aliyun.core.annotation.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
* {@link DescribeInstanceTrafficRequest} extends {@link RequestModel}
*
* DescribeInstanceTrafficRequest
*/
public class DescribeInstanceTrafficRequest extends Request {
@Query
@NameInMap("EndTime")
@Validation(required = true)
private String endTime;
@Query
@NameInMap("InstanceId")
@Validation(required = true)
private String instanceId;
@Query
@NameInMap("SecurityToken")
private String securityToken;
@Query
@NameInMap("StageName")
@Validation(required = true)
private String stageName;
@Query
@NameInMap("StartTime")
@Validation(required = true)
private String startTime;
private DescribeInstanceTrafficRequest(Builder builder) {
super(builder);
this.endTime = builder.endTime;
this.instanceId = builder.instanceId;
this.securityToken = builder.securityToken;
this.stageName = builder.stageName;
this.startTime = builder.startTime;
}
public static Builder builder() {
return new Builder();
}
public static DescribeInstanceTrafficRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return endTime
*/
public String getEndTime() {
return this.endTime;
}
/**
* @return instanceId
*/
public String getInstanceId() {
return this.instanceId;
}
/**
* @return securityToken
*/
public String getSecurityToken() {
return this.securityToken;
}
/**
* @return stageName
*/
public String getStageName() {
return this.stageName;
}
/**
* @return startTime
*/
public String getStartTime() {
return this.startTime;
}
public static final class Builder extends Request.Builder {
private String endTime;
private String instanceId;
private String securityToken;
private String stageName;
private String startTime;
private Builder() {
super();
}
private Builder(DescribeInstanceTrafficRequest request) {
super(request);
this.endTime = request.endTime;
this.instanceId = request.instanceId;
this.securityToken = request.securityToken;
this.stageName = request.stageName;
this.startTime = request.startTime;
}
/**
* The end time. The time follows the ISO 8601 standard and UTC time is used. Format: YYYY-MM-DDThh:mm:ssZ
*/
public Builder endTime(String endTime) {
this.putQueryParameter("EndTime", endTime);
this.endTime = endTime;
return this;
}
/**
* The ID of the instance.
*/
public Builder instanceId(String instanceId) {
this.putQueryParameter("InstanceId", instanceId);
this.instanceId = instanceId;
return this;
}
/**
* SecurityToken.
*/
public Builder securityToken(String securityToken) {
this.putQueryParameter("SecurityToken", securityToken);
this.securityToken = securityToken;
return this;
}
/**
* The environment in which the API runs. Valid values:
*
*
* * **RELEASE**: the production environment
* * **PRE**: the pre-release environment
* * **TEST: the test environment**
*/
public Builder stageName(String stageName) {
this.putQueryParameter("StageName", stageName);
this.stageName = stageName;
return this;
}
/**
* The start time. The time follows the ISO 8601 standard and UTC time is used. Format: YYYY-MM-DDThh:mm:ssZ
*/
public Builder startTime(String startTime) {
this.putQueryParameter("StartTime", startTime);
this.startTime = startTime;
return this;
}
@Override
public DescribeInstanceTrafficRequest build() {
return new DescribeInstanceTrafficRequest(this);
}
}
}