All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.aliyun.sdk.service.ens20171110.models.RollbackApplicationRequest Maven / Gradle / Ivy

// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.ens20171110.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 RollbackApplicationRequest} extends {@link RequestModel}
 *
 * 

RollbackApplicationRequest

*/ public class RollbackApplicationRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("AppId") @com.aliyun.core.annotation.Validation(required = true) private String appId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("FromAppVersion") @com.aliyun.core.annotation.Validation(required = true) private String fromAppVersion; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Timeout") private Integer timeout; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ToAppVersion") private String toAppVersion; private RollbackApplicationRequest(Builder builder) { super(builder); this.appId = builder.appId; this.fromAppVersion = builder.fromAppVersion; this.timeout = builder.timeout; this.toAppVersion = builder.toAppVersion; } public static Builder builder() { return new Builder(); } public static RollbackApplicationRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return appId */ public String getAppId() { return this.appId; } /** * @return fromAppVersion */ public String getFromAppVersion() { return this.fromAppVersion; } /** * @return timeout */ public Integer getTimeout() { return this.timeout; } /** * @return toAppVersion */ public String getToAppVersion() { return this.toAppVersion; } public static final class Builder extends Request.Builder { private String appId; private String fromAppVersion; private Integer timeout; private String toAppVersion; private Builder() { super(); } private Builder(RollbackApplicationRequest request) { super(request); this.appId = request.appId; this.fromAppVersion = request.fromAppVersion; this.timeout = request.timeout; this.toAppVersion = request.toAppVersion; } /** *

The ID of the application.

*

This parameter is required.

* * example: *

474bdef0-d149-4695-abfb-52912d91****

*/ public Builder appId(String appId) { this.putQueryParameter("AppId", appId); this.appId = appId; return this; } /** *

The current version number.

*

This parameter is required.

* * example: *

v2-1

*/ public Builder fromAppVersion(String fromAppVersion) { this.putQueryParameter("FromAppVersion", fromAppVersion); this.fromAppVersion = fromAppVersion; return this; } /** *

The timeout period of the asynchronous rollback operation. Unit: seconds. Default value: 300.

* * example: *

1800

*/ public Builder timeout(Integer timeout) { this.putQueryParameter("Timeout", timeout); this.timeout = timeout; return this; } /** *

The target version number. By default, the system automatically rolls back the container version to the previous version.

* * example: *

v2

*/ public Builder toAppVersion(String toAppVersion) { this.putQueryParameter("ToAppVersion", toAppVersion); this.toAppVersion = toAppVersion; return this; } @Override public RollbackApplicationRequest build() { return new RollbackApplicationRequest(this); } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy