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

com.aliyun.sdk.service.ecs20140526.models.DescribeSnapshotLinksResponseBody 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 DescribeSnapshotLinksResponseBody} extends {@link TeaModel}
 *
 * 

DescribeSnapshotLinksResponseBody

*/ public class DescribeSnapshotLinksResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("PageNumber") private Integer pageNumber; @com.aliyun.core.annotation.NameInMap("PageSize") private Integer pageSize; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("SnapshotLinks") private SnapshotLinks snapshotLinks; @com.aliyun.core.annotation.NameInMap("TotalCount") private Integer totalCount; private DescribeSnapshotLinksResponseBody(Builder builder) { this.pageNumber = builder.pageNumber; this.pageSize = builder.pageSize; this.requestId = builder.requestId; this.snapshotLinks = builder.snapshotLinks; this.totalCount = builder.totalCount; } public static Builder builder() { return new Builder(); } public static DescribeSnapshotLinksResponseBody create() { return builder().build(); } /** * @return pageNumber */ public Integer getPageNumber() { return this.pageNumber; } /** * @return pageSize */ public Integer getPageSize() { return this.pageSize; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return snapshotLinks */ public SnapshotLinks getSnapshotLinks() { return this.snapshotLinks; } /** * @return totalCount */ public Integer getTotalCount() { return this.totalCount; } public static final class Builder { private Integer pageNumber; private Integer pageSize; private String requestId; private SnapshotLinks snapshotLinks; private Integer totalCount; /** *

The page number.

* * example: *

1

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

The number of entries per page.

* * example: *

50

*/ public Builder pageSize(Integer 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 details of the snapshot chains.

*/ public Builder snapshotLinks(SnapshotLinks snapshotLinks) { this.snapshotLinks = snapshotLinks; return this; } /** *

The total number of entries returned.

* * example: *

9

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

DescribeSnapshotLinksResponseBody

*/ public static class SnapshotLink extends TeaModel { @com.aliyun.core.annotation.NameInMap("Category") private String category; @com.aliyun.core.annotation.NameInMap("InstanceId") private String instanceId; @com.aliyun.core.annotation.NameInMap("InstanceName") private String instanceName; @com.aliyun.core.annotation.NameInMap("InstantAccess") private Boolean instantAccess; @com.aliyun.core.annotation.NameInMap("RegionId") private String regionId; @com.aliyun.core.annotation.NameInMap("SnapshotLinkId") private String snapshotLinkId; @com.aliyun.core.annotation.NameInMap("SourceDiskId") private String sourceDiskId; @com.aliyun.core.annotation.NameInMap("SourceDiskName") private String sourceDiskName; @com.aliyun.core.annotation.NameInMap("SourceDiskSize") private Integer sourceDiskSize; @com.aliyun.core.annotation.NameInMap("SourceDiskType") private String sourceDiskType; @com.aliyun.core.annotation.NameInMap("TotalCount") private Integer totalCount; @com.aliyun.core.annotation.NameInMap("TotalSize") private Long totalSize; private SnapshotLink(Builder builder) { this.category = builder.category; this.instanceId = builder.instanceId; this.instanceName = builder.instanceName; this.instantAccess = builder.instantAccess; this.regionId = builder.regionId; this.snapshotLinkId = builder.snapshotLinkId; this.sourceDiskId = builder.sourceDiskId; this.sourceDiskName = builder.sourceDiskName; this.sourceDiskSize = builder.sourceDiskSize; this.sourceDiskType = builder.sourceDiskType; this.totalCount = builder.totalCount; this.totalSize = builder.totalSize; } public static Builder builder() { return new Builder(); } public static SnapshotLink create() { return builder().build(); } /** * @return category */ public String getCategory() { return this.category; } /** * @return instanceId */ public String getInstanceId() { return this.instanceId; } /** * @return instanceName */ public String getInstanceName() { return this.instanceName; } /** * @return instantAccess */ public Boolean getInstantAccess() { return this.instantAccess; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return snapshotLinkId */ public String getSnapshotLinkId() { return this.snapshotLinkId; } /** * @return sourceDiskId */ public String getSourceDiskId() { return this.sourceDiskId; } /** * @return sourceDiskName */ public String getSourceDiskName() { return this.sourceDiskName; } /** * @return sourceDiskSize */ public Integer getSourceDiskSize() { return this.sourceDiskSize; } /** * @return sourceDiskType */ public String getSourceDiskType() { return this.sourceDiskType; } /** * @return totalCount */ public Integer getTotalCount() { return this.totalCount; } /** * @return totalSize */ public Long getTotalSize() { return this.totalSize; } public static final class Builder { private String category; private String instanceId; private String instanceName; private Boolean instantAccess; private String regionId; private String snapshotLinkId; private String sourceDiskId; private String sourceDiskName; private Integer sourceDiskSize; private String sourceDiskType; private Integer totalCount; private Long totalSize; /** *

The category of the snapshot.

* * example: *

standard

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

The ID of the instance.

* * example: *

i-bp1h6jmbefj2cyqs****

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

The name of the instance.

* * example: *

testInstanceName

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

Indicates whether the instant access feature is enabled. Valid values:

*
    *
  • true: The instant access feature is enabled. This feature can be enabled only for enhanced SSDs (ESSDs).
  • *
  • false: The instant access feature is disabled. The snapshot is a normal snapshot for which the instant access feature is disabled.
  • *
*
*

This parameter is no longer used. By default, new normal snapshots of ESSDs are upgraded to instant access snapshots free of charge without the need for additional configurations. For more information, see Use the instant access feature.

*
* * example: *

false

*/ public Builder instantAccess(Boolean instantAccess) { this.instantAccess = instantAccess; return this; } /** *

The region ID of the source disk.

* * example: *

cn-hangzhou

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

The ID of the snapshot chain.

* * example: *

sl-2ze0y1jwzpb1geqx****

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

The ID of the source disk. This parameter is retained even if the source disk is deleted.

* * example: *

d-bp1d6tsvznfghy7y****

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

The name of the source disk.

* * example: *

testSourceDiskName

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

The capacity of the source disk. Unit: GiB.

* * example: *

40

*/ public Builder sourceDiskSize(Integer sourceDiskSize) { this.sourceDiskSize = sourceDiskSize; return this; } /** *

The type of the source disk. Valid values:

*
    *
  • system: system disk
  • *
  • data: data disk
  • *
* * example: *

data

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

The total number of snapshots.

* * example: *

1

*/ public Builder totalCount(Integer totalCount) { this.totalCount = totalCount; return this; } /** *

The total size of all snapshots in the snapshot chain. Unit: byte.

* * example: *

2097152

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

DescribeSnapshotLinksResponseBody

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy