com.aliyun.sdk.service.dyvmsapi20170525.models.ExecuteCallTaskRequest Maven / Gradle / Ivy
Show all versions of alibabacloud-dyvmsapi20170525 Show documentation
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.dyvmsapi20170525.models;
import com.aliyun.core.annotation.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
* {@link ExecuteCallTaskRequest} extends {@link RequestModel}
*
* ExecuteCallTaskRequest
*/
public class ExecuteCallTaskRequest extends Request {
@Query
@NameInMap("FireTime")
private String fireTime;
@Query
@NameInMap("OwnerId")
private Long ownerId;
@Query
@NameInMap("ResourceOwnerAccount")
private String resourceOwnerAccount;
@Query
@NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
@Query
@NameInMap("Status")
@Validation(required = true)
private String status;
@Query
@NameInMap("TaskId")
@Validation(required = true)
private Long taskId;
private ExecuteCallTaskRequest(Builder builder) {
super(builder);
this.fireTime = builder.fireTime;
this.ownerId = builder.ownerId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
this.status = builder.status;
this.taskId = builder.taskId;
}
public static Builder builder() {
return new Builder();
}
public static ExecuteCallTaskRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return fireTime
*/
public String getFireTime() {
return this.fireTime;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @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 taskId
*/
public Long getTaskId() {
return this.taskId;
}
public static final class Builder extends Request.Builder {
private String fireTime;
private Long ownerId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private String status;
private Long taskId;
private Builder() {
super();
}
private Builder(ExecuteCallTaskRequest request) {
super(request);
this.fireTime = request.fireTime;
this.ownerId = request.ownerId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
this.status = request.status;
this.taskId = request.taskId;
}
/**
* The time when the call task is executed, in the yyyy-MM-dd HH:mm:ss format.
*
*
* > You can leave this parameter empty.
*/
public Builder fireTime(String fireTime) {
this.putQueryParameter("FireTime", fireTime);
this.fireTime = fireTime;
return this;
}
/**
* OwnerId.
*/
public Builder ownerId(Long ownerId) {
this.putQueryParameter("OwnerId", ownerId);
this.ownerId = ownerId;
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 task state. Valid values:
*
*
* * **RUNNING**
* * **STOP**
* * **CANCEL**
*/
public Builder status(String status) {
this.putQueryParameter("Status", status);
this.status = status;
return this;
}
/**
* The task ID. You can call the [CreateCallTask](~~CreateCallTask~~) operation to obtain the task ID.
*/
public Builder taskId(Long taskId) {
this.putQueryParameter("TaskId", taskId);
this.taskId = taskId;
return this;
}
@Override
public ExecuteCallTaskRequest build() {
return new ExecuteCallTaskRequest(this);
}
}
}