public class ModifySnapshotAttributeRequest
extends com.aliyun.tea.TeaModel
限定符和类型 | 字段和说明 |
---|---|
String |
description
The description of the snapshot.
|
Boolean |
disableInstantAccess
Specifies whether to disable the instant access feature.
|
String |
ownerAccount |
Long |
ownerId |
String |
resourceOwnerAccount |
Long |
resourceOwnerId |
Integer |
retentionDays
The retention period of the snapshot.
|
String |
snapshotId
The ID of the snapshot.
|
String |
snapshotName
The name of the snapshot.
|
构造器和说明 |
---|
ModifySnapshotAttributeRequest() |
限定符和类型 | 方法和说明 |
---|---|
static ModifySnapshotAttributeRequest |
build(Map<String,?> map) |
String |
getDescription() |
Boolean |
getDisableInstantAccess() |
String |
getOwnerAccount() |
Long |
getOwnerId() |
String |
getResourceOwnerAccount() |
Long |
getResourceOwnerId() |
Integer |
getRetentionDays() |
String |
getSnapshotId() |
String |
getSnapshotName() |
ModifySnapshotAttributeRequest |
setDescription(String description) |
ModifySnapshotAttributeRequest |
setDisableInstantAccess(Boolean disableInstantAccess) |
ModifySnapshotAttributeRequest |
setOwnerAccount(String ownerAccount) |
ModifySnapshotAttributeRequest |
setOwnerId(Long ownerId) |
ModifySnapshotAttributeRequest |
setResourceOwnerAccount(String resourceOwnerAccount) |
ModifySnapshotAttributeRequest |
setResourceOwnerId(Long resourceOwnerId) |
ModifySnapshotAttributeRequest |
setRetentionDays(Integer retentionDays) |
ModifySnapshotAttributeRequest |
setSnapshotId(String snapshotId) |
ModifySnapshotAttributeRequest |
setSnapshotName(String snapshotName) |
@NameInMap(value="Description") public String description
The description of the snapshot. The description must be 2 to 256 characters in length and cannot start with http:// or https://.
example:testDescription
@NameInMap(value="DisableInstantAccess") public Boolean disableInstantAccess
Specifies whether to disable the instant access feature. Valid values:
Default value: false.
example:This parameter is no longer used. By default, new standard snapshots of Enterprise SSDs (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.
false
@NameInMap(value="OwnerAccount") public String ownerAccount
@NameInMap(value="OwnerId") public Long ownerId
@NameInMap(value="ResourceOwnerAccount") public String resourceOwnerAccount
@NameInMap(value="ResourceOwnerId") public Long resourceOwnerId
@NameInMap(value="RetentionDays") public Integer retentionDays
The retention period of the snapshot. After you specify this parameter, the end time of the new retention period is the specified number of days apart from the creation time of the snapshot, which follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format and is displayed in UTC. Valid values: 1 to 65536.
example:You can extend the retention period of the snapshot and cannot shorten the retention period.
10
@NameInMap(value="SnapshotId") public String snapshotId
The ID of the snapshot.
This parameter is required.
example:s-bp199lyny9bb47pa****
@NameInMap(value="SnapshotName") public String snapshotName
The name of the snapshot. The name must be 2 to 128 characters in length. It must start with a letter and cannot start with http:// or https://. It can contain letters, digits, colons (:), underscores (_), and hyphens (-).
The name cannot start with auto because snapshots whose names start with auto are recognized as automatic snapshots.
example:testSnapshotName
public static ModifySnapshotAttributeRequest build(Map<String,?> map) throws Exception
Exception
public ModifySnapshotAttributeRequest setDescription(String description)
public String getDescription()
public ModifySnapshotAttributeRequest setDisableInstantAccess(Boolean disableInstantAccess)
public Boolean getDisableInstantAccess()
public ModifySnapshotAttributeRequest setOwnerAccount(String ownerAccount)
public String getOwnerAccount()
public ModifySnapshotAttributeRequest setOwnerId(Long ownerId)
public Long getOwnerId()
public ModifySnapshotAttributeRequest setResourceOwnerAccount(String resourceOwnerAccount)
public String getResourceOwnerAccount()
public ModifySnapshotAttributeRequest setResourceOwnerId(Long resourceOwnerId)
public Long getResourceOwnerId()
public ModifySnapshotAttributeRequest setRetentionDays(Integer retentionDays)
public Integer getRetentionDays()
public ModifySnapshotAttributeRequest setSnapshotId(String snapshotId)
public String getSnapshotId()
public ModifySnapshotAttributeRequest setSnapshotName(String snapshotName)
public String getSnapshotName()
Copyright © 2024. All rights reserved.