com.aliyun.sdk.service.aliding20230426.models.UpdateInstanceRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of alibabacloud-aliding20230426 Show documentation
Show all versions of alibabacloud-aliding20230426 Show documentation
Alibaba Cloud aliding (20230426) Async SDK for Java
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.aliding20230426.models;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
* {@link UpdateInstanceRequest} extends {@link RequestModel}
*
* UpdateInstanceRequest
*/
public class UpdateInstanceRequest extends Request {
@com.aliyun.core.annotation.Header
@com.aliyun.core.annotation.NameInMap("AccountContext")
private AccountContext accountContext;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("AppType")
private String appType;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("Language")
private String language;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("ProcessInstanceId")
private String processInstanceId;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("SystemToken")
private String systemToken;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("UpdateFormDataJson")
private String updateFormDataJson;
private UpdateInstanceRequest(Builder builder) {
super(builder);
this.accountContext = builder.accountContext;
this.appType = builder.appType;
this.language = builder.language;
this.processInstanceId = builder.processInstanceId;
this.systemToken = builder.systemToken;
this.updateFormDataJson = builder.updateFormDataJson;
}
public static Builder builder() {
return new Builder();
}
public static UpdateInstanceRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return accountContext
*/
public AccountContext getAccountContext() {
return this.accountContext;
}
/**
* @return appType
*/
public String getAppType() {
return this.appType;
}
/**
* @return language
*/
public String getLanguage() {
return this.language;
}
/**
* @return processInstanceId
*/
public String getProcessInstanceId() {
return this.processInstanceId;
}
/**
* @return systemToken
*/
public String getSystemToken() {
return this.systemToken;
}
/**
* @return updateFormDataJson
*/
public String getUpdateFormDataJson() {
return this.updateFormDataJson;
}
public static final class Builder extends Request.Builder {
private AccountContext accountContext;
private String appType;
private String language;
private String processInstanceId;
private String systemToken;
private String updateFormDataJson;
private Builder() {
super();
}
private Builder(UpdateInstanceRequest request) {
super(request);
this.accountContext = request.accountContext;
this.appType = request.appType;
this.language = request.language;
this.processInstanceId = request.processInstanceId;
this.systemToken = request.systemToken;
this.updateFormDataJson = request.updateFormDataJson;
}
/**
* AccountContext.
*/
public Builder accountContext(AccountContext accountContext) {
String accountContextShrink = shrink(accountContext, "AccountContext", "json");
this.putHeaderParameter("AccountContext", accountContextShrink);
this.accountContext = accountContext;
return this;
}
/**
* AppType.
*/
public Builder appType(String appType) {
this.putBodyParameter("AppType", appType);
this.appType = appType;
return this;
}
/**
* Language.
*/
public Builder language(String language) {
this.putBodyParameter("Language", language);
this.language = language;
return this;
}
/**
* ProcessInstanceId.
*/
public Builder processInstanceId(String processInstanceId) {
this.putBodyParameter("ProcessInstanceId", processInstanceId);
this.processInstanceId = processInstanceId;
return this;
}
/**
* SystemToken.
*/
public Builder systemToken(String systemToken) {
this.putBodyParameter("SystemToken", systemToken);
this.systemToken = systemToken;
return this;
}
/**
* UpdateFormDataJson.
*/
public Builder updateFormDataJson(String updateFormDataJson) {
this.putBodyParameter("UpdateFormDataJson", updateFormDataJson);
this.updateFormDataJson = updateFormDataJson;
return this;
}
@Override
public UpdateInstanceRequest build() {
return new UpdateInstanceRequest(this);
}
}
public static class AccountContext extends TeaModel {
@com.aliyun.core.annotation.NameInMap("accountId")
@com.aliyun.core.annotation.Validation(required = true)
private String accountId;
private AccountContext(Builder builder) {
this.accountId = builder.accountId;
}
public static Builder builder() {
return new Builder();
}
public static AccountContext create() {
return builder().build();
}
/**
* @return accountId
*/
public String getAccountId() {
return this.accountId;
}
public static final class Builder {
private String accountId;
/**
* accountId.
*/
public Builder accountId(String accountId) {
this.accountId = accountId;
return this;
}
public AccountContext build() {
return new AccountContext(this);
}
}
}
}