/*
* Copyright (c) 2016 EMC Corporation
* All Rights Reserved
*/
package com.emc.storageos.model.application;
import java.net.URI;
import java.util.List;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;
/**
* Class that captures the POST data passed in a request to relink
* target volumes to the same or new block snapshot sessions in the volume group.
*/
@XmlRootElement(name = "volume_group_snapshot_session_relink_targets")
public class VolumeGroupSnapshotSessionRelinkTargetsParam extends VolumeGroupSnapshotSessionOperationParam {
// The new linked target information.
private List<URI> linkedTargetIds;
// use instead of list of target volumes; only if re-linking to the same target
private String targetName;
/**
* Default constructor.
*/
public VolumeGroupSnapshotSessionRelinkTargetsParam() {
}
/**
* Constructor.
*
* @param linkedTargetIds The URIs of the linked targets to be re-linked.
*/
public VolumeGroupSnapshotSessionRelinkTargetsParam(List<URI> linkedTargetIds) {
this.linkedTargetIds = linkedTargetIds;
}
/**
* Gets the URIs of the linked targets to be re-linked.
*
* @return The URIs of the linked targets to be re-linked.
*/
@XmlElementWrapper(name = "ids", required = false)
@XmlElement(name = "id", required = false)
public List<URI> getLinkedTargetIds() {
return linkedTargetIds;
}
/**
* Sets the URIs of the linked targets to be re-linked.
*
* @param linkedTargetIds The URIs of the linked targets to be re-linked.
*/
public void setLinkedTargetIds(List<URI> linkedTargetIds) {
this.linkedTargetIds = linkedTargetIds;
}
/**
* @return the targetName
*/
@XmlElement(name = "target_name", required = false)
public String getTargetName() {
return targetName;
}
/**
* @param targetName the targetName to set
*/
public void setTargetName(String targetName) {
this.targetName = targetName;
}
}