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

com.aliyun.sdk.service.ecs20140526.models.ModifyCommandRequest Maven / Gradle / Ivy

// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.ecs20140526.models;

import com.aliyun.core.annotation.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;

/**
 * {@link ModifyCommandRequest} extends {@link RequestModel}
 *
 * 

ModifyCommandRequest

*/ public class ModifyCommandRequest extends Request { @Host @NameInMap("SourceRegionId") private String sourceRegionId; @Query @NameInMap("CommandContent") private String commandContent; @Query @NameInMap("CommandId") @Validation(required = true) private String commandId; @Query @NameInMap("Description") private String description; @Query @NameInMap("Name") private String name; @Query @NameInMap("OwnerAccount") private String ownerAccount; @Query @NameInMap("OwnerId") private Long ownerId; @Query @NameInMap("RegionId") @Validation(required = true) private String regionId; @Query @NameInMap("ResourceOwnerAccount") private String resourceOwnerAccount; @Query @NameInMap("ResourceOwnerId") private Long resourceOwnerId; @Query @NameInMap("Timeout") private Long timeout; @Query @NameInMap("WorkingDir") private String workingDir; private ModifyCommandRequest(Builder builder) { super(builder); this.sourceRegionId = builder.sourceRegionId; this.commandContent = builder.commandContent; this.commandId = builder.commandId; this.description = builder.description; this.name = builder.name; this.ownerAccount = builder.ownerAccount; this.ownerId = builder.ownerId; this.regionId = builder.regionId; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.resourceOwnerId = builder.resourceOwnerId; this.timeout = builder.timeout; this.workingDir = builder.workingDir; } public static Builder builder() { return new Builder(); } public static ModifyCommandRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return sourceRegionId */ public String getSourceRegionId() { return this.sourceRegionId; } /** * @return commandContent */ public String getCommandContent() { return this.commandContent; } /** * @return commandId */ public String getCommandId() { return this.commandId; } /** * @return description */ public String getDescription() { return this.description; } /** * @return name */ public String getName() { return this.name; } /** * @return ownerAccount */ public String getOwnerAccount() { return this.ownerAccount; } /** * @return ownerId */ public Long getOwnerId() { return this.ownerId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceOwnerAccount */ public String getResourceOwnerAccount() { return this.resourceOwnerAccount; } /** * @return resourceOwnerId */ public Long getResourceOwnerId() { return this.resourceOwnerId; } /** * @return timeout */ public Long getTimeout() { return this.timeout; } /** * @return workingDir */ public String getWorkingDir() { return this.workingDir; } public static final class Builder extends Request.Builder { private String sourceRegionId; private String commandContent; private String commandId; private String description; private String name; private String ownerAccount; private Long ownerId; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private Long timeout; private String workingDir; private Builder() { super(); } private Builder(ModifyCommandRequest request) { super(request); this.sourceRegionId = request.sourceRegionId; this.commandContent = request.commandContent; this.commandId = request.commandId; this.description = request.description; this.name = request.name; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.regionId = request.regionId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; this.timeout = request.timeout; this.workingDir = request.workingDir; } /** * SourceRegionId. */ public Builder sourceRegionId(String sourceRegionId) { this.putHostParameter("SourceRegionId", sourceRegionId); this.sourceRegionId = sourceRegionId; return this; } /** * The command content. The command content can be plaintext or Base64-encoded. Take note of the following items: *

* * * The Base64-encoded command content can be up to 16 KB in size. * * * If the command content is Base64-encoded, set `ContentEncoding` to Base64. * * * If you set `EnableParameter` to true, the custom parameter feature is enabled and you can specify custom parameters based on the following rules: * * * Specify custom parameters in the `{{}}` format. When parameter names are enclosed in `{{}}`, the spaces and line feeds before and after the parameter names are ignored. * * You can specify up to 20 custom parameters. * * A custom parameter name can contain only letters, digits, underscores (\_), and hyphens (-). The name is not case-sensitive. * * Each custom parameter name cannot exceed 64 bytes in length. */ public Builder commandContent(String commandContent) { this.putQueryParameter("CommandContent", commandContent); this.commandContent = commandContent; return this; } /** * The command ID. You can call the [DescribeCommands](~~64843~~) operation to query all available command IDs. */ public Builder commandId(String commandId) { this.putQueryParameter("CommandId", commandId); this.commandId = commandId; return this; } /** * The command description. The description supports all character sets and can be up to 512 characters in length. */ public Builder description(String description) { this.putQueryParameter("Description", description); this.description = description; return this; } /** * The command name. The name supports all character sets and can be up to 128 characters in length. */ public Builder name(String name) { this.putQueryParameter("Name", name); this.name = name; return this; } /** * OwnerAccount. */ public Builder ownerAccount(String ownerAccount) { this.putQueryParameter("OwnerAccount", ownerAccount); this.ownerAccount = ownerAccount; return this; } /** * OwnerId. */ public Builder ownerId(Long ownerId) { this.putQueryParameter("OwnerId", ownerId); this.ownerId = ownerId; return this; } /** * The region ID of the command. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list. */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; 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 maximum timeout period for the command to be run on the instance. Unit: seconds. When a command cannot run within the specified time range, the command times out. Then, the command process is forcibly terminated by canceling the process ID (PID) of the command. */ public Builder timeout(Long timeout) { this.putQueryParameter("Timeout", timeout); this.timeout = timeout; return this; } /** * The working directory of the command. */ public Builder workingDir(String workingDir) { this.putQueryParameter("WorkingDir", workingDir); this.workingDir = workingDir; return this; } @Override public ModifyCommandRequest build() { return new ModifyCommandRequest(this); } } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy