public class CreateAutoSnapshotPolicyRequest
extends com.aliyun.tea.TeaModel
限定符和类型 | 字段和说明 |
---|---|
String |
autoSnapshotPolicyName
The name of the automatic snapshot policy.
|
Integer |
copiedSnapshotsRetentionDays
The retention period of the snapshot copy in the destination region.
|
CreateAutoSnapshotPolicyRequest.CreateAutoSnapshotPolicyRequestCopyEncryptionConfiguration |
copyEncryptionConfiguration
The encryption parameters for cross-region snapshot replication.
|
Boolean |
enableCrossRegionCopy
Specifies whether to enable cross-region replication for snapshots.
|
Long |
ownerId |
String |
regionId
The ID of the region in which to create the automatic snapshot policy.
|
String |
repeatWeekdays
The days of the week on which to create automatic snapshots.
|
String |
resourceGroupId
The resource group ID.
|
String |
resourceOwnerAccount |
Long |
resourceOwnerId |
Integer |
retentionDays
The retention period of the automatic snapshot.
|
String |
storageLocationArn
This parameter is not publicly available.
|
List<CreateAutoSnapshotPolicyRequest.CreateAutoSnapshotPolicyRequestTag> |
tag
The tags to add to the automatic snapshot policy.
|
String |
targetCopyRegions
The destination region to which to copy the snapshot.
|
String |
timePoints
The points in time of the day at which to create automatic snapshots.
|
构造器和说明 |
---|
CreateAutoSnapshotPolicyRequest() |
@NameInMap(value="CopiedSnapshotsRetentionDays") public Integer copiedSnapshotsRetentionDays
The retention period of the snapshot copy in the destination region. Unit: days. Valid values:
Default value: -1.
example:30
@NameInMap(value="CopyEncryptionConfiguration") public CreateAutoSnapshotPolicyRequest.CreateAutoSnapshotPolicyRequestCopyEncryptionConfiguration copyEncryptionConfiguration
The encryption parameters for cross-region snapshot replication.
@NameInMap(value="EnableCrossRegionCopy") public Boolean enableCrossRegionCopy
Specifies whether to enable cross-region replication for snapshots.
false
@NameInMap(value="OwnerId") public Long ownerId
@NameInMap(value="ResourceGroupId") public String resourceGroupId
The resource group ID.
example:rg-aek2kkmhmhs****
@NameInMap(value="ResourceOwnerAccount") public String resourceOwnerAccount
@NameInMap(value="ResourceOwnerId") public Long resourceOwnerId
@NameInMap(value="StorageLocationArn") public String storageLocationArn
example:This parameter is not publicly available.
null
@NameInMap(value="Tag") public List<CreateAutoSnapshotPolicyRequest.CreateAutoSnapshotPolicyRequestTag> tag
The tags to add to the automatic snapshot policy.
@NameInMap(value="TargetCopyRegions") public String targetCopyRegions
The destination region to which to copy the snapshot. You can specify only a single destination region.
example:["cn-hangzhou"]
@NameInMap(value="autoSnapshotPolicyName") public String autoSnapshotPolicyName
The name of the automatic snapshot policy. The name must be 2 to 128 characters in length. The name must start with a letter and cannot start with http:// or https://. The name can contain letters, digits, colons (:), underscores (_), and hyphens (-).
By default, this parameter is left empty.
example:TestName
@NameInMap(value="regionId") public String regionId
The ID of the region in which to create the automatic snapshot policy. You can call the DescribeRegions operation to query the most recent region list.
This parameter is required.
example:cn-hangzhou
@NameInMap(value="repeatWeekdays") public String repeatWeekdays
The days of the week on which to create automatic snapshots. Valid values: 1 to 7, which correspond to Monday to Sunday. 1 indicates Monday. Format description:
This parameter is required.
example:["1","2"]
@NameInMap(value="retentionDays") public Integer retentionDays
The retention period of the automatic snapshot. Unit: days. Valid values:
Default value: -1.
This parameter is required.
example:30
@NameInMap(value="timePoints") public String timePoints
The points in time of the day at which to create automatic snapshots. The time must be in UTC+8. Unit: hours. Valid values: 0 to 23, which correspond to the 24 on-the-hour points in time from 00:00:00 to 23:00:00. 1 indicates 01:00:00. Format description:
This parameter is required.
example:["0", "1", … "23"]
public static CreateAutoSnapshotPolicyRequest build(Map<String,?> map) throws Exception
Exception
public CreateAutoSnapshotPolicyRequest setCopiedSnapshotsRetentionDays(Integer copiedSnapshotsRetentionDays)
public Integer getCopiedSnapshotsRetentionDays()
public CreateAutoSnapshotPolicyRequest setCopyEncryptionConfiguration(CreateAutoSnapshotPolicyRequest.CreateAutoSnapshotPolicyRequestCopyEncryptionConfiguration copyEncryptionConfiguration)
public CreateAutoSnapshotPolicyRequest.CreateAutoSnapshotPolicyRequestCopyEncryptionConfiguration getCopyEncryptionConfiguration()
public CreateAutoSnapshotPolicyRequest setEnableCrossRegionCopy(Boolean enableCrossRegionCopy)
public Boolean getEnableCrossRegionCopy()
public CreateAutoSnapshotPolicyRequest setOwnerId(Long ownerId)
public Long getOwnerId()
public CreateAutoSnapshotPolicyRequest setResourceGroupId(String resourceGroupId)
public String getResourceGroupId()
public CreateAutoSnapshotPolicyRequest setResourceOwnerAccount(String resourceOwnerAccount)
public String getResourceOwnerAccount()
public CreateAutoSnapshotPolicyRequest setResourceOwnerId(Long resourceOwnerId)
public Long getResourceOwnerId()
public CreateAutoSnapshotPolicyRequest setStorageLocationArn(String storageLocationArn)
public String getStorageLocationArn()
public CreateAutoSnapshotPolicyRequest setTag(List<CreateAutoSnapshotPolicyRequest.CreateAutoSnapshotPolicyRequestTag> tag)
public List<CreateAutoSnapshotPolicyRequest.CreateAutoSnapshotPolicyRequestTag> getTag()
public CreateAutoSnapshotPolicyRequest setTargetCopyRegions(String targetCopyRegions)
public String getTargetCopyRegions()
public CreateAutoSnapshotPolicyRequest setAutoSnapshotPolicyName(String autoSnapshotPolicyName)
public String getAutoSnapshotPolicyName()
public CreateAutoSnapshotPolicyRequest setRegionId(String regionId)
public String getRegionId()
public CreateAutoSnapshotPolicyRequest setRepeatWeekdays(String repeatWeekdays)
public String getRepeatWeekdays()
public CreateAutoSnapshotPolicyRequest setRetentionDays(Integer retentionDays)
public Integer getRetentionDays()
public CreateAutoSnapshotPolicyRequest setTimePoints(String timePoints)
public String getTimePoints()
Copyright © 2024. All rights reserved.