import com.fasterxml.jackson.annotation.JsonSetter;
import com.fasterxml.jackson.annotation.Nulls;
import java.util.Collections;
+import java.util.LinkedHashMap;
import java.util.Map;
import lombok.Getter;
import lombok.NoArgsConstructor;
@JsonSetter(nulls = Nulls.AS_EMPTY)
private CompositeState compositeState;
+ /**
+ * NcmpServiceCmHandle copy constructor.
+ *
+ * @param ncmpServiceCmHandle Ncmp Service CmHandle
+ */
+ public NcmpServiceCmHandle(final NcmpServiceCmHandle ncmpServiceCmHandle) {
+ this.cmHandleId = ncmpServiceCmHandle.getCmHandleId();
+ this.dmiProperties = new LinkedHashMap<>(ncmpServiceCmHandle.getDmiProperties());
+ this.publicProperties = new LinkedHashMap<>(ncmpServiceCmHandle.getPublicProperties());
+ this.compositeState = ncmpServiceCmHandle.getCompositeState() != null ? new CompositeState(
+ ncmpServiceCmHandle.getCompositeState()) : null;
+ }
}