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

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

The newest version!
// 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 DeploySDGRequest} extends {@link RequestModel}
 *
 * 

DeploySDGRequest

*/ public class DeploySDGRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("DeploymentType") private String deploymentType; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("InstanceIds") @com.aliyun.core.annotation.Validation(required = true) private java.util.List instanceIds; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("SDGId") @com.aliyun.core.annotation.Validation(required = true) private String SDGId; private DeploySDGRequest(Builder builder) { super(builder); this.deploymentType = builder.deploymentType; this.instanceIds = builder.instanceIds; this.SDGId = builder.SDGId; } public static Builder builder() { return new Builder(); } public static DeploySDGRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return deploymentType */ public String getDeploymentType() { return this.deploymentType; } /** * @return instanceIds */ public java.util.List getInstanceIds() { return this.instanceIds; } /** * @return SDGId */ public String getSDGId() { return this.SDGId; } public static final class Builder extends Request.Builder { private String deploymentType; private java.util.List instanceIds; private String SDGId; private Builder() { super(); } private Builder(DeploySDGRequest request) { super(request); this.deploymentType = request.deploymentType; this.instanceIds = request.instanceIds; this.SDGId = request.SDGId; } /** *

The SDG deployment type. Valid values:

*
    *
  • common (default): read/write deployment. Data updates are written to disks.
  • *
  • overlay: read/write splitting deployment. Content in SDGs is read-only. Data updates are written to the local storage of the instance.
  • *
* * example: *

common

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

The IDs of instances on which you want to deploy SDGs. You can deploy SDGs on a maximum of 100 instances at a time.

*

This parameter is required.

*/ public Builder instanceIds(java.util.List instanceIds) { String instanceIdsShrink = shrink(instanceIds, "InstanceIds", "json"); this.putQueryParameter("InstanceIds", instanceIdsShrink); this.instanceIds = instanceIds; return this; } /** *

The SDG ID. This parameter is used to create a disk, which is attached to an instance.

*

This parameter is required.

* * example: *

sdg-xxxxx

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy