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

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

There is a newer version: 6.0.4
Show newest version
// 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 SendFileRequest} extends {@link RequestModel}
 *
 * 

SendFileRequest

*/ public class SendFileRequest extends Request { @Host @NameInMap("SourceRegionId") private String sourceRegionId; @Query @NameInMap("Content") @Validation(required = true) private String content; @Query @NameInMap("ContentType") private String contentType; @Query @NameInMap("Description") private String description; @Query @NameInMap("FileGroup") private String fileGroup; @Query @NameInMap("FileMode") private String fileMode; @Query @NameInMap("FileOwner") private String fileOwner; @Query @NameInMap("InstanceId") @Validation(required = true) private java.util.List < String > instanceId; @Query @NameInMap("Name") @Validation(required = true) private String name; @Query @NameInMap("Overwrite") private Boolean overwrite; @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("TargetDir") @Validation(required = true) private String targetDir; @Query @NameInMap("Timeout") private Long timeout; private SendFileRequest(Builder builder) { super(builder); this.sourceRegionId = builder.sourceRegionId; this.content = builder.content; this.contentType = builder.contentType; this.description = builder.description; this.fileGroup = builder.fileGroup; this.fileMode = builder.fileMode; this.fileOwner = builder.fileOwner; this.instanceId = builder.instanceId; this.name = builder.name; this.overwrite = builder.overwrite; this.ownerAccount = builder.ownerAccount; this.ownerId = builder.ownerId; this.regionId = builder.regionId; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.resourceOwnerId = builder.resourceOwnerId; this.targetDir = builder.targetDir; this.timeout = builder.timeout; } public static Builder builder() { return new Builder(); } public static SendFileRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return sourceRegionId */ public String getSourceRegionId() { return this.sourceRegionId; } /** * @return content */ public String getContent() { return this.content; } /** * @return contentType */ public String getContentType() { return this.contentType; } /** * @return description */ public String getDescription() { return this.description; } /** * @return fileGroup */ public String getFileGroup() { return this.fileGroup; } /** * @return fileMode */ public String getFileMode() { return this.fileMode; } /** * @return fileOwner */ public String getFileOwner() { return this.fileOwner; } /** * @return instanceId */ public java.util.List < String > getInstanceId() { return this.instanceId; } /** * @return name */ public String getName() { return this.name; } /** * @return overwrite */ public Boolean getOverwrite() { return this.overwrite; } /** * @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 targetDir */ public String getTargetDir() { return this.targetDir; } /** * @return timeout */ public Long getTimeout() { return this.timeout; } public static final class Builder extends Request.Builder { private String sourceRegionId; private String content; private String contentType; private String description; private String fileGroup; private String fileMode; private String fileOwner; private java.util.List < String > instanceId; private String name; private Boolean overwrite; private String ownerAccount; private Long ownerId; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private String targetDir; private Long timeout; private Builder() { super(); } private Builder(SendFileRequest request) { super(request); this.sourceRegionId = request.sourceRegionId; this.content = request.content; this.contentType = request.contentType; this.description = request.description; this.fileGroup = request.fileGroup; this.fileMode = request.fileMode; this.fileOwner = request.fileOwner; this.instanceId = request.instanceId; this.name = request.name; this.overwrite = request.overwrite; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.regionId = request.regionId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; this.targetDir = request.targetDir; this.timeout = request.timeout; } /** * SourceRegionId. */ public Builder sourceRegionId(String sourceRegionId) { this.putHostParameter("SourceRegionId", sourceRegionId); this.sourceRegionId = sourceRegionId; return this; } /** * Content. */ public Builder content(String content) { this.putQueryParameter("Content", content); this.content = content; return this; } /** * ContentType. */ public Builder contentType(String contentType) { this.putQueryParameter("ContentType", contentType); this.contentType = contentType; return this; } /** * Description. */ public Builder description(String description) { this.putQueryParameter("Description", description); this.description = description; return this; } /** * FileGroup. */ public Builder fileGroup(String fileGroup) { this.putQueryParameter("FileGroup", fileGroup); this.fileGroup = fileGroup; return this; } /** * FileMode. */ public Builder fileMode(String fileMode) { this.putQueryParameter("FileMode", fileMode); this.fileMode = fileMode; return this; } /** * FileOwner. */ public Builder fileOwner(String fileOwner) { this.putQueryParameter("FileOwner", fileOwner); this.fileOwner = fileOwner; return this; } /** * InstanceId. */ public Builder instanceId(java.util.List < String > instanceId) { this.putQueryParameter("InstanceId", instanceId); this.instanceId = instanceId; return this; } /** * Name. */ public Builder name(String name) { this.putQueryParameter("Name", name); this.name = name; return this; } /** * Overwrite. */ public Builder overwrite(Boolean overwrite) { this.putQueryParameter("Overwrite", overwrite); this.overwrite = overwrite; 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; } /** * RegionId. */ 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; } /** * TargetDir. */ public Builder targetDir(String targetDir) { this.putQueryParameter("TargetDir", targetDir); this.targetDir = targetDir; return this; } /** * Timeout. */ public Builder timeout(Long timeout) { this.putQueryParameter("Timeout", timeout); this.timeout = timeout; return this; } @Override public SendFileRequest build() { return new SendFileRequest(this); } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy