blob: c86e4272e4ab434691b599afa2e461d47630cd12 [file] [log] [blame]
Toshio Koidea03915e2014-07-01 18:39:52 -07001package net.onrc.onos.api.batchoperation;
2
3/**
4 * A remove-operation entry of a batch operation.
5 */
6public class RemoveOperation implements BatchOperationEntry {
7 protected String targetId;
8
9 /**
10 * Creates a remove-operation with specified target.
11 *
12 * @param targetId The target object ID to be assigned to this
13 * remove-operation.
14 */
15 public RemoveOperation(String targetId) {
16 this.targetId = targetId;
17 }
18
19 @Override
20 public BatchOperator getOperator() {
21 return BatchOperator.REMOVE;
22 }
23
24 /**
25 * Gets the target ID to be removed.
26 *
27 * @return The target ID to be removed.
28 */
29 public String getTargetId() {
30 return targetId;
31 }
32}