public static final class SendFileRequest.Builder extends Object
限定符和类型 | 方法和说明 |
---|---|
SendFileRequest |
build() |
SendFileRequest.Builder |
content(String content)
The content of the file.
|
SendFileRequest.Builder |
contentType(String contentType)
The content type of the file.
|
SendFileRequest.Builder |
description(String description)
The description of the file.
|
SendFileRequest.Builder |
fileGroup(String fileGroup)
The group of the file.
|
SendFileRequest.Builder |
fileMode(String fileMode)
The permissions on the file.
|
SendFileRequest.Builder |
fileOwner(String fileOwner)
The owner of the file.
|
SendFileRequest.Builder |
instanceId(List<String> instanceId)
The IDs of instances to which to send the file.
|
SendFileRequest.Builder |
name(String name)
The name of the file.
|
SendFileRequest.Builder |
overwrite(Boolean overwrite)
Specifies whether to overwrite a file in the destination directory if the file has the same name as the sent file.
|
SendFileRequest.Builder |
ownerAccount(String ownerAccount)
OwnerAccount.
|
SendFileRequest.Builder |
ownerId(Long ownerId)
OwnerId.
|
SendFileRequest.Builder |
regionId(String regionId)
The region ID of the instance to which to send the file.
|
SendFileRequest.Builder |
resourceGroupId(String resourceGroupId)
The ID of the resource group.
|
SendFileRequest.Builder |
resourceOwnerAccount(String resourceOwnerAccount)
ResourceOwnerAccount.
|
SendFileRequest.Builder |
resourceOwnerId(Long resourceOwnerId)
ResourceOwnerId.
|
SendFileRequest.Builder |
sourceRegionId(String sourceRegionId)
SourceRegionId.
|
SendFileRequest.Builder |
tag(List<SendFileRequest.Tag> tag)
The tags to add to the file sending task.
|
SendFileRequest.Builder |
targetDir(String targetDir)
The destination directory on the instance to which to send the file.
|
SendFileRequest.Builder |
timeout(Long timeout)
The timeout period for the file sending task.
|
public SendFileRequest.Builder sourceRegionId(String sourceRegionId)
public SendFileRequest.Builder content(String content)
* If `ContentType` is set to `PlainText`, the value of Content is in plaintext. * If `ContentType` is set to `Base64`, the value of Content is Base64-encoded.
public SendFileRequest.Builder contentType(String contentType)
* PlainText: The file content is not encoded. * Base64: The file content is encoded in Base64. Default value: PlainText.
public SendFileRequest.Builder description(String description)
public SendFileRequest.Builder fileGroup(String fileGroup)
> If you want to use a non-root user group, make sure that the user group exists in the instances.
public SendFileRequest.Builder fileMode(String fileMode)
Default value: 0644, which indicates that the owner of the file has the read and write permissions on the file and that the user group of the file and other users have the read-only permissions on the file.
public SendFileRequest.Builder fileOwner(String fileOwner)
> If you want to use a non-root user, make sure that the user exists in the instances.
public SendFileRequest.Builder instanceId(List<String> instanceId)
public SendFileRequest.Builder name(String name)
public SendFileRequest.Builder overwrite(Boolean overwrite)
* true * false Default value: false.
public SendFileRequest.Builder ownerAccount(String ownerAccount)
public SendFileRequest.Builder ownerId(Long ownerId)
public SendFileRequest.Builder regionId(String regionId)
public SendFileRequest.Builder resourceGroupId(String resourceGroupId)
* The instance specified by the InstanceId parameter must belong to the specified resource group. * If you specify this parameter, you can call the [DescribeSendFileResults](~~184117~~) operation to query file sending results in the specified resource group.
public SendFileRequest.Builder resourceOwnerAccount(String resourceOwnerAccount)
public SendFileRequest.Builder resourceOwnerId(Long resourceOwnerId)
public SendFileRequest.Builder tag(List<SendFileRequest.Tag> tag)
public SendFileRequest.Builder targetDir(String targetDir)
public SendFileRequest.Builder timeout(Long timeout)
* A timeout error occurs when a file cannot be sent because the process slows down or because a specific module or Cloud Assistant Agent does not exist. * If the specified timeout period is less than 10 seconds, the system sets the timeout period to 10 seconds to ensure that the file can be sent to the instances. Default value: 60.
public SendFileRequest build()
Copyright © 2024. All rights reserved.