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

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

There is a newer version: 5.0.29
Show newest version
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.ecs20140526.models;

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

/**
 * 
 * {@link DescribeSendFileResultsResponseBody} extends {@link TeaModel}
 *
 * 

DescribeSendFileResultsResponseBody

*/ public class DescribeSendFileResultsResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("Invocations") private Invocations invocations; @com.aliyun.core.annotation.NameInMap("NextToken") private String nextToken; @com.aliyun.core.annotation.NameInMap("PageNumber") private Long pageNumber; @com.aliyun.core.annotation.NameInMap("PageSize") private Long pageSize; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("TotalCount") private Long totalCount; private DescribeSendFileResultsResponseBody(Builder builder) { this.invocations = builder.invocations; this.nextToken = builder.nextToken; this.pageNumber = builder.pageNumber; this.pageSize = builder.pageSize; this.requestId = builder.requestId; this.totalCount = builder.totalCount; } public static Builder builder() { return new Builder(); } public static DescribeSendFileResultsResponseBody create() { return builder().build(); } /** * @return invocations */ public Invocations getInvocations() { return this.invocations; } /** * @return nextToken */ public String getNextToken() { return this.nextToken; } /** * @return pageNumber */ public Long getPageNumber() { return this.pageNumber; } /** * @return pageSize */ public Long getPageSize() { return this.pageSize; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return totalCount */ public Long getTotalCount() { return this.totalCount; } public static final class Builder { private Invocations invocations; private String nextToken; private Long pageNumber; private Long pageSize; private String requestId; private Long totalCount; /** *

The file sending records.

*/ public Builder invocations(Invocations invocations) { this.invocations = invocations; return this; } /** *

A pagination token. It can be used in the next request to retrieve a new page of results.

* * example: *

AAAAAdDWBF2

*/ public Builder nextToken(String nextToken) { this.nextToken = nextToken; return this; } /** *

The page number.

* * example: *

1

*/ public Builder pageNumber(Long pageNumber) { this.pageNumber = pageNumber; return this; } /** *

The number of entries per page.

* * example: *

10

*/ public Builder pageSize(Long pageSize) { this.pageSize = pageSize; return this; } /** *

The request ID.

* * example: *

473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E

*/ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** *

The total number of file sending tasks queried.

* * example: *

2

*/ public Builder totalCount(Long totalCount) { this.totalCount = totalCount; return this; } public DescribeSendFileResultsResponseBody build() { return new DescribeSendFileResultsResponseBody(this); } } /** * * {@link DescribeSendFileResultsResponseBody} extends {@link TeaModel} * *

DescribeSendFileResultsResponseBody

*/ public static class InvokeInstance extends TeaModel { @com.aliyun.core.annotation.NameInMap("CreationTime") private String creationTime; @com.aliyun.core.annotation.NameInMap("ErrorCode") private String errorCode; @com.aliyun.core.annotation.NameInMap("ErrorInfo") private String errorInfo; @com.aliyun.core.annotation.NameInMap("FinishTime") private String finishTime; @com.aliyun.core.annotation.NameInMap("InstanceId") private String instanceId; @com.aliyun.core.annotation.NameInMap("InvocationStatus") private String invocationStatus; @com.aliyun.core.annotation.NameInMap("StartTime") private String startTime; @com.aliyun.core.annotation.NameInMap("UpdateTime") private String updateTime; private InvokeInstance(Builder builder) { this.creationTime = builder.creationTime; this.errorCode = builder.errorCode; this.errorInfo = builder.errorInfo; this.finishTime = builder.finishTime; this.instanceId = builder.instanceId; this.invocationStatus = builder.invocationStatus; this.startTime = builder.startTime; this.updateTime = builder.updateTime; } public static Builder builder() { return new Builder(); } public static InvokeInstance create() { return builder().build(); } /** * @return creationTime */ public String getCreationTime() { return this.creationTime; } /** * @return errorCode */ public String getErrorCode() { return this.errorCode; } /** * @return errorInfo */ public String getErrorInfo() { return this.errorInfo; } /** * @return finishTime */ public String getFinishTime() { return this.finishTime; } /** * @return instanceId */ public String getInstanceId() { return this.instanceId; } /** * @return invocationStatus */ public String getInvocationStatus() { return this.invocationStatus; } /** * @return startTime */ public String getStartTime() { return this.startTime; } /** * @return updateTime */ public String getUpdateTime() { return this.updateTime; } public static final class Builder { private String creationTime; private String errorCode; private String errorInfo; private String finishTime; private String instanceId; private String invocationStatus; private String startTime; private String updateTime; /** *

The creation time of the file sending task.

* * example: *

2019-12-20T06:15:54Z

*/ public Builder creationTime(String creationTime) { this.creationTime = creationTime; return this; } /** *

The error code returned when the file failed to be sent to the instance. Valid values:

*
    *
  • Null: The file is sent to the instance.
  • *
  • InstanceNotExists: The instance does not exist or has been released.
  • *
  • InstanceReleased: The instance is released while the file is being sent.
  • *
  • InstanceNotRunning: The instance is not running when the file sending task is being created.
  • *
  • AccountNotExists: The specified account does not exist.
  • *
  • ClientNotRunning: Cloud Assistant Agent is not running.
  • *
  • ClientNotResponse: Cloud Assistant Agent does not respond.
  • *
  • ClientIsUpgrading: Cloud Assistant Agent is being upgraded.
  • *
  • ClientNeedUpgrade: Cloud Assistant Agent needs to be upgraded.
  • *
  • DeliveryTimeout: The file sending task timed out.
  • *
  • FileCreateFail: The file failed to be created.
  • *
  • FileAlreadyExists: A file with the same name exists in the specified directory.
  • *
  • FileContentInvalid: The file content is invalid.
  • *
  • FileNameInvalid: The file name is invalid.
  • *
  • FilePathInvalid: The specified directory is invalid.
  • *
  • FileAuthorityInvalid: The specified permissions on the file are invalid.
  • *
  • UserGroupNotExists: The specified user group does not exist.
  • *
* * example: *

InstanceNotExists

*/ public Builder errorCode(String errorCode) { this.errorCode = errorCode; return this; } /** *

The error message returned when the file failed to be sent or the file sending task failed to be executed. Valid values:

*
    *
  • Null: The file is sent to the instance.
  • *
  • the specified instance does not exists
  • *
  • the specified instance has been released
  • *
  • the instance is not running when create task
  • *
  • the specified account does not exists
  • *
  • the aliyun service is not running on the instance
  • *
  • the aliyun service in the instance does not response
  • *
  • the aliyun service in the instance is upgrading now
  • *
  • the aliyun service in the instance need upgrade
  • *
  • the command delivery has been timeout
  • *
  • the file creation is failed due to unknown error
  • *
  • the authority of file is invalid
  • *
  • File content is empty
  • *
  • the content of file is invalid
  • *
  • File already exists
  • *
  • File name is invalid
  • *
  • File path is invalid
  • *
  • Owner not exists
  • *
  • Group not exists
  • *
  • Mode is invalid
  • *
* * example: *

the instance is not running when create task

*/ public Builder errorInfo(String errorInfo) { this.errorInfo = errorInfo; return this; } /** *

The time when the file sending task was completed.

* * example: *

2019-12-20T06:15:54Z

*/ public Builder finishTime(String finishTime) { this.finishTime = finishTime; return this; } /** *

The ID of the instance.

* * example: *

i-uf614fhehhz****

*/ public Builder instanceId(String instanceId) { this.instanceId = instanceId; return this; } /** *

The status of the file sending task. Valid values:

*
    *
  • Pending: The file is being verified or sent.
  • *
  • Invalid: The file is invalid.
  • *
  • Running: The file is being sent to the instance.
  • *
  • Aborted: The file failed to be sent to the instance.
  • *
  • Success: The file is sent.
  • *
  • Failed: The file failed to be created on the instance.
  • *
  • Error: An error occurred and interrupted the file sending task.
  • *
  • Timeout: The file sending task timed out.
  • *
* * example: *

Success

*/ public Builder invocationStatus(String invocationStatus) { this.invocationStatus = invocationStatus; return this; } /** *

The time when the file sending task started to be executed on the instance.

* * example: *

2019-12-20T06:15:54Z

*/ public Builder startTime(String startTime) { this.startTime = startTime; return this; } /** *

The time when the task status was last updated.

* * example: *

2019-12-20T06:15:54Z

*/ public Builder updateTime(String updateTime) { this.updateTime = updateTime; return this; } public InvokeInstance build() { return new InvokeInstance(this); } } } /** * * {@link DescribeSendFileResultsResponseBody} extends {@link TeaModel} * *

DescribeSendFileResultsResponseBody

*/ public static class InvokeInstances extends TeaModel { @com.aliyun.core.annotation.NameInMap("InvokeInstance") private java.util.List < InvokeInstance> invokeInstance; private InvokeInstances(Builder builder) { this.invokeInstance = builder.invokeInstance; } public static Builder builder() { return new Builder(); } public static InvokeInstances create() { return builder().build(); } /** * @return invokeInstance */ public java.util.List < InvokeInstance> getInvokeInstance() { return this.invokeInstance; } public static final class Builder { private java.util.List < InvokeInstance> invokeInstance; /** * InvokeInstance. */ public Builder invokeInstance(java.util.List < InvokeInstance> invokeInstance) { this.invokeInstance = invokeInstance; return this; } public InvokeInstances build() { return new InvokeInstances(this); } } } /** * * {@link DescribeSendFileResultsResponseBody} extends {@link TeaModel} * *

DescribeSendFileResultsResponseBody

*/ public static class Tag extends TeaModel { @com.aliyun.core.annotation.NameInMap("TagKey") private String tagKey; @com.aliyun.core.annotation.NameInMap("TagValue") private String tagValue; private Tag(Builder builder) { this.tagKey = builder.tagKey; this.tagValue = builder.tagValue; } public static Builder builder() { return new Builder(); } public static Tag create() { return builder().build(); } /** * @return tagKey */ public String getTagKey() { return this.tagKey; } /** * @return tagValue */ public String getTagValue() { return this.tagValue; } public static final class Builder { private String tagKey; private String tagValue; /** *

The tag key of the file sending task.

* * example: *

owner

*/ public Builder tagKey(String tagKey) { this.tagKey = tagKey; return this; } /** *

The tag value of the file sending task.

* * example: *

zhangsan

*/ public Builder tagValue(String tagValue) { this.tagValue = tagValue; return this; } public Tag build() { return new Tag(this); } } } /** * * {@link DescribeSendFileResultsResponseBody} extends {@link TeaModel} * *

DescribeSendFileResultsResponseBody

*/ public static class Tags extends TeaModel { @com.aliyun.core.annotation.NameInMap("Tag") private java.util.List < Tag> tag; private Tags(Builder builder) { this.tag = builder.tag; } public static Builder builder() { return new Builder(); } public static Tags create() { return builder().build(); } /** * @return tag */ public java.util.List < Tag> getTag() { return this.tag; } public static final class Builder { private java.util.List < Tag> tag; /** * Tag. */ public Builder tag(java.util.List < Tag> tag) { this.tag = tag; return this; } public Tags build() { return new Tags(this); } } } /** * * {@link DescribeSendFileResultsResponseBody} extends {@link TeaModel} * *

DescribeSendFileResultsResponseBody

*/ public static class Invocation extends TeaModel { @com.aliyun.core.annotation.NameInMap("Content") private String content; @com.aliyun.core.annotation.NameInMap("ContentType") private String contentType; @com.aliyun.core.annotation.NameInMap("CreationTime") private String creationTime; @com.aliyun.core.annotation.NameInMap("Description") private String description; @com.aliyun.core.annotation.NameInMap("FileGroup") private String fileGroup; @com.aliyun.core.annotation.NameInMap("FileMode") private String fileMode; @com.aliyun.core.annotation.NameInMap("FileOwner") private String fileOwner; @com.aliyun.core.annotation.NameInMap("InvocationStatus") private String invocationStatus; @com.aliyun.core.annotation.NameInMap("InvokeId") private String invokeId; @com.aliyun.core.annotation.NameInMap("InvokeInstances") private InvokeInstances invokeInstances; @com.aliyun.core.annotation.NameInMap("Name") private String name; @com.aliyun.core.annotation.NameInMap("Overwrite") private String overwrite; @com.aliyun.core.annotation.NameInMap("Tags") private Tags tags; @com.aliyun.core.annotation.NameInMap("TargetDir") private String targetDir; @com.aliyun.core.annotation.NameInMap("VmCount") private Integer vmCount; private Invocation(Builder builder) { this.content = builder.content; this.contentType = builder.contentType; this.creationTime = builder.creationTime; this.description = builder.description; this.fileGroup = builder.fileGroup; this.fileMode = builder.fileMode; this.fileOwner = builder.fileOwner; this.invocationStatus = builder.invocationStatus; this.invokeId = builder.invokeId; this.invokeInstances = builder.invokeInstances; this.name = builder.name; this.overwrite = builder.overwrite; this.tags = builder.tags; this.targetDir = builder.targetDir; this.vmCount = builder.vmCount; } public static Builder builder() { return new Builder(); } public static Invocation create() { return builder().build(); } /** * @return content */ public String getContent() { return this.content; } /** * @return contentType */ public String getContentType() { return this.contentType; } /** * @return creationTime */ public String getCreationTime() { return this.creationTime; } /** * @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 invocationStatus */ public String getInvocationStatus() { return this.invocationStatus; } /** * @return invokeId */ public String getInvokeId() { return this.invokeId; } /** * @return invokeInstances */ public InvokeInstances getInvokeInstances() { return this.invokeInstances; } /** * @return name */ public String getName() { return this.name; } /** * @return overwrite */ public String getOverwrite() { return this.overwrite; } /** * @return tags */ public Tags getTags() { return this.tags; } /** * @return targetDir */ public String getTargetDir() { return this.targetDir; } /** * @return vmCount */ public Integer getVmCount() { return this.vmCount; } public static final class Builder { private String content; private String contentType; private String creationTime; private String description; private String fileGroup; private String fileMode; private String fileOwner; private String invocationStatus; private String invokeId; private InvokeInstances invokeInstances; private String name; private String overwrite; private Tags tags; private String targetDir; private Integer vmCount; /** *

The content of the file.

* * example: *

#!/bin/bash echo "Current User is :" echo $(ps | grep "$$" | awk "{print $2}")

*/ public Builder content(String content) { this.content = content; return this; } /** *

The type of the file content. Valid values:

*
    *
  • PlainText: The file content is not encoded.
  • *
  • Base64: The file content is encoded in Base64.
  • *
* * example: *

PlainText

*/ public Builder contentType(String contentType) { this.contentType = contentType; return this; } /** *

The time when the file sending task was created.

* * example: *

2019-12-20T06:15:54Z

*/ public Builder creationTime(String creationTime) { this.creationTime = creationTime; return this; } /** *

The description of the file.

* * example: *

This is a test file.

*/ public Builder description(String description) { this.description = description; return this; } /** *

The group of the file.

* * example: *

test

*/ public Builder fileGroup(String fileGroup) { this.fileGroup = fileGroup; return this; } /** *

The permissions on the file.

* * example: *

777

*/ public Builder fileMode(String fileMode) { this.fileMode = fileMode; return this; } /** *

The owner of the file.

* * example: *

test

*/ public Builder fileOwner(String fileOwner) { this.fileOwner = fileOwner; return this; } /** *

The overall sending status of the file. The overall sending status of the file varies based on the sending status of the file on all destination instances. Valid values:

*
    *
  • Pending: The file is being verified or sent. If the sending state of the file on at least one instance is Pending, the overall sending state of the file is Pending.

    *
  • *
  • Running: The file is being sent to the instances. If the sending state of the file on at least one instance is Running, the overall sending state of the file is Running.

    *
  • *
  • Success: If the sending state of the file on all instances is Success, the overall sending state of the file is Success.

    *
  • *
  • If the sending state of the file on all instances is Failed, the overall sending state of the file is Failed. If the sending state of the file on one or more instances is one of the following values, the overall sending state of the file is Failed:

    *
      *
    • Invalid: The file is invalid.
    • *
    • Aborted: The file failed to be sent to the instances.
    • *
    • Failed: The file failed to be created on the instances.
    • *
    • Timeout: The file sending task timed out.
    • *
    • Error: An error occurred and interrupted the file sending task.
    • *
    *
  • *
  • PartialFailed: The file sending task was completed on some instances but failed on other instances. If the sending state of the file is Success on some instances and is Failed on other instances, the overall sending state of the file is PartialFailed.

    *
  • *
* * example: *

Success

*/ public Builder invocationStatus(String invocationStatus) { this.invocationStatus = invocationStatus; return this; } /** *

The ID of the file sending task.

* * example: *

f-hz0jdfwd9f****

*/ public Builder invokeId(String invokeId) { this.invokeId = invokeId; return this; } /** *

The destination instances.

*/ public Builder invokeInstances(InvokeInstances invokeInstances) { this.invokeInstances = invokeInstances; return this; } /** *

The name of the file.

* * example: *

test.txt

*/ public Builder name(String name) { this.name = name; return this; } /** *

Indicates whether a file in the destination directory is overwritten if the file has the same name as the sent file.

* * example: *

false

*/ public Builder overwrite(String overwrite) { this.overwrite = overwrite; return this; } /** *

The tags of the file sending task.

*/ public Builder tags(Tags tags) { this.tags = tags; return this; } /** *

The destination directory.

* * example: *

/home/user

*/ public Builder targetDir(String targetDir) { this.targetDir = targetDir; return this; } /** *

The number of the destination instances.

* * example: *

1

*/ public Builder vmCount(Integer vmCount) { this.vmCount = vmCount; return this; } public Invocation build() { return new Invocation(this); } } } /** * * {@link DescribeSendFileResultsResponseBody} extends {@link TeaModel} * *

DescribeSendFileResultsResponseBody

*/ public static class Invocations extends TeaModel { @com.aliyun.core.annotation.NameInMap("Invocation") private java.util.List < Invocation> invocation; private Invocations(Builder builder) { this.invocation = builder.invocation; } public static Builder builder() { return new Builder(); } public static Invocations create() { return builder().build(); } /** * @return invocation */ public java.util.List < Invocation> getInvocation() { return this.invocation; } public static final class Builder { private java.util.List < Invocation> invocation; /** * Invocation. */ public Builder invocation(java.util.List < Invocation> invocation) { this.invocation = invocation; return this; } public Invocations build() { return new Invocations(this); } } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy