package org.openbaton.catalogue.nfvo.messages;

import org.openbaton.catalogue.mano.record.VNFCInstance;
import org.openbaton.catalogue.mano.record.VirtualNetworkFunctionRecord;
import org.openbaton.catalogue.nfvo.messages.Interfaces.OrVnfmMessage;

/**
 * Created by fmu on 17/08/16.
 */
public class OrVnfmStartStopMessage extends OrVnfmMessage {

  private VNFCInstance vnfcInstance;
  private VirtualNetworkFunctionRecord virtualNetworkFunctionRecord;

  @Override
  public String toString() {
    return "OrVnfmScalingMessage{"
        + "virtualNetworkFunctionRecord="
        + virtualNetworkFunctionRecord
        + ", vnfcInstance="
        + vnfcInstance
        + "} "
        + super.toString();
  }

  public VirtualNetworkFunctionRecord getVirtualNetworkFunctionRecord() {
    return virtualNetworkFunctionRecord;
  }

  public void setVirtualNetworkFunctionRecord(
      VirtualNetworkFunctionRecord virtualNetworkFunctionRecord) {
    this.virtualNetworkFunctionRecord = virtualNetworkFunctionRecord;
  }

  public VNFCInstance getVnfcInstance() {
    return vnfcInstance;
  }

  public void setVnfcInstance(VNFCInstance vnfcInstance) {
    this.vnfcInstance = vnfcInstance;
  }
}

@@ -98,16 +98,80 @@
 stance;%0A
+import org.openbaton.catalogue.mano.record.VNFRecordDependency;%0A
 import o
@@ -411,45 +411,8 @@
  %7B%0A%0A
-  private VNFCInstance vnfcInstance;%0A
   pr
@@ -475,16 +475,99 @@
 nRecord;
+%0A  private VNFCInstance vnfcInstance;%0A  private VNFRecordDependency vnfrDependency;
 %0A%0A  @Ove
@@ -1297,11 +1297,193 @@
 nce;%0A  %7D
+%0A%0A  public VNFRecordDependency getVnfrd() %7B%0A    return vnfrDependency;%0A  %7D%0A%0A  public void setVnfrd(VNFRecordDependency vnfrDependency) %7B%0A    this.vnfrDependency = vnfrDependency;%0A  %7D
 %0A%7D%0A

add vnfrd to OrVnfm start/stop message